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: 
08748190
Contributor II
Contributor II

Last occurrence

Hello , 

Can you give me an example for the last occurence without user for the function max

for example :

This salary  work for 100 % full time and after 60% 

so i want to get of 60%, 

Thank you in advance

6 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

Can you give some data as an example? Your example makes it a bit hard to help..

Jordy

Climber

Work smarter, not harder
08748190
Contributor II
Contributor II
Author

( sum (  {$<

   [__FTE]={">= max({<__Period_id = {'$(vdate_analyse)'}>}[__FTE])"},

   [__Contract_Type]-={'IN','PS','ST','TV'}

   >}  distinct [__FTE]) )

With :

FTE : full time percentage (100.00 or 60.00,...)

 

Channa
Specialist III
Specialist III

if not max try with RANK asc or DESC where Rank=1

Channa
David551
Contributor
Contributor

Can you give some data as an example? Your example makes it a bit hard to help..

SergeyMak
Partner Ambassador
Partner Ambassador

It's hard to suggest without seeing data and data model, but FirstSortedValue() might help

Regards,
Sergey
08748190
Contributor II
Contributor II
Author

My data is presented as the following :

FTE : full time percentage (100.00 or 60.00, 50.00, 32.00 , 40.00, 60.00)

Contract Type : (CDD ,  CDI  ,  ..)

Folder id : (10005, 10006...)

Contract.PNGsum.PNGFTE.PNG