Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi experts,
Would you please help me sum the total by both type and class
End result should be
HS--> 1000
TM --> 1520
| Class | Type | Total |
| A | HS | 500 |
| A | HS | 500 |
| Z | HS | 500 |
| Z | HS | 500 |
| Z | HS | 500 |
| Z | HS | 500 |
| C | TM | 760 |
| L | TM | 760 |
| . | . | . |
| . | . | . |
| . | . | . |
| . | . | . |
Solved! Go to Solution.
@Anonymous So tweak your measure like below:
Hi @Anonymous ,
Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!
Hope it helps,
Community Support Team _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Create a measure like below:
This won't work as it will return 3000 for HS as it is not considering the Class in the equation.
HS should be 1000
@Anonymous So tweak your measure like below:
Hey @Anonymous ,
you can just create a matrix and put the Type in the rows and the total in the values. Then it will sum by Type.
Otherwise you could create measures:
Sum HS =
CALCULATE(
SUM( myTable[Total] ),
myTable[Type] = "HS"
)
and for TM:
Sum TM =
CALCULATE(
SUM( myTable[Total] ),
myTable[Type] = "TM"
)
The measures set the filter of the type to HS or TM and for that reason you will always get the sum for the corresponding type.
This won't work as it will return 3000 for HS as it is not considering the Class in the equation.
HS should be 1000
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |