Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.