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: 
Not applicable

Last Date Value

Hello,

I'm looking for a funktion that selects the value form the last Date entered. I give you an example:

My table looks like this

Part Warehouse Date average price amount

1 10 01.01.2005 2,57 2000

1 10 02.01.2006 2,59 1000

........

1 10 27.10.2009 2,89 1000

I need the following output:

Part Warehouse Date average price amount

1 10 27.10.2009 2,89 1000

Thanks a lot for your help

6 Replies
Not applicable
Author

Hi,

see the example.

I hope you are looking for this kind of solution.

Good luck!

Rainer

Not applicable
Author

That kind of solution is exactly what I am looking for. I just would like to have that funktion in the object instead in the script. Is there any possibility?

Thanks

Ulrich

Not applicable
Author

Hi Ulrich,

see the modified example.

Add a calculated dimension in your table and it works.

But, if you are working with a large data volume the performance will be slowed down.

Rainer

Not applicable
Author

A possible alternative is to use a set analysis modifier.

Only({<Date = {"=Max(Date)"} >} Amount)

This means "get the amount column, but only having filtered the date column so it's equal to the maximum date".

Hope it helps.

Not applicable
Author

The Funktion is what I am looking for. All I have to do is to select the Value of the Field "Turnover" at the max date. I don't want to see the sum of that field.

All I need is a row with the Inventory from the 14th Sept 2005. (the table is a lot bigger but I hope with this information I will get it done by myself)

Anonymous
Not applicable
Author

thanks to Rainer Filoada. I also use this solution.