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
benyhh
Frequent Visitor

"Select All" different from manually selecting all in filter

I noticed that using the "Select All" button is different from selecting every item in the filter manually. 

Consider the case of two tables, Dim and Fact. They are related on Key, and Dim filters Fact.

 

Fact

Key Value
1 10
2 12
2 14


Dim

Key Attribute
1     Red
2     Blue
3     Green

 

I visualize data from Fact, while using the Attribute column in Dim in a Slicer. The problem is that there are Attributes in the slicer that don't exist in the Fact table, and with a large Fact and Dim table, the slicer can be unnecessarily big. 

 

My first solution was to change the filter direction to both ways. Then I add the Key column from the Fact table into the filters pane. If I press "select all", the Fact table seem to not filter the Dim table, but if I remove "select all" and manually click on all keys that exist in the Fact table, the Dim table is filtered such that only the Attributes from Dim that exist in Fact will show in the slicer.

 

This is unfeasable for larger tables, and my solution was to add a new column in the Dim table

LinesWithData =

IF(

    'Dim'[Key] in DISTINCT('Fact'[Key]),

    TRUE(),

    FALSE()

)


And use it in the filters pane and select True.

 

Does anyone have a different solution to this, considering adding new column might not be possible when connecting to some data sources?

 

In my opinion, it would be best if selecting all using the button and selecting all manually yield the same result, filtering the related tables. Note that I have a working solution to my problem, but I want a discussion because this interaction seem illogical to me. 

 

Thanks,

benyhh

 



1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@benyhh,

 

See the article below. It uses a simple DAX expression that can be used as a visual filter to exclude Dim values not in the Fact table.

 

https://www.sqlbi.com/articles/syncing-slicers-in-power-bi/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@benyhh,

 

See the article below. It uses a simple DAX expression that can be used as a visual filter to exclude Dim values not in the Fact table.

 

https://www.sqlbi.com/articles/syncing-slicers-in-power-bi/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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