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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

How to Filter Slicer by unrelated table?

I'm a bit stumped on my current problem.  I would like to filter the Status column in the Status table by the Users Language column. 
My users table must flow through the entity table. Status must also flow into entity.

 

ccgzach_1-1630884770268.png

 

Any help would be greatly appreciated!

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I ended up solving this problem by creating a measure that filtered the slicer for me.

The measure code looked like this 

 Status Language Filter =
var selectedLang = [Current Language] -- this gives the user's language
var userTableLangues = VALUES(Users[Language])
var flockStatusTables = VALUES('Translated Status'[Language Code])
return

IF(selectedLang IN StatusTables,"TRUE","FALSE")
 
Then,for the slicer on the visual, I used the advanced filter when that measure = 'TRUE' .

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I ended up solving this problem by creating a measure that filtered the slicer for me.

The measure code looked like this 

 Status Language Filter =
var selectedLang = [Current Language] -- this gives the user's language
var userTableLangues = VALUES(Users[Language])
var flockStatusTables = VALUES('Translated Status'[Language Code])
return

IF(selectedLang IN StatusTables,"TRUE","FALSE")
 
Then,for the slicer on the visual, I used the advanced filter when that measure = 'TRUE' .

Thanks for sharing bud ✌️, solved my problem.

PaulDBrown
Community Champion
Community Champion

I'm not too sure your model is optimized. You havve a number of tables linked by many-to-many relationships which should be avoided. 
Can you share a PBIX file renaming confidential column names? Or dample data for tables in the model?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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