Forum Discussion
bml123
Post Patron
4 years agoGrand Total is not correct
Hi, I have a matrix like this where amount is a measure. I am getting grand total incorrect as you can see. There is some calculation in amount measure for Others. It's ignoring the value for o...
- 4 years ago
Which table is the Employee field in the visual coming from?
If it's the Employee table try:
AMOUNT = SUMX ( 'Employee', CALCULATE ( SWITCH ( MAX ( Employee[Employee] ), "Others", DIVIDE ( 150, 10 ), DIVIDE ( [Target], [Num_weeks] ) ) ) ) - 4 years ago
PaulDBrown
Community Champion
4 years agoTry:
Total amount = SUMX(Employee, [Amount])bml123
Post Patron
4 years agoHi PaulDBrown
I have tried your measue, it is not giving any values. It's just blank.
I want the grand total in my matrix to have the correct value.
- PaulDBrown4 years ago
Community Champion
Which table is the Employee field in the visual coming from?
If it's the Employee table try:
AMOUNT = SUMX ( 'Employee', CALCULATE ( SWITCH ( MAX ( Employee[Employee] ), "Others", DIVIDE ( 150, 10 ), DIVIDE ( [Target], [Num_weeks] ) ) ) )