Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dafnis14
Specialist
Specialist

Comparing periods in line chart

Hi,

I need to compare sales periods for a product, for a sale period that crosses 2 subsequent years, in a line chart.

On the X axis i have the sales date in DD-MMM format.

The Year dimension is no good because it will not show the sales for 2 years in the same line.

How can i define the correct period dimension in order to compare them?

Thanks!

10 Replies
HirisH_V7
Master
Master

Hi ,

Check this, is this what you required!!,

By creating a Date Field in Script and a Calculated dimension in Chart for only last two years .

Sales Progress (1).PNG

=Aggr(Only({<Year={'$(=Max(Year))','$(=Max(Year)-1)'}>} Year),Year)

HTH,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”