Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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 others. I want to get 45 grand total. How do I get the correct grand total?
| Employee | Amount |
| E1 | 10 |
| E2 | 20 |
| Others | 15 |
| Total | 30 |
Solved! Go to Solution.
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] )
)
)
)
Proud to be a Super User!
Paul on Linkedin.
Hi @bml123 ,
Create a another measure like this:-
measure= sumx(summarize('table','table'[employee],"Correct_Sum",[amount]),[Correct_Sum]))
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Try:
Total amount = SUMX(Employee, [Amount])
Proud to be a Super User!
Paul on Linkedin.
Hi @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.
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] )
)
)
)
Proud to be a Super User!
Paul on Linkedin.
Employee is coming from employee table
Would you share the amount measure?
Here is the formula of my Amount measure
Amount = SWITCH(CALCULATE(MAX(Employee[Employee])),
"Others",CALCULATE(150/10),
CALCULATE([Target] / [Num_weeks]))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 44 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |