Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Last row as total

Hi,

how can i display the last row in a straight table as total?

Example:

Date50

11-01-2015

4
11-02-201510
11-03-201590
11-04-20152
11-05-201550

Greetings

Phil

11 Replies
Mark_Little
Luminary
Luminary

Hi,

Within the chart properties > Presentation you have the totals section.

Capture.JPG

Mark

Anonymous
Not applicable
Author

Hi Mark,

thx for your reply. But thats not what i want.

The Row for Totals should be on the first Row. But the value that is displayed there, should be the value of the last row in the table. Like in my example.

miguelbraga
Partner - Specialist III
Partner - Specialist III

Find this attached file:

Anonymous
Not applicable
Author

Hi Braga,

2015-11-11 11_35_01-QlikView x64 - [C__Users_wn00055411_Downloads_Community.qvw_].png

It shows 156 as total in your Example. But instead it should show 50, because thats the "newest" value in respect of date....

miguelbraga
Partner - Specialist III
Partner - Specialist III

This?

Sem Título.png

miguelbraga
Partner - Specialist III
Partner - Specialist III

See my answer above . It is the solution for your problem in a simple and clean way

sunny_talwar

May be try this expression (using Braga's complied QVW file)

=FirstSortedValue(Aggr(Sum("50"), Date), -Date)

Anonymous
Not applicable
Author

Sorry, this isnt working for me because i cant calculate these fields in script.

There is an expression for this column. If you select 11-01-2015 to 11-13-2015 then it should show the value of 11-13-2015 als total. If you select 05-01-2015 to 05-24-2015 then it should show the value of 05-24-2015 as total.

sunny_talwar

Have you looked at the FirstSortedValue solution provided below?