Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

script;How can I get only the last transaction

Dear QV-Users,

I have 2 tabels. One with the transactions in a period and the ohter table is a MASTER FILE with the StockNo. I would like to write a script that will show me only the last transaction date for each StockNo. My tabels are:

Transactions:

  • StockNo
  • ReceivingDate  (format is YYYYMMDD; for today it will be "20110919")
  • Account
  • AccountCr

MasterFileStock:

  • StockNo
  • UnitCost
  • QuantityOnHand

Could someone tell me what the best approach will be for this case?

Regards,

Aissam

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

u can calculate the max reciving date from the first table then filter the second tabel with a left join with the first..

I hope to be clear.

C u,

Stefano.

View solution in original post

2 Replies
Not applicable
Author

Hi,

u can calculate the max reciving date from the first table then filter the second tabel with a left join with the first..

I hope to be clear.

C u,

Stefano.

Not applicable
Author

Try if u like this.

C u,

Stefano.