Hello guys,
I am trying to create this query that has a switch statement, this is for our invoicing reporting. the code is below:
Amount: Switch([OSAR_ImagetoVendor] Is Not Null,"$12.00",[24HourRush]=-1,"$75.00",[1-3DayRush]=-1,"$62.50",[ReportingPeriod] Like "*Q*","$50.00",[ReportingPeriod] Like "*YE*","$50.00")
Okay, so this is the current Switch statement when Reporting Period is either Q or YE (which is $50), and if the 24HourRush checkbox is checked (-1), the price will go up 50% ($75.00) or if it’s a 1-3DayRush (-1) it will go up to 25% ($62.50)
Now they changed the price for Q statements to $45.00 per statement, so with this change, the Switch statement should be when it’s a Q statement and the 24HourRush is checked, the price will be $67.50 or if 1-3DayRush is checked the price will be $56.25. And if it’s a YE statement, then it should just be the same as above ($75.00 and $62.50).
Can you help me re-write this? Thank you very much
I am trying to create this query that has a switch statement, this is for our invoicing reporting. the code is below:
Amount: Switch([OSAR_ImagetoVendor] Is Not Null,"$12.00",[24HourRush]=-1,"$75.00",[1-3DayRush]=-1,"$62.50",[ReportingPeriod] Like "*Q*","$50.00",[ReportingPeriod] Like "*YE*","$50.00")
Okay, so this is the current Switch statement when Reporting Period is either Q or YE (which is $50), and if the 24HourRush checkbox is checked (-1), the price will go up 50% ($75.00) or if it’s a 1-3DayRush (-1) it will go up to 25% ($62.50)
Now they changed the price for Q statements to $45.00 per statement, so with this change, the Switch statement should be when it’s a Q statement and the 24HourRush is checked, the price will be $67.50 or if 1-3DayRush is checked the price will be $56.25. And if it’s a YE statement, then it should just be the same as above ($75.00 and $62.50).
Can you help me re-write this? Thank you very much