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: 
Anonymous
Not applicable

Return last value

Hi

I have the following spreadhseet. I simply want to return the row with the last 'Sales' value. So in this case it should return

300, EAST

What would be the best way ?

Thanks

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

In the script or the front end?

Anonymous
Not applicable
Author

in the script

sunny_talwar
MVP
MVP

Try this

Table:

LOAD RowNo() as RowNum,

SALES,

    REGION

FROM

[..\..\Downloads\TESTV1.xlsx]

(ooxml, embedded labels, table is Sheet1)

Where Len(Trim(SALES)) > 0;


Right Join (Table)

LOAD Max(RowNum) as RowNum

Resident Table;