Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi all,
I have a situation and I'm assuming it is not possible with straight forward functionalities of PBI.
Please help me in solving this.
I have a data source, something like below.
Group | LEVEL1 | LEVEL2 | LEVEL3 | LEVEL4 | Value |
XYZ | Global | 8 | |||
XYZ | Global | APAC | 8 | ||
XYZ | Global | APAC | ENT | 3 | |
XYZ | Global | APAC | ENT | IHE | 0 |
XYZ | Global | APAC | ENT | M&E1 | 3 |
XYZ | Global | APAC | ENT | M&E2 | 0 |
XYZ | Global | APAC | ENT | M&E3 | 6 |
XYZ | Global | APAC | IMS | 14 | |
XYZ | Global | APAC | IMS | IMS1 | 14 |
XYZ | Global | APAC | IMS | IMS2 | 20 |
XYZ | Global | APAC | IMS | IMS3 | 0 |
XYZ | Global | APAC | IMS | IMS4 | 6 |
XYZ | Global | APAC | MED | 0 | |
XYZ | Global | APAC | MED | ADV | 0 |
XYZ | Global | APAC | MED | BCS | 0 |
XYZ | Global | APAC | MED | CAS | 0 |
XYZ | Global | APAC | MED | PUB | 0 |
XYZ | Global | NA | 0 | ||
XYZ | Global | NA | DTS | 0 | |
XYZ | Global | NA | DTS | ITS | 0 |
XYZ | Global | NA | WTS | 0 | |
XYZ | Global | NA | WTS | WTS2 | 0 |
ABC | Global | 4 | |||
ABC | Global | APAC | 4 | ||
ABC | Global | APAC | ENT | 2 | |
ABC | Global | APAC | ENT | IHE | 0 |
ABC | Global | APAC | ENT | M&E1 | 2 |
ABC | Global | APAC | ENT | M&E2 | 0 |
ABC | Global | APAC | ENT | M&E3 | 3 |
ABC | Global | APAC | IMS | 7 | |
ABC | Global | APAC | IMS | IMS1 | 7 |
ABC | Global | APAC | IMS | IMS2 | 10 |
ABC | Global | APAC | IMS | IMS3 | 0 |
ABC | Global | APAC | IMS | IMS4 | 3 |
ABC | Global | APAC | MED | 0 | |
ABC | Global | APAC | MED | ADV | 0 |
ABC | Global | APAC | MED | BCS | 0 |
ABC | Global | APAC | MED | CAS | 0 |
ABC | Global | APAC | MED | PUB | 0 |
ABC | Global | NA | 0 | ||
ABC | Global | NA | DTS | 0 | |
ABC | Global | NA | DTS | ITS | 0 |
ABC | Global | NA | WTS | 0 | |
ABC | Global | NA | WTS | WTS2 | 0 |
I have dragged them into Matrix Visual like this.
Currently it shows like the screenshot below.
I don't want to show the blank rows coming up in between and also don't want to show totals summed.
I would want to see like below.
Thanks in advance for helping.
@amitchandak @Greg_Deckler @Icey
Solved! Go to Solution.
Hi @mysasai
you can write a measure as follows:
then it would be better to update your measure as follows:
Hi @mysasai
you can write a measure as follows:
Thank you @Selva-Salimi, this worked and values are not suming up.
Any idea how would I hide blank rows highlighted in Red lines in screenshot.
then it would be better to update your measure as follows:
Hi @Selva-Salimi ,
I implemented the solution on a large dataset, adding a few other filter conditions such as ID and Date. However, after importing a few months of data, I encountered a resource error. It appears that the measure is comparing each row with the entire imported dataset, leading to performance issues.
I also tried using Direct Query. Although I only need to process 50,000 rows, the operation is comparing against millions of records in the database, resulting in the error: "Error fetching data for this visual in Power BI: 1,000,000 row limit error."
Is there a way to optimize the measure to first filter by a specific ID and then perform the remaining DAX operations on the filtered dataset?
Thank you for your assistance.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.