Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
JustTryingToLearn
Contributor III
Contributor III

Rolling Calendar Month Expression

Hi,

I would like to make a rolling bar chart that has 12 months as the bottom axis. I plan to use 3 letter month names. I would like to do this using a chart expression of some kind. Is there any way to set up the sort so that this is possible?

 

Thank you!

Labels (4)
3 Replies
Anil_Babu_Samineni

Yes, You can created MonthNum from Month field and use MonthNul as sort expression with ascending. So that, It will fix the result

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
manoranjan_d
Specialist
Specialist

 I plan to use 3 letter month names. I would like to do this using a chart expression of some kind.

>>you can use monthname function to get the three letter

monthname(your month field)

Is there any way to set up the sort so that this is possible?

>>In sorting you can try min({1}monthname(your month field))

manoranjan_d
Specialist
Specialist

Tried with sample data below is the script 

LOAD Date,
Sales,
date(MonthName(Date),'MMM') as monthname
FROM
[C:\Users\NM\Desktop\Scenarios\17 feb21\New Microsoft Excel Worksheet.xlsx]
(ooxml, embedded labels, table is Sheet2);

dim monthname

exp RangeSum(Above(Sales,0,12))

sort min({1}monthname)

manoranjan_d_1-1613509831052.png