Forum Discussion

JeroenZuidlaren's avatar
JeroenZuidlaren
Frequent Visitor
2 years ago
Solved

Total for DAX measure does not work [SUMMARIZE function]

Hello,

 

I have created a measure "UrenKosten_Test3"

The measure should summarize the total cost per "Code" based on:
- number of hours for a Code > this is capured in a measure "WBSOGeschrevenTMMaand"
- Uurtarief, ForfaitI, ForfaitII, these are in a budget Table and used as a variable in this measure.

In the visual table the calculation on Code level is correct.

However the total is incorrect. It seems it is calculated based on the Minimum of all Uurtarief [21] and all Forfaits [10].

(21+10=31) x 4.253 = 131.843

 

However the total should be the sum of the individual codes:

30.021 + 19.096 + 49.256 + 30.888 = 129.261

I thought this is exactly what is summarize in the _table and with a SUMX this should be the total result.


What do I miss?

 

 

  • Hello Greg_Deckler . I have solved this issue.

    The T1 and T2 need to be part of the IF statement. Only then it is summarizing correctly per Code.


    I have another issue with this dataset but will prepare sample data tomorrow and mention that over here or start a new post. Thanks!

4 Replies