Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get last payment

I do have a problem with getting the following in qlikview.
I need to create a table with the following information: Last amount of payment by customer.

It is not a solution to maintain the last payment in the script because the table must react on selections made by the user.

Can someone please help me?

1 Solution

Accepted Solutions
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi

try this.

Ex: FirstSortedValue(AmountFieldName,-DateFieldName)

View solution in original post

2 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi

try this.

Ex: FirstSortedValue(AmountFieldName,-DateFieldName)

Not applicable
Author

On the basis of maximum date you can find the last Amount of Payment.

there are various way to find it either at script label or expression label.

In expression label--

Take pivote--

dimension-- your primary key field

expression--

FirstSortedValue(AmountFieldName,-DateFieldName)

******************************************************

in text object--

if(date(DateFieldName,'DD-MM-YYYY')=max(DATE(DateFieldName,'DD-MM-YYYY')),AmountFieldName)