Skip to main content
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

3 Replies
sunny_talwar

In the script or the front end?

Anonymous
Not applicable
Author

in the script

sunny_talwar

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;