Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Any ideas on why this expression is not working for me? Thanks!
Note: vSA_IgnoreSKUToggle and vSA_IgnoreBranchPlantToggle are variables set by users.
=
if
(
vSA_IgnoreSKUToggle = ' ' AND vSA_IgnoreBranchPlantToggle = ' ',
sum(
{$<Branch_Plant = , SKU = >}
Inventory_Snapshot.On_Hand_Saleable_Quantity)
,0
)
What kind of results did you get?
I understand that if your variables are a single space ' ' you make set analysis ignoring selections in two fields, right?
Maybe you should test your variables for blanks '' or even nulls ( isnull(vSA_IgnoreSKUToggle))
Maybe you should evaluate your variable before testing it $(vSA_IgnoreSKUToggle) = ''
I counted the length of the variables and that is working for me now. Thanks anyway.
if
Inventory_Snapshot.On_Hand_Saleable_Quantity)
Hi,
you can use your expression like this:
=sum(
{$<Branch_Plant = , SKU = >}if
(
vSA_IgnoreSKUToggle = ' ' AND vSA_IgnoreBranchPlantToggle = ' ',
Inventory_Snapshot.On_Hand_Saleable_Quantity)
,0
)
it will work, if not then let me know
Regards
Neetu Singh