Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
bsbernabe
Creator
Creator

How to get last transaction in 2 column

Hello There,

My concern is how can get the last transaction BIN No. what i have right now is like this:

Load [Serial No.],

Max([Internal ID]) as MAX_Internal_ID

Resident Inventory

Group By [Serial No.];


But also i need to get is the last transaction in BIN No. any other way about this?


This is the sample Data:

IDSerial No.BIN No.
380549ABCDE15665G600KW03
597630ABCDE15665G600KW03
597630ABCDE15665G600TCRNG

This is what data that i need to display.

IDSerial No.BIN No.
597630ABCDE15665G600TCRNG

Best Regards,

Bing

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

May be try

Load [Serial No.],

MaxString([BIN No.]) as MAX_BIN_No

Resident Inventory

Group By [Serial No.];

View solution in original post

5 Replies
bramkn
Partner - Specialist
Partner - Specialist

Use peek with -1 as the record.

Might be able to use a where statement on the recno and use -1 there. Not sure.

sasiparupudi1
Master III
Master III

May be try

Load [Serial No.],

MaxString([BIN No.]) as MAX_BIN_No

Resident Inventory

Group By [Serial No.];

tresesco
MVP
MVP

I guess you need: LastValue()

bramkn
Partner - Specialist
Partner - Specialist

Didn't see this function yet. Nice one thanks.

bsbernabe
Creator
Creator
Author

Hello Bram,

You didn't  not see cause  that script is incomplete i add that script in my script and it is work.


Note:

Thank you so much also for your support.


Best Regards,

Bing