Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How can i compare average sales of current year and last year in a gauge chart?

Hi,

I want to calculate average sales of current year and last year. And want to compare these values and present in a gauge chart.

Need help.

Thanks

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try below expression.

Avg({<Year = {"$(=Max(Year))"}>}Sales)/Avg({<Year = {"$(=Max(Year)-1)"}>}Sales)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sudhirpkuwar
Partner - Creator II
Partner - Creator II

Its difficult to represent the CY and LY comparison in a gauge chart.

You can use some other chart like Bar chart