Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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

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

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

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.