Forum Discussion
Help sorting column order
Hello,
Hoping you can help, might not have done this correctly but here's where I am. I have two date columns, start and end. Shown as i.e 01 Feburary 2015.
In then needed to change the format so created two new columns with the measure of
Hi rosscortb
It could not work when you sort the same value[Start Date and End Date] by different values[Start Date].You may use sort by 'Start Date Mon' as below green part.
Regards,
6 Replies
- HotChilliCommunity Champion
When you say 'Sort by Column' hopefully you know about https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column#sort-using-the-sort-by-column-button
and you could use the job positions[start date]
- rosscortbPost Patron
Yeah, wouldn't let me use Start Date.
- HotChilliCommunity Champion
Ah, fine. Error messages are usually helpful.
The message says it doesn't know how to sort because start date is not unique 'enough', that is, the same start date exists for different 'start and end date' values.
So you need to find a way of making it unique, maybe add a calculated column (number) to sort by, constructed from the 'start and end date' field like yyyymmdd from start date and append yyyymm from end date. Just an idea, i haven't tested it.
- jthomsonSolution Sage
Really don't get what you're asking exactly - you go on about concatenating a couple of columns together then go off on a complete tangent, can you clarify what you're actually wanting?
- v-cherch-msftMicrosoft Employee
Hi rosscortb
It could not work when you sort the same value[Start Date and End Date] by different values[Start Date].You may use sort by 'Start Date Mon' as below green part.
Regards,- rosscortbPost Patron
Thanks for your help v-cherch-msft , wasn't aware that you could join the columns that way. Thanks again.