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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

v-rzhou-msft
Community Support
Community Support

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
v-rzhou-msft
Community Support
Community Support

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])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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