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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get the latest date of existing data

Hi,

i get a different dates from tables like

01.01.2016

01.02.2016

01.03.2016


How can i get the latest date of existing data?


regards,

sam

2 Solutions

Accepted Solutions
sunny_talwar

May be like this:

Max({<Measure= {'*'}>}Date)

Measure can be any field which is available in your fact table.

View solution in original post

sunny_talwar

Its a placeholder for a field from your fact table. and Date is a placeholder for your date field

View solution in original post

7 Replies
swuehl
MVP
MVP

If your dates are interpreted as dates and read in as duals, try

=Max(DATEFIELD)

or

=Maxstring(DATEFIELD)

Get the Dates Right

Why don’t my dates work?

Anonymous
Not applicable
Author

Hi.

the latest date i have is 30.11.2016.

I try Max and Maxstring and get 31.12.2016.

But the result must be 30.11.2016.

regards,

sam

sunny_talwar

May be like this:

Max({<Measure= {'*'}>}Date)

Measure can be any field which is available in your fact table.

Anonymous
Not applicable
Author

I get an error message: "Wrong fieldname: Date"

Is Date like "Measure" a placeholder or a function?

sunny_talwar

Its a placeholder for a field from your fact table. and Date is a placeholder for your date field

Anonymous
Not applicable
Author

ah ok, now it works, thank you 🙂

swuehl
MVP
MVP

s Walter wrote:

Hi.

the latest date i have is 30.11.2016.

I try Max and Maxstring and get 31.12.2016.

But the result must be 30.11.2016.

regards,

sam

Seems like there is some context missing.

Please explain your data model and your requirement.