Forum

Custom Date Groupin...
 
Notifications
Clear all

Custom Date Grouping

2 Posts
2 Users
0 Reactions
2,111 Views
(@tykru)
Posts: 34
Eminent Member
Topic starter
 

Does anyone know if it's possible to group dates into 7 day buckets from Monday through Sunday in PQ? I've used pivot table grouping to achieve this but once you group the fields then you can't use custom formatting, i.e. list only the month and day ranges without the year (1/6-1/12, 1/13-1/19, etc.); this is especially useful when doing charts in order to limit the axis label length.

 

Thanks,

Tyler


 
Posted : 03/01/2020 5:09 pm
(@catalinb)
Posts: 1938
Member Admin
 

Hi Tyler,

Try adding a Week of Year column, each day in a specific week will have the same week number. You can also choose the first day of the week.

https://docs.microsoft.com/en-us/powerquery-m/date-weekofyear


 
Posted : 04/01/2020 2:02 am
Share:
0