Forum Discussion
jyaul786
Helper II
2 years agoHide/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 ...
DOLEARY85
Resident Rockstar
2 years agoHi,
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 👍
- jyaul7862 years ago
Helper 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]))- DOLEARY852 years ago
Resident 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 👍
- Ahmedx2 years ago
Super User
your method will only work if you create a hierarchy