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: 
harika181
Contributor III
Contributor III

Line chart dimension

Hello,

I need something like this on my X-axis in line chart 

Jan Feb Mar(Q1) Apr May Jun(Q2) Jul Aug Sep(Q3) Oct Nov Dec(Q4)

Can anyone let me know how can it be done

 

5 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @harika181 ,

abhijitnalekar_0-1633090135870.png

 

Is the attached format fine for you?

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Digvijay_Singh

What if you create a new field in the script with expression something like as below and use that field in the chart - 

pick(Match(Month(Month),'Jan','Feb', 'Mar'.......),

'Jan','Feb','Mar(Q1)..........)

harika181
Contributor III
Contributor III
Author

I just need for months that are end months of each quarter: e.g. Mar-21 (Q1), Jun-21 (Q2), Sep-21 (Q3), Dec-21 (Q4) 

Its like

Jan

Feb 

Mar(Q1)

Apr

May

Jun(Q2)

Jul

Aug

Sep(Q3)

Oct 

Nov 

Dec(Q4)

harika181
Contributor III
Contributor III
Author

In line graph we have different years it should reflect with years Too

Jan-21

Feb-21

Mar-21(Q1) something like this

abhijitnalekar
Specialist II
Specialist II

Hi @harika181 ,

Please check the below line chart.

 

abhijitnalekar_0-1633344338251.png

=dual(
if(month(QuarterEnd(Date))=month(Date),month(Date)&'-'&date(Year(Date),'YY')&'(Q1)',month(Date)&'-'& date(Year(Date),'YY')),month(Date))

 

Note : I have use the Dual function to sorting the month.

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!