Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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
Hi,
try this measure to replace your value field in the matrix:
i tried your measure but i have still empty rows as:
measure=
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 👍
Hello @DOLEARY85
Its working fine but when i export date from matrix, i got only Assets. could you please help ?
Exported data:
your method will only work if you create a hierarchy
If you replace the hierarchy in rows of the matrix with the individual lvl 1 - 4 fields it still works in the sample PBIX file I uploaded.
I understand why it doesn't work for me. the column is not empty. this will work:
Hello, @Ahmedx
I agian tried your file even i cant export complete data, could you please help me if you can.
or there is any another way to do this ?
Exported data:
Level1 | Level2 | Level3 | Level4 | value measure |
Asset | current | bank | bank1 | 10 |
Asset | current | gs | gs1 | 11 |
Asset | fixed | land | land1 | 12 |
Ah yes, apologies - i forgot to mention i also used Power Query to change the empty cells to null before using DAX, but yes this would be another way to do it without Power Query.
Share sample pbix file to help you.
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.
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
Hello,
i tried but complete Level 1 Income,Expense also filter.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
91 | |
84 | |
76 | |
65 |
User | Count |
---|---|
146 | |
109 | |
109 | |
102 | |
96 |