Forum Discussion
DAX Formula for subtracting
SLAHours = Sum(sla[SLA Hours])
- Problem is i cant add this up because the "SLA HOURS" is a set number which is set and differs (ie: some might be 10 hours, some 20)
ie: Client A has - 10 hrs
Client B has - 20 Hrs
When i sum it up- it just adds the "SLA Hours" up and gives me a number of 30
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
- 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
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]
- 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!