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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

firstsortedvalue

I am using this expression below to retrieve the last amount corresponding my selection criteria and it is working fine when i select one client

firstsortedvalue({<Year={'$(vMaxYear)'},Date={'<=$(vMaxDate)'},Month=,Day=,MonthYear=>}Amount,-Date)

My problem i don't knwow how can i have the sum of all clients ?

Can you help me Please

It is very Urgent.

Slim.

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

To iterate through all clients you can use aggr() function. Then use sum(), with set expression if needed.

For example:

=Sum(aggr(firstsortedvalue(...), Client))

View solution in original post

2 Replies
whiteline
Master II
Master II

Hi.

To iterate through all clients you can use aggr() function. Then use sum(), with set expression if needed.

For example:

=Sum(aggr(firstsortedvalue(...), Client))

Not applicable
Author

Hi,

Many Thanks , it is working very well.

Regards,

Slim.