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
prateekraina
Memorable Member
Memorable Member

Create Unpivot table but with a little challenge

Hi Guys,

 

Could you please help me building below solution. After a very long time I am not able to achieve something in Power BI.

 

Here is the data I am deailing with in the most simplest form:

 

I have two tables as Source.  Table A and Mapping

Table A   
Item Name Source AItem Name Source BAttribute Source AAttribute Source B
I1I1A1B1
I2I2C1D1
I3I3E1F1

 

Mapping  
CommonSource ASource B
Item NameItem Name Source AItem Name Source B
AttributeAttribute Source AAttribute Source B

 

I need to bring the above data in below format. At any point of time only one Item will be selected in Item Filter.

So, if we filter by I1 then below table:

 

AttributeSource ASource B
Item NameI1I1
AttributeA1B1

 

If we filter by Item I2, then below table:

 

AttributeSource ASource B
Item NameI2I2
AttributeC1D1

 

@Community: Please help in resolving this.

 

Regards,

Prateek Raina

2 REPLIES 2
amitchandak
Super User
Super User

@ImkeF , Can you help?

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

Hi @prateekraina 

that's a bit of an unusual format for Power BI data, but please check the solution in the file enclosed.

 

 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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