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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
HH3571
Contributor II
Contributor II

Script expression question

Hello, 

i have a column (VOLUMES). I want to select the latest data point in it, in a KPI chart. As a reference i have a column (ROW_ID), so the MAX(ROW_ID) should be equal to the latest (VOLUME) data point row wise.

If it were in SQL i would write something like:

SELECT VOLUMES FROM table

WHERE ROW_ID = MAX(ROW_ID)

 

How do i do this in the script editor?

 

Best regards

H

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

If you want to do in front end [KPI Object], then try like below

Sum({<ROW_ID = {$(=MAX(ROW_ID))}>} VOLUMES)

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

3 Replies
MayilVahanan
MVP
MVP

Hi

If you want to do in front end [KPI Object], then try like below

Sum({<ROW_ID = {$(=MAX(ROW_ID))}>} VOLUMES)

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

Thank you sir, worked like a charm!

 

Best regards

H

MayilVahanan
MVP
MVP

Hi

Happy to hear that, Please close the thread by marking correct answer & give likes if you like it.

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