Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Print only the value with min(date)

Hello Guys,

I'm having serious trouble to write this one.

I wan't to print only the value that has the min date. Like an initial value.

I've tried this: =Sum({$<Date={"=$(=min(Date))"}>} Value).

How can i do it? =(

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

SUM({<Date = {'$(=Min(Date))'}>}Value)

View solution in original post

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

try

Sum( FirstSortedValue(Value, Date) )

Not applicable
Author

Hi Alessandro,

This return: "Error: ERror in expression: Nested aggregation not allowed"

MK_QSL
MVP
MVP

SUM({<Date = {'$(=Min(Date))'}>}Value)

ger_alegria
Partner - Creator
Partner - Creator

Hello,

First, you can save in a variable the value of the min date:

vMinDate = min(Date) //Here you can choice if you want the min date of all data or the min date of the selection.

After that you can use the variable in expresion:

sum({<Date = {'$(=vMinDate)'}>}Value).

Let me Know if this help you.

alexandros17
Partner - Champion III
Partner - Champion III

You're right, try with:

FirstSortedValue(Value, Date)

Not applicable
Author

Thank's Guys!

Almost all of your answers has worked.