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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors