Hi All,
below is the just one query step. It takes care, if user do not select the product and product field is empty or null then the output will get filtered with all the products. This is achieved by "true" after "else".
But I don't fully understand how this "true" executes the code for this particular case. Or what other construction may work in place of "true".
#"Filter Product" = Table.SelectRows( #"Filter Date",
each
if Parameters[Product]{0} <> null
then
[Product] = Parameters[Product]{0} (Parameter table is transposed)
else
true )
Thanks & regards,
below is the just one query step. It takes care, if user do not select the product and product field is empty or null then the output will get filtered with all the products. This is achieved by "true" after "else".
But I don't fully understand how this "true" executes the code for this particular case. Or what other construction may work in place of "true".
#"Filter Product" = Table.SelectRows( #"Filter Date",
each
if Parameters[Product]{0} <> null
then
[Product] = Parameters[Product]{0} (Parameter table is transposed)
else
true )
Thanks & regards,