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! It's time to submit your entry. Live now!
Hello All,
I am trying to create a custom grand total in the Matrix visualization but I am not able to achieve it, is there a way to get it.
Below is the example.
| trans | |
| a | 10 |
| b | 20 |
| c | 30 |
| total | 12 |
Here I am trying to get sum(trans)/5 in the grand total, but in matrix by default I'm getting 60. Can some please help me on this request.
Thanks for all your support.
Solved! Go to Solution.
Hi @Anonymous ,
You can do like this:
Measure =
IF(
HASONEVALUE('Table'[Trans]),
SUM('Table'[Trans]),
SUM('Table'[Trans])/5
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can do like this:
Measure =
IF(
HASONEVALUE('Table'[Trans]),
SUM('Table'[Trans]),
SUM('Table'[Trans])/5
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , you have to use isinsope or isfiltered to do that
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
if( isfiltered(Table[Commodities]), [formula ],[formula ]/5)
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 52 | |
| 41 | |
| 32 | |
| 26 | |
| 24 |
| User | Count |
|---|---|
| 133 | |
| 118 | |
| 56 | |
| 43 | |
| 43 |