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: 
kevinstanfield
Partner - Creator
Partner - Creator

Max Date in a Table Dimension

Hi,

I have a table that I only wish to display the most recent date value in the dimension.

I've tried various approaches but each time I get an Invalid dimension message

=if(Max(date([Aged Debt Date])),[Aged Debt Date],)

 =Max([Aged Debt Date])

I have also have the date as serial number and have tried Set Analysis  where serial number =  max (serial number) but I'm not getting anywhere.

I'm assuming I'm missing something glaringly obvious?

Thanks in advance

Kevin

2 Solutions

Accepted Solutions
MayilVahanan

Hi @kevinstanfield 

Try like below

=Aggr(If([Aged Debt Date]= Max(Total [Aged Debt Date]), [Aged Debt Date]),[Aged Debt Date])

And check , suppress when value is null.

Hope it helps.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

kevinstanfield
Partner - Creator
Partner - Creator
Author

That worked Mayil - thank you for your help

View solution in original post

2 Replies
MayilVahanan

Hi @kevinstanfield 

Try like below

=Aggr(If([Aged Debt Date]= Max(Total [Aged Debt Date]), [Aged Debt Date]),[Aged Debt Date])

And check , suppress when value is null.

Hope it helps.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
kevinstanfield
Partner - Creator
Partner - Creator
Author

That worked Mayil - thank you for your help