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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
oj62012
New Member

Adding measure to a visual table ignores my slicer

Hi all

 

I have a visual table being filtered by company from a slicer. The filter breaks when I add a measure in the visual table. Below are details of my issue:

  • The measure calculates the total number of "Excluded" customers coming from a fact table (Table_reports) with this DAX code: 

          Measure = 

           CALCULATE(SUM('Table_reports'[No. customers])+0,

           FILTER('Table_reports','Table_reports'[Exclude]="No")
 
  • The values in the slicer comes from a dimension table (Table_Companies)
  • The Table_Companies is related to the Table_reports with a one to many relationship. 

Problem:

My visual table contains data from Table_reports. When I add the measure into the visual table it ignores the slicer, listing all companies instead of the selected company in the slicer. 

 

Thank you for your help in advance. 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@oj62012 It's likely the +0 causing the issue. What happens if you remove that?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@oj62012 It's likely the +0 causing the issue. What happens if you remove that?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hey again, 

 

Sorry, it actually worked! I'm not sure why it didn't worked the first time. 

Thank you so much for your help! 

 

Cheers

Hi Greg 

 

Thanks for responding so quickly. 

I removed the +0, I got the same results. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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