Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Get the Year Wise Comparisons In Charts

Hi Community Members,

I want to compare the sum (sales) with previous Year  in chart, i.e when I select a 2006,it should be display chart with 2007  and 2006 years data in a chart.Thanks in advance.

Regards

Rams

2 Replies
christophebrault
Specialist
Specialist

Hi,

set month as a dimension and then 2 expressions :

sum({$<Year={$(=Max(Year))}>}Sales) // the year selected

sum({$<Year={$(=Max(Year)-1)}>}Sales)// Past Year

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
Not applicable
Author

Thanks christopher ,I got in bar charts ,but I am unable to get it in Guage charts.Can you help me please

Regard

rams