Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
FARQLIK
Contributor II
Contributor II

Get value of an item by lastDate

Hello Community ,

I have an item I want to get the price By Dataaread(VMX/VTU) and for each Dataaread the last datecreation(MAX) in the load Script .

FarHmid_0-1599483948318.png

Thank you for your Help 

Best Regards 

1 Reply
Kushal_Chawda

@FARQLIK  try below

 

Data:
LOAD ItemNumber,
Dataaread
Date
...
....
FROM Table;

left join(Data)
load ItemNumber,
Dataaread,
max(Date) as Date
1 as Latest_Date_Flag
resident Data
group by ItemNumber,Dataaread;

 

Then on front you can write the expression for price as below

=Sum({<Latest_Date_Flag={1}>}Price)