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

show only values corresponding to the last date as dimension

i have a data with reference number [Nr] and date [createdat.autoCalender.date] .  In the chart, i want to show only the reference numbers which have the last date. 

 

Firstsortedvalue gives back error because of the result being more than one value. i tried 

=if([createdat.autoCalender.date] = date(max([createdat.autoCalender.date] ), Nr)

and if([createdat.autoCalender.date] = firstsortedvalue([createdat.autoCalender.date], - [createdat.autoCalender.date]), Nr)

both don't give back the wished result. I still get Nr of all the dates.

Is there another solution? thank you in advance.

Labels (4)
1 Reply
hic
Former Employee
Former Employee

Use set analysis in your measure. One of the following should do the trick:

{<Nr={"=createdat = max(total createdat)"}>}

{<Nr={"=[createdat.autoCalender.date] = max(total [createdat.autoCalender.date])"}>}