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

Reverse an Unpivot

Hi,

 

My goal is to do the reverse of an unpivot.

 

Input:

After unpivoting, I have the following table - 

Index | Attribute   | Value

0 | CategoryA | AA

0 | CategoryB | BB

1 | CategoryA | CC

1 | CategoryB | DD

 

Desired Result:

I would like to reverse the unpivot so that I have the following table - 

Index | Category A | Category B

0        | AA                | BB

1        | CC                | DD

 

Any ideas on how to do this? I tried using pivot and selecting don't summarize but it tells me there are too many rows.

 

Thanks,

Buri

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I played with this a little more and using Pivot now works. Unsure what changed, but problem solved.

View solution in original post

2 REPLIES 2
JoseEravuch1995
New Member

Hi, 

 

You can use the pivot option in the transform ribbon. Select the category column and click the pivot option. 
Hope it is helpful.  for more, you can reach out to joseeravuchira@gmail.com

 

Thank you

Anonymous
Not applicable

I played with this a little more and using Pivot now works. Unsure what changed, but problem solved.

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.