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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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