Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
nehasaxena
Creator II
Creator II

Week Range Sorting in Cyclic Group

Hello All,

I want to sort data in chart according to chronological week range. For Ex - 6/Jun 25/Jul 8/Aug.

I used calculated dimension for Week Range and Week Start Date -  Date(WeekStart(TransactionDate),'MMM/DD')

Any help would be appreciated.

Regards,

Neha

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

have a look at the attached sample.

I used a mastercalendar to generate a field "WeekDiff" for Sorting!

notice: in chart --> sort --> expression = WeekDiff

hope this helps

View solution in original post

3 Replies
Frank_Hartmann
Master II
Master II

have a look at the attached sample.

I used a mastercalendar to generate a field "WeekDiff" for Sorting!

notice: in chart --> sort --> expression = WeekDiff

hope this helps

enriquem
Creator
Creator

Hi,

Try to do a calendar dimension like this:

CALENDARIO:

Load

     date

     ,week(date) as Week

Resident XXX

Order By date ASC;

And order the result by "Week" field.

Regards.

Kind Regards,
Enrique Mora.
nehasaxena
Creator II
Creator II
Author

Hey Frank,

Thanks

Best regards,

Neha