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! Request now

Reply
Anonymous
Not applicable

Transpose mapping between two tables in Power BI

Hi All,

 

I have table 1 where we have age, Gender, Country ,Date and City fields. But these 4 information have been entered by different users in different manners. For eg. Alan have entered age in Field1 where asChris have entered Country in Field1 and so on.

 

crrt1.PNG

 

In Table2 - we have actual field which will map with Main Field and we can identify for eg. Field1 for Alan is Age and Field1 for Chris is Country.

crrt2.PNG

 

Provided the expected output below:

crrt3.PNG

 

How to achieve this in power bi? or How to align age, Gender, Country ,Date and City fields?

 

Thanks in Advance

 

Regards,

Prakash M

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , these can be steps.

 

1. Unpivot the first table (Main Field and value are the columns  )

2. Create a key both table main field and process. and merge two tables based on this key

3. remove Main Field if required

4. pivot Actual Field and Value

 

https://radacad.com/pivot-and-unpivot-with-power-bi

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
Anonymous
Not applicable

Hi @amitchandak ,

 

I have 2 rows for Alan in Table 1 thus i am getting error and if i delete one of those 2 rows and then if i execute all the steps as per your suggetion then it is working. Could you please explain me in detail on how to get the expected output for 2 rows for single process.

 

Thanks in Advance

Prakash

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors