Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sort Order Week - Weekday

Hi i am having difficulty sorting the following field Week-Weekday.

i have tried Match(weekday,'MÅ,'TI','ON','TO','FR','LÖ','SÖ') without sucess.

does anyone have a solution to this?

Best

Brad

5 Replies
swuehl
MVP
MVP

Maybe sort by expression

=YourDateField

Not applicable
Author

Hi!

still no luck here potential problem is that sorting is on a pivot table dimension with CY and LY values. is it possible to point at the max year and then sort from monday-sunday?

/Brad

sunny_talwar

Would you be able to share a sample?

stabben23
Partner - Master
Partner - Master

Hi, You have a cyclic Group, try to sort inside this group instead.

forum.PNG

MarcoWedel

Hi,

maybe one solution could be:

QlikCommunity_Thread_200314_Pic1.JPG

table1:

LOAD *,

    Dual(Week(Datum)&' '&WeekDay(Datum),Datum) as [Vecka Veckodag],

    Week(Datum) as Vecka,

    WeekDay(Datum) as Veckodag,

    Month(Datum) as Månad,

    Year(Datum) as År;

LOAD Date(MakeDate(2015)+RecNo()-1) as Datum,

    Ceil(Rand()*100) as SomeFact

AutoGenerate 365;

hope this helps

regards

Marco