Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ArjunPrasad
Contributor III
Contributor III

Max date in table expression

Hi All,

i am creating a table with below dimensions and expression

Name, Title, worked_date etc...and expression : Count({<WORKED_DATE={">=$(=Addmonths(Max(Today()),-13))<=$(=Max(Today()))"}>} WORKED_DATE)

i am getting values like below example

Name| title| worked_Date

Vijay| ACCT| 01/20/2021

Vijay| ACCT| 02/21/2021

Vijay| ACCT| 04/13/2021

from above i need to have one row per each person which max date row Vijay| ACCT| 04/13/2021

how can i get in chart expression

can you plz suggest..

thanks in advance

-Arjun

1 Solution

Accepted Solutions
ArjunPrasad
Contributor III
Contributor III
Author

Thank you for Reply ,

in my case as per data below expression worked as expected

=Max({<WORKED_DATE={">=$(=Addmonths(Max(Today()),-13))<=$(=Addmonths(Max(Today()),-1))"}>} WORKED_DATE)

and removed WORKED_DATE -Dim column from table and its worked.

View solution in original post

4 Replies
Seyko
Partner - Creator
Partner - Creator

Hello,

Use AGGR function for example : AGGR(MAX(worked_date), Name)

Regards

Excuse my english, i'm french!
JuanGerardo
Partner - Specialist
Partner - Specialist

Hi @ArjunPrasad , in a chart expression you can use the TOTAL modifier:

Max(TOTAL <Name> worked_Date)

JG

Anil_Babu_Samineni

I agree with @Seyko , But should be used like this?

Max(Aggr(Count({<WORKED_DATE={">=$(=Addmonths(Max(Today()),-13))<=$(=Max(Today()))"}>} WORKED_DATE), Name, title))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ArjunPrasad
Contributor III
Contributor III
Author

Thank you for Reply ,

in my case as per data below expression worked as expected

=Max({<WORKED_DATE={">=$(=Addmonths(Max(Today()),-13))<=$(=Addmonths(Max(Today()),-1))"}>} WORKED_DATE)

and removed WORKED_DATE -Dim column from table and its worked.