Hello all
does anyone know how to add a multiple IF test in one line of a SWITCH statement? I am testing for amounts but sometimes need to check other parameters as well. My example is:
Test:= SWITCH(TRUE(),
values(Table[Amount])=0, "No Sale",
values(Table[Amount])>=100, "Large sales"
AND(values(Table[Amount])=0, values([Table[Seller])="Jane",values(Table[Date])=TODAY()), "No bonus for Jane today!",
"No Data")
In the third line, I need to test amount, the seller and the date but AND only allows 2 arguments so I am getting an error.
How should this be done?
Thanks
does anyone know how to add a multiple IF test in one line of a SWITCH statement? I am testing for amounts but sometimes need to check other parameters as well. My example is:
Test:= SWITCH(TRUE(),
values(Table[Amount])=0, "No Sale",
values(Table[Amount])>=100, "Large sales"
AND(values(Table[Amount])=0, values([Table[Seller])="Jane",values(Table[Date])=TODAY()), "No bonus for Jane today!",
"No Data")
In the third line, I need to test amount, the seller and the date but AND only allows 2 arguments so I am getting an error.
How should this be done?
Thanks