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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Kudoed Authors