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! Request now

Reply
PBI_newuser
Post Prodigy
Post Prodigy

Show only related items in slicer

Hi,

 

I have Dimension table that consist of all items.

When I use the field in dimension table, the slicer shows all items in the field.

I would like the slicer only show the related items when certain Fact table is selected.

 

Dim Table:

Model

A

B

C

D

E

F

 

Fact Table:

ModelSales
A$ 1000
C$ 120
F$ 4200

 

How to show only A,C,F in the "Model" slicer?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PBI_newuser , Go the visual level filter of slicer and filter sales is not blank or >0

 

This will work for one slicer too

https://www.youtube.com/watch?v=cyOquvfhzNM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

You can put a filter on the slicer in the Filters pane with a measure like 

 

ShowSlicer = IF(NOT(ISBLANK(COUNTROWS(Fact))), 1, 0)

 

And put that measure on a filter on your slicer visual and "is" 1.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Greg_Deckler
Community Champion
Community Champion

@PBI_newuser - You would need to use a Page level or Report level filter if I understand what you are after. Slicers do not get filtered by other visuals other than other slicers. You *might* be able to use a Complex Selector of some sort. https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@PBI_newuser , Go the visual level filter of slicer and filter sales is not blank or >0

 

This will work for one slicer too

https://www.youtube.com/watch?v=cyOquvfhzNM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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