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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

last value in sub sum

Hi all,

i have a table with the stock values per month e.g.

monthstock value
1100
2120
3150
4160
5170
6100
790
8120
9130
10140
11120
1290
total1490

The problem is that the total amount will aggregate all the stock values of the year.

Is it possible to show only the last value in the total amount (90)?

Thanks in Advance

Best regards

Daniel

12 Replies
Nicole-Smith

This is about as close as I'm able to get it.  QV won't allow me to put partial sums on any of the other dimensions (I think because of the aggr() that I'm using).  Hopefully this is a step in the right direction!

Nicole-Smith

Your other option would be to calculate these totals in the load script.

kiranmanoharrode
Creator III
Creator III

Dear Daniel

          Simply Create a variable vMaxMonth = Max(Month) in variable Overview

then use below expression in text box

=Max({<Month={"$(vMaxMonth)"}>}Amount)

Regards,

Kiran Rode

+91 8976977897