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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart - sorting by Financial Year

Hi,

I have a requirement whereby I need to sort a Line Chart by Months - with the first month being April (April to Mar)

Is there a way I can do this?

Many Thanks

Labels (1)
6 Replies
sujeetsingh
Master III
Master III

If it is months then short it like TEXT

sujeetsingh
Master III
Master III

And if you are having a big data then just write up an expression .

Not applicable
Author

Could you provide me with an example please?

Will I use the TEXT function in the Expression option in the Sort tab?

Many thanks for your help

sujeetsingh
Master III
Master III

Its ok i am to just exploring......

Not applicable
Author

hi,
Type1:use in sort expression
match(Month, 'April','may','jun','jul','Aug','Sep','Oct','Nov','Decr','Jan','Feb','Mar') 
or
Type2:
 
If
(Num(Month([M Date]))>=4 AND Num(Month([M Date]))<=12,(Num(Month([M Date]))-3),(Num(Month([M Date]))+9)) AS MonthNumber
after using this statement in script
use sort by expression:  = month number.
Hope it will Help
sujeetsingh
Master III
Master III

Brian.

In script editor there is order of month declaration as

SET MonthName=Jan,Feb........

Change it accordingly......as you need

Then sort it accordingly.