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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
pratham39
Partner - Contributor III
Partner - Contributor III

Show Max Date Row in Front End table

Hi Everyone,

I have below table on frontend 

DOUBT(1).png

I want below in output - 

DOUBTT.png

where only those ID will be shown where Date is maximum (Department wise Max Date)

Please help me to write Set analysis

 

Thanks

Labels (3)
3 Solutions

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

Try like below

Dim: ID, Dept

Exp: If(Date = max(Total<Dept> Date), Date)

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

MayilVahanan
MVP
MVP

You can remove null values from Add-ons tab.

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

MayilVahanan
MVP
MVP

You can try with Dimension instead of measures

=Aggr(If(Date = max(Total<Dept> Date), Date), Dept, ID)

and uncheck include null value checkbox

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

6 Replies
MayilVahanan
MVP
MVP

Hi

Try like below

Dim: ID, Dept

Exp: If(Date = max(Total<Dept> Date), Date)

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

Hi sir,

First of all thanks for reply

I tried this way below output i m getting where null values are also there 

DOUBT2(1).png

I dont want null values in table 

 

MayilVahanan
MVP
MVP

You can remove null values from Add-ons tab.

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

Yes It worked .... i m accepting it as a solution... but will you please look that without using Addons can we do this?

 

Thanks

MayilVahanan
MVP
MVP

You can try with Dimension instead of measures

=Aggr(If(Date = max(Total<Dept> Date), Date), Dept, ID)

and uncheck include null value checkbox

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

Hi thanks sir 

this expression as dimension also worked

 

Thanks lot