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

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

Reply
bilingual
Helper V
Helper V

Change data input from column to row - best practice, Excel, SQL or PowerBI?

Hi, my data is in SAP and currently designed by rows and i can not change this, but i need to change some parts of it into columns.

Here is an example:

Present structure

IDStopDate Time
P6544201-01-202110:50
P6544401-01-202111:55
P6544402-01-202111:35
P6585401-01-202109:45

 

Here is what i would like the structure to be changed into:

 

IDStop 1Date 1

Time 1

Stop 2Date 2

Time 2

Stop 3

Date 3

P6544201-01-202110:50401-01-202111:55402-01-2021
P6585401-01-202109:45     

 

So some tips regarding changing structure from column to row would be well recieved 🙂

 

And sorry about the messed up tables, i use the tabletool from PowerBI and it still gives me a html error...

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@bilingual , first add an index column by ID -https://www.youtube.com/watch?v=7CqXdSEN2k4

 

then unpivot new index column and date

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

View solution in original post

v-lionel-msft
Community Support
Community Support

Hi @bilingual ,

 

Maybe you can refer to my .pbix file.

v-lionel-msft_0-1612424796835.png

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @bilingual ,

 

Maybe you can refer to my .pbix file.

v-lionel-msft_0-1612424796835.png

 

Best regards,
Lionel Chen

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

amitchandak
Super User
Super User

@bilingual , first add an index column by ID -https://www.youtube.com/watch?v=7CqXdSEN2k4

 

then unpivot new index column and date

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.