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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
qmestu
Helper III
Helper III

How to connect this specific set of data

Hello,

 

I have the following tables:

 

data table:

IDC1C2C3D1D2NAT
1AB    
2BCD   
3A     
4B     
5   Z  
6    X 
7     1
8     1

 

geo table:

LocationCodeLocationSubLocation
1 A
2 B
3ZC
4 D
5 E
6XG
7 NAT

 

I have a slicer that lists the location and when i choose a location, i want to filter my main table through the columns of C1 to C3 and NAT. I've tried unpivoting the C1 C2 and C3 columns and using that as an intermediate table to connect all of the tables, but i'm not sure how i can do the same with the NAT and D1,D2 columns.

 

Thank you.

1 REPLY 1
lbendlin
Super User
Super User

 I've tried unpivoting the C1 C2 and C3 columns and using that as an intermediate table to connect all of the tables, but i'm not sure how i can do the same with the NAT and D1,D2 columns.

Do the same - unpivot everything except the ID column.  Then in DAX you can implement the logic that checks for either location or sublocation matches.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors