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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Rows to column transformation with multiple files in a single table

Hi All,

I have imported FEb and Mar xlsx files from folder option and the table data sample is mentioned below, also every month file will be uploaded. 

1Date1-Feb2-Feb3-Feb4-Feb
2Apple12111310
3Orange12111310
4Grapes12111310
5Date1-Mar2-Mar3-Mar4-Mar
6Apple12111310
7Orange12111310
8Grapes12111310

 

I want to move from row 5 to 1 as mentioned below  also this has to work when new file will be uploaded on every month. Even Column 5 and Date can be skipped. Any Suggestion?

1Date1-Feb2-Feb3-Feb4-Feb5Date1-Mar2-Mar3-Mar4-Mar
2Apple121113106Apple12111310
3Orange121113107Orange12111310
4Grapes121113108Grapes12111310

Regards

MM

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

Hi @Anonymous ,

 

You can use the table.split function to split rows by 4 in your sample. And then divide it to two queries. At last you can merge them together.

 

Capture.PNG

 

Please refer to the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use the table.split function to split rows by 4 in your sample. And then divide it to two queries. At last you can merge them together.

 

Capture.PNG

 

Please refer to the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Anonymous , each month you should first  upload and then unpivot so that date come in row and then append .

 

Ideal data would be

Even, Fruit, Date, Value

1 , apple, 1-feb, 12

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit,

I have imported the file throught From Folder options. Hence, the files will be placed from diff. Location on monthly basis. The user will not do unpivot on every month...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors