I have been trying to get this conditional calculation working in a query for the past couple days. I wanted to know if I am doing something wrong here and if so what?
The problem is this, if a person works 10 hours a day. 8 of those hours they were doing work for "Phase1" and the other 2 hours they were doing work for "Phase2". Now, there are two seperate multipliers that I need to use for each Phase respectively. So the formula is as follows, iif(Phase = "Phase1", (hourlyrate * hours) * Phase1Multiplier, (hourlyrate * hours) * Phase2Multiplier)
This formula works when I input it into a report in an unbound field, but because I need to sum of the results for Phase 1 and Phase 2, I thought it would be easier if I built it into the query.
Please help.
The problem is this, if a person works 10 hours a day. 8 of those hours they were doing work for "Phase1" and the other 2 hours they were doing work for "Phase2". Now, there are two seperate multipliers that I need to use for each Phase respectively. So the formula is as follows, iif(Phase = "Phase1", (hourlyrate * hours) * Phase1Multiplier, (hourlyrate * hours) * Phase2Multiplier)
This formula works when I input it into a report in an unbound field, but because I need to sum of the results for Phase 1 and Phase 2, I thought it would be easier if I built it into the query.
Please help.