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: 
pratham39
Contributor III
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

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

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

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

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
Contributor III
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

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
Contributor III
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

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
Contributor III
Contributor III
Author

Hi thanks sir 

this expression as dimension also worked

 

Thanks lot