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
JCK2
Helper III
Helper III

Union to use as a slicer

I am looking for some ideas to use a joined column as a master filter or slicer to view my data, have a data set as below;

 

Relese CountryUnits SoldHold CountryUnits Recieved
Netherlands0Germany1
Germany0United Kingdom0
Netherlands1Switzerland0
Switzerland1India0

 

So i want to use a country filter and see the results like below ( for eg; if i select germany in the filter).

Country = Germany

Units Sold0Units Recieved1

 

Country = Switerland

Units Sold1Units Recieved0

 

The only id thats common is country name, but one country will be missing for units recieved, so will have to do full join.

 

Any ideas? Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JCK2 , Create a country table

Country =
distinct(union(all(Table[Relese Country]),all(Table[Hold Country])))

 

Join both country column with that one active and one inactive or keep both inactive. And Use userelation to activate the join as per need.

Refer to this example for userelation  : https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

2 REPLIES 2
amitchandak
Super User
Super User

@JCK2 , Create a country table

Country =
distinct(union(all(Table[Relese Country]),all(Table[Hold Country])))

 

Join both country column with that one active and one inactive or keep both inactive. And Use userelation to activate the join as per need.

Refer to this example for userelation  : https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

Looks intresting! let me give it a try and keep you posted! Thanks Amit! 

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
Top Kudoed Authors