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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
wunderch
Creator
Creator

Amount by Min Date and Country

Hi,

I have the following table:

CountryDateAmount
Germany25.10.2013100
Germany02.10.2013500
USA04.05.201350
USA10.05.201380
Greece08.03.201320
Greece10.03.201360

Now I only want the Amount from the first date by Month and Country, so that the result is:

CountryDateAmount
Germany02.10.2013500
USA04.05.201350
Greece08.03.201320

I can't do it in the script with "First" and "group by", because I need all rows of the table for other calculations.

Any ideas?

Thanks

Chris

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Straight Table

One dimension: Country

Two Expressions:

1) Min(Date)

2) FirstSortedValue(Amount,-Date)

View solution in original post

1 Reply
Clever_Anjos
Employee
Employee

Straight Table

One dimension: Country

Two Expressions:

1) Min(Date)

2) FirstSortedValue(Amount,-Date)