Forum Discussion
Unable to display values in Level2 and Level3 Matrix visual in Power Bi
- 3 years ago
Thanks a lot. it resolves all my issues.
Hi DevMaster again 🙂
I'm still not sure I understand.
But if you just want to show levels 2 and 3 you can achieve it with DAX
According to the hierarchy level, it shows the calculation that you "tell" him
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
i am trying to calculate the percentage and show the values in Level2. Could you please share .pbix file
- Ritaf19833 years ago
Super User
Hi DevMaster
If I understand you correctly and your desired result is something like this :Then you can follow these steps:
1. Add a calculated column for percentage:Percentage =VAR __Current = 'Table'[Value]VAR __Previous = MAXX(FILTER('Table','Table'[Level2] = EARLIER('Table'[Level2])),[Level2])VAR __PreviousValue = MAXX(FILTER('Table',[Level2]=__Previous),[Value])RETURNDIVIDE( __Current,__PreviousValue)2. Create a measure for the matrix:
MatrixValue = if (ISFILTERED('Table'[Level3]),SUM('Table'[Value]),if(ISFILTERED('Table'[Level2]),format(min('Table'[Percentage]),"00%"),blank()))
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly- DevMaster3 years agoRegular Visitor
Thank you for solution. Here i am facing one issue like i don't want to show Total text in the report. if i set subtotals option to off then values not showing.
Could you please suggest that how we need to get rid off row/column subtotals.