Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
aitmessaoudali
Creator
Creator

replace a field bast on the min date

Hello community,

i want to to create dimension d in the screenshot, keeping only the id of the min(date) but also keeping all the lines and replacing the other ids by the id of the min date.

thanks in advance

1 Solution

Accepted Solutions
PrashantSangle

Final:
Load A,
date,
c
From Table;
Left Join
Load A,
firstsortedvalue(c,date) as d
Resident Final
group by A;
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
PrashantSangle

where you want?? in front end or in script??
In front end you can try with firstsortedValue(value,-date)

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
aitmessaoudali
Creator
Creator
Author

hello, i would prefer to implement it in the script. thanks

PrashantSangle

Final:
Load A,
date,
c
From Table;
Left Join
Load A,
firstsortedvalue(c,date) as d
Resident Final
group by A;
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂