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

Evaluating user selected dates, and particularly "2010/12" format

Hi,

Am trying to evaluate current user date selection.

If multiple years have been selected, I am able to evaluate which is the latest date using the "max" function

Am trying to do the same using months, which appear in the current database as "2010/12" or "2010/01". Is it possible to retain these values, but still apply the "max" function?

Please advise,

Kind regards,

Rich

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Rich,

Dates are numeric values for QlikView, so something like

=Month(Date#('2010/12', 'YYYY/MM'))


will return the month. Now you have the months you can get the maximum value.

Anyway, I'd suggest to create a master calendar so you can have as many dimensions as you want (year, month, week, quarter, etc.)

Hope that helps

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello Rich,

Dates are numeric values for QlikView, so something like

=Month(Date#('2010/12', 'YYYY/MM'))


will return the month. Now you have the months you can get the maximum value.

Anyway, I'd suggest to create a master calendar so you can have as many dimensions as you want (year, month, week, quarter, etc.)

Hope that helps

Not applicable
Author

Hi,

Right solutuion is the response from Miguel Angel Baeyens,

because here you are crunching with real date.

You cat try this: =MaxString(CalYearMonth)

Ciao