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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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!:
The Definitive Guide to Power Query (M)

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!:
The Definitive Guide to Power Query (M)

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors