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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dimension Sort Order


Hi

I have a line chart showing sales per week. The dimension is Week which relates to the calendar week and I want it to run from week 19 to week 18 as this is the financial reporting period for the company.  There is a field called WeekID where it shows 1 for week 19, 2 for week 20 and so on to 52 for week 18.  On the chart properties I have sorted the dimension Week by Expression 'WeekID' which works until I use set analysis on the sales data. The expression I have used is sum({<Week=,Month=> Sales} as I want the graph to show the full year despite the week or month selected. As soon as I put this expression in, the weeks on the graph seemed to sort in a random order.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try a sort order expression like

=only({<Week=,Month=> } WeekID)

View solution in original post

1 Reply
swuehl
MVP
MVP

Try a sort order expression like

=only({<Week=,Month=> } WeekID)