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
Gianluigi
Helper II
Helper II

change order

HI,
I want to import data from an Excel file sorted as in the figure

Immagine1.jpg

 but once exported the ordering changes. Is it possible to keep it the same as the one in the Excel file? Thank you

Immagine2.jpg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Gianluigi ,
You can add an index column and sort the data by the index column after exporting.

1.Add an index column.

vyifanwmsft_0-1709688856356.png

2.Sort by index column.

vyifanwmsft_1-1709688917639.png

 

Final output:

vyifanwmsft_3-1708672115558.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Gianluigi ,
You can add an index column and sort the data by the index column after exporting.

1.Add an index column.

vyifanwmsft_0-1709688856356.png

2.Sort by index column.

vyifanwmsft_1-1709688917639.png

 

Final output:

vyifanwmsft_3-1708672115558.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

 

Anonymous
Not applicable

Hi @Gianluigi ,

Based on the screenshot you provided, it looks like the data you imported is in ascending date-time order. When importing an Excel file into Power BI, use the Power Query editor to sort the data in the desired order before loading it into Power BI. You can follow these steps as the data is loaded:
1. Open the Power Query editor and select the columns you want to sort.
2. Use the Sort Ascending/Descending buttons to sort the date data before loading it into Power BI.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Hai Ada,

In Power Query, it's sorted the way it is in Excel.

Thank you

Immagine1.jpg

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors