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
JACK__
Frequent Visitor

Create a new Data Source from an Existing Source

I currently have a data source like follows:

SKUSite 1Site 2Site 3Week
12310971
1239972
7891211
7892222

 

To create part of my report I figured it would be easiest if I could create a second data source from the original that is layed out differently, but I can't quite figure out if it is possible.

The end result would be:

SKUWeekSitePrice
1231Site 110
1231Site 29
1231Site 37
1232Site 19
1232Site 29
1232Site 37
7891Site 11
7891Site 22
7891Site 31
7892Site 12
7892Site 22
7892Site 32

 

Any Ideas?

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@JACK__ ,

Go to Power Query Editor and select all the 3 site columns of the table you wanted to modify. Then, select unpivot columns (highlighted in the image),

 

Arul_0-1708347654014.png

 

your resulted table should be like this, and then you can rename the value column as price,

 

Arul_1-1708347703544.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@JACK__ ,

Go to Power Query Editor and select all the 3 site columns of the table you wanted to modify. Then, select unpivot columns (highlighted in the image),

 

Arul_0-1708347654014.png

 

your resulted table should be like this, and then you can rename the value column as price,

 

Arul_1-1708347703544.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


JACK__
Frequent Visitor

Thank You 🙏

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.