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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cclayford_ric
Partner - Contributor
Partner - Contributor

Bring back latest version

Hi all.

How do i bring back only the latest version (version 3 in this case) for leadbyte_id 400117. I assume i would need to use a combination of the parent_id and version somehow?

Screenshot 2026-04-14 150727.png

Labels (2)
1 Reply
gp_oconnor
Partner - Contributor III
Partner - Contributor III

gp_oconnor_0-1776698586291.png

If this is the result you're after, then the expression below works:

=if(not IsNull(Only([parent_id])),
if(Only([version]) = Max(total <[parent_id]> version),
Only([parent_id]),
0
),
if(Count({<[leadbyte_id]=P([parent_id])>} [leadbyte_id]) > 0,
0,
Only([leadbyte_id])
)
)