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

Max function on date in dimension in straight table

Hi

I have a date field in dimension in straight table and I wan to use max date but max function no working in if condition on date.

It's like I want to show products for max date in straight table.

What to do?

Thanks

Saurabh

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Dimension: Product

Expression: Date(Max(Date))

OR

Displays the list of products which exists on max date.

Dimension: Product

Expression: Only({<Date={'$(=Max(Date))'}>} Date)

Hope this helps you.  If this is not you are expecting come up with some sample data and expected output.

Regards,

Jagan.

View solution in original post

3 Replies
ashfaq_haseeb
Champion III
Champion III

HI,

Look at firstsortedvalue() Function

Regards

ASHFAQ

Anonymous
Not applicable
Author

use this   =FirstSortedValue(Products, -[DateDim])

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Dimension: Product

Expression: Date(Max(Date))

OR

Displays the list of products which exists on max date.

Dimension: Product

Expression: Only({<Date={'$(=Max(Date))'}>} Date)

Hope this helps you.  If this is not you are expecting come up with some sample data and expected output.

Regards,

Jagan.