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: 
ranibosch
Creator
Creator

Latest version filters

Good day,

please see my excel spreadsheet attached with fields and the required results.

I'm unsure on how to write the script to get the latest version of a BOM header.

1 Reply
niclaz79
Partner - Creator III
Partner - Creator III

Hi,

Temp:

LOAD

     [Production BOM Version.Description],

     [Production BOM Version.Version Code]

FROM

[FileName and Sheetname etc]

where

     [Production BOM Version.Status] = 1;

Temp2:

LOAD

     Max([Production BOM Version.Version Code]) as MaxVersion

Resident Temp;

let vMaxVersion = Peek('MaxVersion',0,'Temp2');

drop table Temp2;

ProductionBOM:

LOAD

          [Production BOM Version.Description]

Resident Temp

where [Production BOM Version.Version Code] = $(vMaxVersion);

drop table Temp;