Forum

Sorting issues when...
 
Notifications
Clear all

Sorting issues when using Work Weeks to bin the data

3 Posts
2 Users
0 Reactions
73 Views
(@brunomelki)
Posts: 46
Trusted Member
Topic starter
 

Hello.

I download a database and get the WorkWeek with power query since I want to sparlines the presentation by WW.

When pivoting the data, the table is sorted by WW as a number and not a date. How can I sorte according to date if I don't need to use the date in the table?

Many thanks, Bruno.

Attached is the data and one sentence explanation.

 
Posted : 30/10/2020 9:20 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Bruno,

Change the week number format to yyyy_mm as text i.e. January 2020 looks like this: 2020_01. The zero in front of the 1 is important for the sort order. This way it should sort in the correct order.

Mynda

 
Posted : 30/10/2020 6:32 pm
(@brunomelki)
Posts: 46
Trusted Member
Topic starter
 

From some reasons, my file didn't want to follow the definition of that new column and despite the fact I saw it was ordered the correct way and it was defined as text, the file decided to use the old version when I was pivoting the table. Only when I deleted the old table I waas not using anymore from PQ, I was able to get it correctly.

Works fine, than you.

Bruno

 
Posted : 01/11/2020 3:41 pm
Share: