Forum Discussion
Issue with sum on row and total values
- Anonymous4 years ago
Hi Anonymous ,
In Power BI, the total is not simply the sum of all row values, it will also calculate by the formula.
You may consider to create a new measure by using ISINSCOP() and SUMX() function.
https://docs.microsoft.com/en-us/dax/isinscope-function-dax
https://docs.microsoft.com/en-us/dax/sumx-function-dax
measure = IF(ISINSCOPE([axis column]),[xxx %],SUMX(ALLSELECTED('table'),[xxx %]))
It will return xxx % on row level and return the sum of xxx % at total field.
Best Regards,
Jay
Hi Anonymous ,
In Power BI, the total is not simply the sum of all row values, it will also calculate by the formula.
You may consider to create a new measure by using ISINSCOP() and SUMX() function.
https://docs.microsoft.com/en-us/dax/isinscope-function-dax
https://docs.microsoft.com/en-us/dax/sumx-function-dax
measure = IF(ISINSCOPE([axis column]),[xxx %],SUMX(ALLSELECTED('table'),[xxx %]))
It will return xxx % on row level and return the sum of xxx % at total field.
Best Regards,
Jay