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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lekkerbek
Helper IV
Helper IV

How to reshape this data?

Hi,

 

It's probably because it's Friday, but I don't know how to reshape the data for me to work with.

 

I have an export which is currently the first line. In this example it's limited to 2 weeks, but it goes all the way to week 52.

 

My guess is that I have to unpivot columns to have it look like line 7, but how do I do that the fastest way possible?

 

The figures in column F of line 1 (week) are the number of items sold in that week of that item. 

 

Schermafbeelding 2017-01-27 om 14.29.04.png

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @lekkerbek,

 

Yes, you need to reshape your data. Currently, you have 3 columns for each weekly, your source table will change as time goes by.

 

You could refer to the link below to see how to pivot and unpivot data in Power BI.
http://radacad.com/pivot-and-unpivot-with-power-bi

 

Regards,

Charlie Liao

 

 

 

Thanks will try that. Sorry for the late reply, I didn't receive a notification that someone replied.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.