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

Year-Quarter Graphs

Hi all,

 

I have a graph which represents sales per month and i show it by clicking year filter.

Learnerr_0-1665727286144.png

 

 

I would like to make a graph to represent quarters of 3 years(2020-2021-2022). How can i do that ,please?

 

Thanks

Labels (4)
2 Solutions

Accepted Solutions
MayilVahanan

Hi

You can bring quarter column from the script like below and use Quarter and Year as dimension 

'Q' & ceil(month(Date)/3) as Quarter

or

Dual('Q' & ceil(month(Date)/3) &'-'& Year, QuarterName(Date)) as QuarterYear

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

MayilVahanan

Hi

Can you post the script ?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

Hi

You can bring quarter column from the script like below and use Quarter and Year as dimension 

'Q' & ceil(month(Date)/3) as Quarter

or

Dual('Q' & ceil(month(Date)/3) &'-'& Year, QuarterName(Date)) as QuarterYear

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Learnerr
Contributor III
Contributor III
Author

Hello,

 

,When i add that code into my script it gives error unfortunately.

MayilVahanan

Hi

Can you post the script ?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.