Forum Discussion
Wise1
9 years agoHelper I
DAX Formula for subtracting
Hello All, I have been trying to figure the following out for the last 2 days without any luck, Basiclly what iam trying to achieve is Client - has allocated 10 hours a month 4 hrs worth ...
v-ljerr-msft
9 years agoMicrosoft Employee
Hi Wise1,
In addition, use the formula below to create a measure, and show it with the Client id on the report should also work.:smileyhappy:
SLAHrsCalculatedPerClient = SUMX ( sla, sla[MeasureTotalTimespentOrg] - sla[SLA Hours] )
Regards
Wise1
9 years agoHelper I
Thanks for replying, it does not seem to work with the method above, but works when i do it with only lets say [SLA Hours]
- v-ljerr-msft9 years agoMicrosoft Employee
Hi Wise1,
You can use the SUM function in DQ mode if you go to Options -> DirectQuery and enable "Allow unrestricted measures in DirectQuery mode".:smileyhappy:
Regards
- Wise19 years agoHelper I
Just thought i would reply so people dont think i have forgotten about this thread
Still trying to pull it together, but getting closer! thanks everyone for their input so far!