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: 
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
MVP
MVP

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
MVP
MVP

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
MVP
MVP

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
MVP
MVP

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.