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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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