Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

several version of order, load last one

Hi guys,

I have several version of some orders,

like:

Version 1: inquiry

version 2: passing

version 3: delivery

... ->versionnr

so, my  intention is to get the last version.

there is a key: ArticleNr, and others like description, amount, ...

so, how can I tell in script, that Qlikview only import the lastes version of each Articlenr?

like:

Load ArticleNr where MaxString(versionr),

     description, amount ...

I hope you can understand this

Tags (4)
1 Reply

Re: several version of order, load last one

Data:

LOAD ArcticleNr, max(versionnr) as versionnr

FROM ....source...

GROUP BY ArticleNr;

left join(Data)

LOAD ArcticleNr, versionnr, ...other fields...

FROM ...source...;


talk is cheap, supply exceeds demand
Community Browser