Forum Discussion
Measure doesn't add up
Hi,
I have this measure -> GP = - 1800 + SUM(vw_PivotVisitsInvoiced[Income Generated])
Calc Column -> Income Generated = vw_PivotVisitsInvoiced[Visits_NoHrs] * 6.25
Why is my total below not right?
Thanks,
Gerry
Your GP is a measure. At the grand total, it will just sum all data together first, then minus 1800. If you want your expression be evaluated on each row, you should use SUMX().
GP =SUMX(vw_PivotVisitsInvoiced,vw_PivotVisitsInvoiced[Income Generated]-1800)
See sample below:
Regards,
5 Replies
- kcantorCommunity Champion
what are you expecting the number to be and why is it wrong? Your snip has no context for us to determine the source of the error.
- android1Post Patron
Hi kcantor,
Was hoping the total of GP, €3157.81 would be -€16642.2 (Ths sum of the GP totals)
- v-sihou-msftMicrosoft Employee
Your GP is a measure. At the grand total, it will just sum all data together first, then minus 1800. If you want your expression be evaluated on each row, you should use SUMX().
GP =SUMX(vw_PivotVisitsInvoiced,vw_PivotVisitsInvoiced[Income Generated]-1800)
See sample below:
Regards,