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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
wilson_smyth
Post Patron
Post Patron

replacing multiple slicers with one slicer - filter context issues

I have a table with a number of attributes and a score. I Want to display a a report that shows two things:

 

1 - a chart showing the top 10 stores for a particular Store Specialty

2 - the rank of a selected store & speciality, when measured against other stores with the same specialty

 

For chart 1, i added a slicer for store specialty, and it compares the stores with same specialty . That is requirement 1 satisfied.

I also need the user to  see its ranking against other [store Specialty]. This means they will have to select a specific store/specialty, which means using two slicers. Also, if i use a Card to display just the rank of the Store Specialty selected, it is always = 1.

 

Is there a way to do this so that the user just selects their [store specialty] value from a slicer, then chart 1 will use ALL(stores) but keep the specialty filter context, while the chart 2 (rank)work as it does now?

 

There is a link to a sample pbix file for this. it has a small set of sample data.

 

appreciate any help you can provide.

 

Link to pbix on onedrive

 

 

 

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

@wilson_smyth,

 

Is there a way to do this so that the user just selects their [store specialty] value from a slicer, then chart 1 will use ALL(stores) but keep the specialty filter context, while the chart 2 (rank)work as it does now?

In your sample PBIX file, when selecting a [Store Speciality] from slicer one, it compares the stores with same specialty in chart one. And then in chart two, it display the rank for those [Store Speciality] for different stores.
Capture.PNG

 

Do you need the rank column to show 3,49 other than 1,2 3, right?Capture2.PNG

If that is the case, I don't think we can do it in a slicer. You need another table with the store specialty column and has no relationship with your original table.

  1. create a table by with Enter Data
    Capture3.PNG
  2. Create a masure in this new created table
    SelectedSpeciality = max(Table1[Store Specialty])
  3. Create a measure in original table
    CheckSpecialty = IF(ISERROR(SEARCH(Table1[SelectedSpecialty],MAX('Store Details'[Store Specialty]))),0,1)
  4. Add this measure to your visual filter
    Capture4.PNG

Results
Capture5.PNGCapture6.PNG

 

Regards,

Charlie Liao

 

View solution in original post

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@wilson_smyth,

 

Is there a way to do this so that the user just selects their [store specialty] value from a slicer, then chart 1 will use ALL(stores) but keep the specialty filter context, while the chart 2 (rank)work as it does now?

In your sample PBIX file, when selecting a [Store Speciality] from slicer one, it compares the stores with same specialty in chart one. And then in chart two, it display the rank for those [Store Speciality] for different stores.
Capture.PNG

 

Do you need the rank column to show 3,49 other than 1,2 3, right?Capture2.PNG

If that is the case, I don't think we can do it in a slicer. You need another table with the store specialty column and has no relationship with your original table.

  1. create a table by with Enter Data
    Capture3.PNG
  2. Create a masure in this new created table
    SelectedSpeciality = max(Table1[Store Specialty])
  3. Create a measure in original table
    CheckSpecialty = IF(ISERROR(SEARCH(Table1[SelectedSpecialty],MAX('Store Details'[Store Specialty]))),0,1)
  4. Add this measure to your visual filter
    Capture4.PNG

Results
Capture5.PNGCapture6.PNG

 

Regards,

Charlie Liao

 

Thank you. this is very helpful, and a useful technique in general to know!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors