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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Date time sort not work in correct order

Hi Experts

 

having some trouble sorting my data out using the index against the datetime column. it may appear to be correct but if you look at the date time values cearfully they are out of sink.

 

https://www.dropbox.com/s/agucoa2nxjy4txh/plot.pbix?dl=0 

6 REPLIES 6
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Can you describe in detail your problem you're having ? Or tell me the result you want?

 

Best regards,

Yadong Fang

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 Community Support - i want the datetime column to be sorted as per the index column based on datetime column. so all the data points are in the correct order. if you scroll down the datetime column you can see that further down we have 20/11/2022 01:00:00 when they all should be all together.

 

PREVIEW
 
 
 

maybe so  Column = RANKX(ALL(Sheet1),'Sheet1'[CalculationTimeUTC],,ASC)

Anonymous
Not applicable

Hi Ahmedx - try it and see if you can sort the datetime column please.

You have duplicates in the column CalculationTimeUTC , you need to remove them. and then in power queue sort and create an index column

Please check attached pbix for more details

https://dropmefiles.com/xzxjW

Anonymous
Not applicable

The dups need to remain as they are real data points in the datetime timeline plot...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.