Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to Filter Out Zero Rows at Macro Level. Please Help.

Hello everyone,

 

I am having issues figuring out how to correctly filter out zero rows at the macro level. Basically at the macro level, in my case using Foreign field as the macro level, filtering out zero rows cause PBI to show the same line items whether I checked off "Line Items With Activities" or "Line Items Without Activities". It seems PBI is doing this because am not aggregating correctly in my formula; basically, at the entity level, there are entities where certain rows are true zero rows then there are entities with rows that offset each other, i.e. same row item in one entity is positive while the other entity has the exact negative opposite. So in the overview macro level, the items would net out, which is what I want but then when filtering to show either Line Items With or Without Activities, PBI show both when I want the netted row to be also filtered out if it nets to zero. At the entity level, PBI filters out correctly.

 

PBI Filter Testing Pic 1.png

 

PBI Filter Testing Pic 2.png

 

How can I write a formula that would accomplish filtering out zero rows, including those netted to zeroes, correctly at the macro level?

 

As a tack on, how can I filter multiple columns effectively, i.e. I want to filter by entity ID and line item ID so that all line items lined up correctly for the respective entity?

 

Thank you in advance for the help.

 

 

6 REPLIES 6
Anonymous
Not applicable

Just bumping this up to see if anyone has an answer. Thanks.

v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may just try Visual level filters.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I would opt for visual level filters but we want to make it dynamic as it'll be handed over to a client and thus having the slicer in the visual to allow toggling to remove rows with zero value would be best. Is this not doable?

Anonymous
Not applicable

Here is a screenshot of the mocked up dataset

PBI Filter Testing Pic 3.png

Unfortunately am on my work laptop and permission is very limited for file sharing.

 

Thanks again for any help.

Hi,

 

Without a dummy dataset, it will be very difficult to help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hello there,

 

The mocked up dataset is posted as a screenshot in second post. Unfortunately, this account is my work account and admin has set quite a limitation on uploading and sharing files.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.