Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sum until today

First sorry for bad english.

Now problem:

I have two excel spreadsheet with accounting entry. One is for this year from beginning until last working day, and one is all entry in past year. I am working report which will compare performance of this year and last year. I need to sum all amounts from beginning of year to current day. The current day is day when I opened QlikView. I need one expression for current year and one for last year.

Thank you

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi,

look at the attached application

sum({<Year={$(vMaxYear)},Period={'<=$(vMaxDate)'},Month=>}Amount)

Replace vMaxDate by vToday

Regards

ASHFAQ

View solution in original post

2 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

look at the attached application

sum({<Year={$(vMaxYear)},Period={'<=$(vMaxDate)'},Month=>}Amount)

Replace vMaxDate by vToday

Regards

ASHFAQ

senpradip007
Specialist III
Specialist III

Ashfaq is right. If you are using Quarter in GUI then use the following expression:

sum({<Quarter=,Month=Year={$(vMaxYear)},Period={'<=$(vMaxDate)'}>}Amount)