Forum Discussion
Hide/remove matrix rows
Dear Friend,
i have one table with Level1,Level2,Level3,Level4 and value, i want to display in Matrix with hierarchy.
Data:
| Level1 | Level2 | Level3 | Level4 | value |
| Asset | current | bank | bank1 | 10 |
| Asset | current | gs | gs1 | 11 |
| Asset | fixed | land | land1 | 12 |
| Income | Direct | 13 | ||
| Income | Indirect | 14 | ||
| Expense | Direct | expense1 | 15 | |
| Expense | Indirect | expense2 | 16 |
Matrix:
i dont have Level 3 and Level 4 for certain row, how can remove of that rows as mark below. i want to hide or remove the mark rows. Could you please help
16 Replies
- AhmedxSuper User
try this
Flag = IF(MAX(Level 3) = BLANK()||MAX(Level 4)=BLANK(),0,1)
throw the measure on visual level , You can apply visual level filters in that you can select 1
- jyaul786Helper II
Hello,
i tried but complete Level 1 Income,Expense also filter.
- AhmedxSuper User
Share sample pbix file to help you.
- jyaul786Helper II
i have some restrictions here so that i can't share pbix. this is simple pbix file with sample data:
Level1 Level2 Level3 Level4 value Asset current bank bank1 10 Asset current gs gs1 11 Asset fixed land land1 12 Income Direct 13 Income Indirect 14 Expense Direct expense1 15 Expense Indirect expense2 16 u can develop and test. thanks for your time and cooperation.
- AhmedxSuper User
- DOLEARY85Resident Rockstar
Hi,
try this measure to replace your value field in the matrix:
Value Measure= SWITCH(TRUE(),and(ISINSCOPE('Table'[Level3]),ISBLANK(VALUES('Table'[Level3]))),BLANK(),and(ISINSCOPE('Table'[Level4]),ISBLANK(VALUES('Table'[Level4]))),BLANK(),SUM('Table'[value]))If I answered your question, please mark my post as solution, Appreciate your Kudos 👍- jyaul786Helper II
i tried your measure but i have still empty rows as:
measure=
SWITCH(TRUE(),and(ISINSCOPE('Table test'[Level3]),ISBLANK(VALUES('Table test'[Level3]))),BLANK(),and(ISINSCOPE('Table test'[Level4]),ISBLANK(VALUES('Table test'[Level4]))),BLANK(),SUM('Table test'[value]))- DOLEARY85Resident Rockstar
Strange it works with the test data you provided, without being able to view your file i'm not sure what other solution could work.
I've attached my PBIX file for you to review, hopefully it will provide some additional help:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍