Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart sorting

Hello,

I have a difficulty to sort a chart with a calculated dimension.

I have a calculated dimension which displays 'YEAR'&'/'&'WeekNr', and is not sorting in correct order. I've tried all the possibilities.

=year(Date)&'/'&week(Date)

Do you have any suggestions ?

See the attachment.

WeekSort.png

Thank you,

Claudiu

1 Solution

Accepted Solutions
marcus_sommer

For this you need a dual-function, like:

dual(year(Date) & '/' & week(Date), year(Date) * 100 + week(Date))

whereby it would be better to use "native" period-fields created within a master-calendar instead of using calculated dimensions: How to use - Master-Calendar and Date-Values

- Marcus

View solution in original post

4 Replies
its_anandrjs

In the sort properties

write in Sort By box and deselect all also you can select Load Order -> Original.


=year(Date)&'/'&week(Date)

Regards

Anand

marcus_sommer

For this you need a dual-function, like:

dual(year(Date) & '/' & week(Date), year(Date) * 100 + week(Date))

whereby it would be better to use "native" period-fields created within a master-calendar instead of using calculated dimensions: How to use - Master-Calendar and Date-Values

- Marcus

alexandros17
Partner - Champion III
Partner - Champion III

Try With:

YEAR & '/' &' Num(Week,'00')' & 'Nr'

Not applicable
Author

Thank you very much Marcus ! It worked.