Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Last 12 months rolling sort on fiscal chart

Hi all,

I have a bar chart with Dimensions:

FiscalMonth (e.g. Apr, May, Jun, Jul, etc)

FiscalYear (e.g. 2013/2014, 2014/2015, etc)

On expression I have sum(Revenue)

Right now the dimension axis sort goes like this:

Apr, May, Jun, Jul...Mar

How can I sort the dimension axis such that it always shows the last 12 months with the current month as the last value? i.e. for this month, it would be

May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, Jan, Feb, Mar, Apr

Next month, it would be

Jun, Jul, Aug, Sep, Oct, Nov, Dec, Jan, Feb, Mar, Apr, May

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

=Max(YourDateField)

as sort by expression with a ascending sort order to show the current month as last value.

View solution in original post

3 Replies
sunny_talwar

I guess try using a sort expression with just DateField

sunny_talwar

or may be MonthStart(DateField)

swuehl
MVP
MVP

Try

=Max(YourDateField)

as sort by expression with a ascending sort order to show the current month as last value.