Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.