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
Fryyy
Advocate II
Advocate II

Same sorting in PowerBI like in csv or Excel

Hello,

is it possible to keep the same sorting in Power BI like in csv or Excel Files?

when i try to create a line chart the sorting on the x-axis is different to csv or excel file.

 

X-Achse Sortierung.JPG

 

 

This is my x-axis. For example the 2:00:00.0000 has to be  after 0.000 like in the following table

 

Tabelle Sortierung.JPG

 

 

 

Can someone help me?

Greetings

Fryyy

3 REPLIES 3
Anonymous
Not applicable

@Fryyy,


You can firstly add an index column for your table in Query Editor of Power BI Desktop. Then click your column in the Field Pane, then select Index after clicking “Sort By Column” under Modeling ribbon, there is an example for your reference.
1.PNG2.PNG3.PNG

Regards,

 

Greg_Deckler
Community Champion
Community Champion

Create a calculated column where you strip out the colons and make sure that this is set to be a Whole Number column. Then, set your sort by for your existing column to be this new column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

The colons are needed because this column is like a timeline and they seperate the seconds, minutes, hours and days . And i cant set this column to a Time-Column, because it only counts the seconds, minutes and hours.

 

Is there another possibility to fix my problem??

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.