Forum Discussion
Anonymous
6 years agoNot applicable
Custom grand total in Matrix
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...
- 6 years ago
Hi Anonymous ,
You can do like this:
Measure = IF( HASONEVALUE('Table'[Trans]), SUM('Table'[Trans]), SUM('Table'[Trans])/5 )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
6 years agoAnonymous , 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)