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! Learn more

Reply
marami21
Frequent Visitor

Stack columns one after the other

I have something like this:

10.PNG

And I need to change it to something like this.11.PNG

 

 

 

 

 

 

 

I know this can be done with unpivoting but I've tried several times and I have not been able to achive it. 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @marami21 

 

Please see the attached solution, its three steps using UI only.

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @marami21 

 

Please see the attached solution, its three steps using UI only.

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Can you please explain to me what does split column by character transition do?

Mariusz
Community Champion
Community Champion

Hi @marami21 

 

If you asking how it works, its a function that iterates each "Attrbute" field, converts it into a list, scans this list for numbers 0 to 9 and splits the column if the number is found.

 

The below screenshot shows how to create this step.

image.png

 
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

jdbuchanan71
Super User
Super User

Hello @marami21 

I think what you need to do is split your original table into blocks then stack them.  In the attached file there are 5 queries.

The first one just pulls in the data

The next three reference the first one (no reason to load the data again) an pull just the set of columns for that block then renames the columns

The final query stacks together the previous three

All but the final query are set to not load to the model since we only care about the final result.

DisableLoad.jpg

 

StackedColumns.jpg

My sample file is attached for you to look at.

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.