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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
namitajuneja15
Frequent Visitor

Write a query for index match

Hello Team,

 

I am new to POWER BI  and for creating a dashboard I need to join these 2 tables based on index .

 

namitajuneja15_0-1660221505816.png

 

How do I write a DAX query to join the index of 2nd table to the column name of 1st in POWER BI. Is there any other way to do so?

 

1 ACCEPTED SOLUTION
v-yetao1-msft
Community Support
Community Support

Hi @namitajuneja15 

Select the value "S_0_1" , "S_1_0" .. "S_1_4" , then unpivot the selected columns .

Ailsamsft_0-1662603653620.png

Then go back to report view , you can match with index column .

I have attached my pbix file , you can refer to it .

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yetao1-msft
Community Support
Community Support

Hi @namitajuneja15 

Select the value "S_0_1" , "S_1_0" .. "S_1_4" , then unpivot the selected columns .

Ailsamsft_0-1662603653620.png

Then go back to report view , you can match with index column .

I have attached my pbix file , you can refer to it .

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

Hi @namitajuneja15 
You need first to unpivot the first table using power query.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors