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

How to get sum of data between two year .. Write the set analysis and ordinary expression

How to get sum of data between two year .. Write the set analysis and ordinary expression

1 Solution

Accepted Solutions
Not applicable
Author

You could use constants:

Sum( {<Year={"=2014 =2015"}>} Sales )

Or values based on selections:

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

have a nice day

View solution in original post

3 Replies
Not applicable
Author

You could use constants:

Sum( {<Year={"=2014 =2015"}>} Sales )

Or values based on selections:

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

have a nice day

buzzy996
Master II
Master II

u can do both,I suggest set analysis.

Not applicable
Author

Hi,

Sum( {<Year={"=2014 =previous(2014)"}>} Sales )



i think this will work...y cant you try this