Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
eaglemite35
Contributor
Contributor

Current year versus last year

Hi there,

I am mainly a Tableau guy, but I have an issue with Qlikview where I have to offset the current year versus last year. I'm sure it's an easy thing, but I can't find out what the solution might be. Can anyone help?

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

You can use set analysis for this.

If you are trying to sum a field:

Current year is : =Sum({$<Year={$(=max(Year))} Fieldname)

Previous year is: =Sum({$<Year={$(=max(Year)-1)} Fieldname)

View solution in original post

1 Reply
m_woolf
Master II
Master II

You can use set analysis for this.

If you are trying to sum a field:

Current year is : =Sum({$<Year={$(=max(Year))} Fieldname)

Previous year is: =Sum({$<Year={$(=max(Year)-1)} Fieldname)