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

Get max value

Hello, i think my issue is not so difficult to solve but i can't tackle it.

Indeed, i have a simple array with 2 rows:  WEEK and VALUE

I want to get the value of the highest WEEK:

for exemple :  WEEK  |  VALUE

                    23            1

                    24           4

                    25          2

I have a textbox and i would like to return: 2.

How can i do that?

Thank you in advance

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

=Sum({<Week = {$(=Max(Week))}>}Value)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

Hi

Try like this

=Sum({<Week = {$(=Max(Week))}>}Value)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thank you! You are perfect

Not applicable
Author

I know your got this answered - but you could also do like this:

I make a ApplyMap (Lookup) where i find the matching value from the latest week  by peeking into the column.

Not applicable
Author

Dear friend, i have now another problem,

          ID |  WEEK  |  VALUE

          1       23            1

          1      24           4

          1      25          2

           2  23...

           2  25..

          2.....

I would like to Sum value between max week for each ID. Is it possible ?

I did

=Sum(TOTAL aggr({<week= {$(=Max(week))}>}value,id))

but doesn't work.

Thank you