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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Sort computed x axis

Hello, i need to know how to sort an x dimension of a graph in order to have the dates ordered.

The computed dimension is: =[Month] & '/' & [Year]

that in the graph is showed like the figure attached.

Immagine.png

How can i do to get this field ordered by month and year?

Thanks

Marco

1 Solution

Accepted Solutions
crusader_
Partner - Specialist
Partner - Specialist

Hello, Marco

When you create MonthYear field use dual function, smth like below:

=dual([Month]&'/'&[Year],[Year]*100+[Month])

And sort as number Ascending.

Hope this helps.

Regards,

Andrei

View solution in original post

6 Replies
arulsettu
Master III
Master III

post your sample app

crusader_
Partner - Specialist
Partner - Specialist

Hello, Marco

When you create MonthYear field use dual function, smth like below:

=dual([Month]&'/'&[Year],[Year]*100+[Month])

And sort as number Ascending.

Hope this helps.

Regards,

Andrei

Anonymous
Not applicable

Hi Marco,

You can go to the sort tab. Uncheck all the checkboxes. Check the expression box and enter you expression into it. Please see screenshot:

pic1.png

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Switch places for Month and Year in your calculated  dimension.

marco_puccetti
Partner - Creator
Partner - Creator
Author

With dual it works.

Thanks

Marco

Not applicable

You can also write the expression on the chart or use Max(Date) if you have date field.