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
alau
Helper I
Helper I

Data transformation help - Unpivot selected rows to columns

Hi BI experts out there, any help will be appreciated.

 

I have been struggling with this data transformation for the past couple of hours!

 

I want BI to maintain the first 4 columns (green), and unstack the row data (blue) across the columns 

 

 BI-1.jpg

 

So this is what I want after my transformation:

BI-2.jpg

 

I try doing unpivot/unpivot columns, tranpose, etc. but all to no avail.

 

Here is a link to my pbix: https://file.io/6E6gsz50H0I3

 

Please help!

 

Thanks.

 

Anthony

1 ACCEPTED SOLUTION

Hi,

You may download my solution PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

There is an error when i click on document in that link.  Please check.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Sorry, my company blocks file sharing sites, so that might be why it didn't upload.

 

I don't have any ways to upload my pbix unfortunately, unless you are OK for me to email you directly?

Hi,

Anonymise the data and share it from your Home.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

OK, I just uploaded it from my personal computer.

 

https://file.io/6E6gsz50H0I3

Hi,

You may download my solution PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Absolutely amazing! Thank you so much @Ashish_Mathur for your brillant solution!

I will now try your steps with a bigger pool of data, and hopefully I can follow your logic if I were to hit any hurdles with the larger sample. 

 

I can't say i fully understand the logic of the group and ungrouping yet, but I will be sure to study it to learn from your steps.

 

Many thanks to you and this wonderful BI community! 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.