Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis with Sum Function

Hi,

I am trying to show sum of 2 fields for current selected month and the previous month, but for some reason I am not able to do so.

This is my data and I want when user selects a month It will show the sum of Sale1+Sale2 along with the previous month in one row.

I managed to get the value of previous month using a variable, but when I use the formula its showing in two rows.

This is my formula. I am using a straight table.

Please help.

1 Reply
sunny_talwar

Try this:

Above(Sum({<Month = {'$(vLast)'}>} Sale1))