Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
FFBB1983
Contributor III
Contributor III

List only the nearest day in the table

Dear all,

 

I got raw data like this. I only want the most recent visit got listed in the LastVisit column. This means only one record will be presented for one client in the table. I tried to write "=Max(TranDate)" in the field. But this didn't work.

 

Can anyone help with this? Much appreciated!

 

IDFirstNameLastNameCityProvinceLastVisit
7049AlexDoughMonctonNB6/20/2019
7049AlexDoughMonctonNB6/6/2019
7049AlexDoughMonctonNB5/16/2019
7049AlexDoughMonctonNB5/10/2019
7049AlexDoughMonctonNB3/29/2019
7049AlexDoughMonctonNB3/14/2019
7049AlexDoughMonctonNB3/6/2019
1 Solution

Accepted Solutions
Ivan_Bozov
Luminary
Luminary

Add it as measure, not as dimension.

vizmind.eu

View solution in original post

5 Replies
Ivan_Bozov
Luminary
Luminary

Hi! Include this as a measure:

=ONLY({<LastVisit={"$(=MAX(LastVisit))"}>}ID)

 

vizmind.eu
FFBB1983
Contributor III
Contributor III
Author

Not working.... Is this because I have thousands of ID in my database?

clipboard_image_1.png

clipboard_image_2.png

 

Ivan_Bozov
Luminary
Luminary

Add it as measure, not as dimension.

vizmind.eu
FFBB1983
Contributor III
Contributor III
Author

I wrote this...

clipboard_image_1.png

But it seems only the Last call in the universal got presented, which is today. I would like to have the last call for every specific client.

clipboard_image_0.png

FFBB1983
Contributor III
Contributor III
Author

Thanks. I found I have solved this issue. Just simply put MAX(TranDate) as a measure.

 

What went wrong was I put it as dimension.....