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

Unpivoting data from multiple files and appending them

Hey guys,

 

I've used this great community many times and unfortunatly this time I couldn't find solution for my issue so I'm turning for help.

 

There are files coming every one week to one folder with pivoted data, something like this:

 

At the beginning I thought it was easy, I have used Expanded tables function so I got all the data form this folder in one query and then just used Unpivot function. It would work..but the data that is pivoted is very often different, see example below:

 

Example1:

DateCityProductID1ProductID2ProductID3
ABvaluevaluevalue

 

Example 2:

DateCityProductID1ProductID3
ABvaluevalue

 

In the above example, if we will Unpivot appended data it would give us false values (joining productID2 with productID3).

 

I need some kind of solution that will create for each file separated query and then will append all the queries together. Each file needs to be unpivoted separately, I can't think of anything else.

 

Anyone had situation like that?

 

Would be grateful for help.

Cheers,

Rafal

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may try Table.UnpivotOtherColumns.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may try Table.UnpivotOtherColumns.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.