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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TimHoare
Frequent Visitor

Date-time ties not sorting correctly

I have some data that represents an occurence of one object changing between 'stages', and the time that each change occured. The data appears in reverse-chronological order:

 

TimestampOldStageNewStageOrder
2020-03-03T20:12:37Stage 4Stage 55
2020-02-29T12:22:56Stage 2Stage 44
2020-02-13T09:39:10Stage 1Stage 23
2020-02-13T09:39:10Stage 2Stage 12
2020-02-11T17:18:25Stage 1Stage 21

 

The data shows a single journey from Stage 1 to 5 at every step - Starting at 1, moving to 2, then back to 1 and so on. I have a record of when these changes occured in the form of a date-time timestamp. Unfortunately, on occasion there are duplicate timestamps, when it appears the object moves forwards then quickly backwards again (or vice versa). Thankfully I know for a fact the order that the data appears is the order that it occured, so am able to add an 'order' column to sort by. 

 

What I would like to do is to plot the data almost as-is in a table, but without the order column. When I try to do this, and sort by the timestamp column, often it will sort the ties in the wrong order (here the 2nd and 3rd rows should be reversed):

 

stage_changes.png

I have tried to sort the Timestamp column by the Order column I created, but this is not permitted:

 

sort_by_column.png

I guess my question is: Is there a way that I can order the timestamp column in my table so that the ties are always ordered correctly, without having to include my order column and sort by that?

 
 
 

 

1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

if you sort where there is a duplicate value you will not be able to sort, you will either need to clean up your data or provide  a value to your COLUMN colum that has a one to one relationship with the column you want to sort.  





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

1 REPLY 1
vanessafvg
Super User
Super User

if you sort where there is a duplicate value you will not be able to sort, you will either need to clean up your data or provide  a value to your COLUMN colum that has a one to one relationship with the column you want to sort.  





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.