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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
wunderch
Creator II
Creator II

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

Labels (1)
1 Solution

Accepted Solutions
Clever_Anjos
Support
Support

Straight Table

One dimension: Country

Two Expressions:

1) Min(Date)

2) FirstSortedValue(Amount,-Date)

View solution in original post

1 Reply
Clever_Anjos
Support
Support

Straight Table

One dimension: Country

Two Expressions:

1) Min(Date)

2) FirstSortedValue(Amount,-Date)