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! Learn more

Reply
Anonymous
Not applicable

Relationship between 2 tables with lookup or contains

I have 2 tables

 

Table 1 has the technician name and the states that they cover. Many of them cover multiple states represented by the state abbreviation and a comma in between each state. 

 

valeringuyen_1-1640222240131.png

 

Table 2 has the 50 states with the count of state.

 

valeringuyen_2-1640222279521.png

 

I'm trying to create a power BI where when I click on a state in the map, it'll filter the table in the right if it contains the state abbreviation. Also, if I click the state in the table on the right, the bubbles from the map will show for those states ie. NM, TX for Alan.

Right now, when I click on California for instance, the list will show techs who cover only California.

valeringuyen_3-1640222401190.png

 

 

 

1 ACCEPTED SOLUTION
Thingsclump
Resolver V
Resolver V

Hi @Anonymous 

 

Please split table 1 in powerquery. You can split "states" column into "rows". Table 2 can stay as is. Create a relationship between states column in table 1 and Abb column in Table 2. 

 

Now create a measure as below

States name=CONCATENATEX('Table 1', 'Table 1'[states],",")

 

Create a matrix with rows as Primary contact name and measure as values.

 

This works when you select a single primary contact or multiple. Works for states selection as well. Map gets updated for selection that you make in Matrix.

 

Thanks

Thingsclump

 

 

 

View solution in original post

1 REPLY 1
Thingsclump
Resolver V
Resolver V

Hi @Anonymous 

 

Please split table 1 in powerquery. You can split "states" column into "rows". Table 2 can stay as is. Create a relationship between states column in table 1 and Abb column in Table 2. 

 

Now create a measure as below

States name=CONCATENATEX('Table 1', 'Table 1'[states],",")

 

Create a matrix with rows as Primary contact name and measure as values.

 

This works when you select a single primary contact or multiple. Works for states selection as well. Map gets updated for selection that you make in Matrix.

 

Thanks

Thingsclump

 

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.