cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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?


@ 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!:
Mastering Power BI 2nd Edition

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?


@ 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!:
Mastering Power BI 2nd Edition

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors