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

exclude data when one of the tables contain 0

Hi Guys,

can anyone help with my question below:

i have two reports from 2 sources contain same products, however i do not want the pbi dashboard page/visuals to show the data when either one of the report contains 0. for example, both report 1 and 2 are from 2 different sources, and with same product ,if apple and pineapplle are showing 0 in table 2 then apple and pineapple will not show data in dashboard, so my visuals will show banana only. what dax can i apply for this situation for all pages and visuals in the dashboard

emilyhowl_0-1628593562962.png

 

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , If i can assume report 1 and report 2 are table and sum of value is 0

Value1 is measure from report 1 and value 2 is measure from report 2

 

One way is put report level filter  value1 <> 0 and value2 <> 0

 

or create measure like 

value1 new =

if( [value1] = 0 && [Value2] =0, blank(), [Value1])

 

 

value2 new =

if( [value1] = 0 && [Value2] =0, blank(), [Value2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hi @Anonymous 

I think you can try to build a measure to filter your visual as well.

My Sample:

1.png

Measure:

Filter = 
IF(SUM(Source1[Report1])<>0&&SUM('Source 2'[Report 2])<>0,1,0)

Build a visual ,add this measure into visual level filter field and set it to show items when value =1.

Result is as below.

2.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

I think you can try to build a measure to filter your visual as well.

My Sample:

1.png

Measure:

Filter = 
IF(SUM(Source1[Report1])<>0&&SUM('Source 2'[Report 2])<>0,1,0)

Build a visual ,add this measure into visual level filter field and set it to show items when value =1.

Result is as below.

2.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , If i can assume report 1 and report 2 are table and sum of value is 0

Value1 is measure from report 1 and value 2 is measure from report 2

 

One way is put report level filter  value1 <> 0 and value2 <> 0

 

or create measure like 

value1 new =

if( [value1] = 0 && [Value2] =0, blank(), [Value1])

 

 

value2 new =

if( [value1] = 0 && [Value2] =0, blank(), [Value2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.