Figured it out. Here is the solution:
In the dataset, (see code attatched) I have IIF statements.
In Parameters, see Image:
First paramter:
=IIF(IsNothing(Parameters!OrderDateBegin.Value) , Parameters!ReceivedDateBegin.Value,
Parameters!OrderDateBegin.Value )
Second Parameter
= iif(not(IsNothing(Parameters!OrderDateBegin.Value)),
iif(not(isnothing(Parameters!OrderDateEnd.Value)),Parameters!OrderDateEnd.Value, Parameters!ReceivedDateBegin.Value),
Parameters!RecivedDateEnd.Value)
Third Parameter:
=iif(not(IsNothing(Parameters!OrderDateEnd.Value)), Parameters!ReceivedDateBegin.Value,Parameters!RecivedDateEnd.Value)
Here is a snippet of my logic:
first parameter has to be OrderDateBegin or ReceivedDateBegin. Just test to see if value exists in one of them.
Second Parameter:
could be either the OrderDateEnd or ReceivedDateBegin. If the first parameter is OrderDateBegin, test to see if OrderDateEnd exists. If so, second is OrderDateEnd. Otherwise, second is ReceivedDateBegin.
If OrderDateBegin is nothing, then the second parameter is ReceivedDate.
Third Parameter:
I know OrderDateBegin is populated. Question is figuring out second parameter and third. If OrderDateEnd is populated, then third parameter is ReceivedDateBegin. If OrderDateEnd is not populated, then that means ReceivedDateBegin is second, and ReceivedDateEnd is third.
confusing, yes. This is the math (logic) part of programming. I tested it. It is working as expected.