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
Anonymous
Not applicable

Apply slicer only to one value in the visual

I want to add a Gauge visualization tile to my report.

My sample of data looks like this:

data sample.PNG

 

My Gauge visual has:

  • Value = Count of Rows (with 'Score' and 'Quarter' filter)
  • Maximum value = Count of Rows (with 'Quarter' filter and without 'Scores')

visual tile setting.PNG

I want to apply 'Quarter' filter to both 'Value' and 'Maximum Value', but other 'Scores' filter only to 'Value'. Following is expected output

Capture.PNG

So basically I want to apply some slicer to one value of visualization and another slicer to all values. Is that possible?

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You will need a DAX formula to get Maximum value.

Use ALL() function to avoid the filters you don't need.

Measure = CALCULATE(COUNT('Table'[Quarter]),FILTER(ALL('Table'),'Table'[Quarter]=SELECTEDVALUE('Table'[Quarter])))

 4.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You will need a DAX formula to get Maximum value.

Use ALL() function to avoid the filters you don't need.

Measure = CALCULATE(COUNT('Table'[Quarter]),FILTER(ALL('Table'),'Table'[Quarter]=SELECTEDVALUE('Table'[Quarter])))

 4.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , do you want max not to use slicer value?

Try a measure like 

maxx(all(Table), Table[Value])

Anonymous
Not applicable

  1. I am interested only in showing count of rows with selected data (not maximum values of score)
  2. Use of ALL would have been helpful, but my problem is a little different than what I originally posted where I had only one slicer.

I have updated my question. Kindly have a look and share any ideas that you get. Thank you

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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