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: 
Not applicable

How to write expression to get latest column values


Hi Friends,

I have a qlikview file which contains pivot and straight chart items. In one straight Chart I need to get Latest Comment which is getting the latest comments from access database table. But I am not getting the latest comment. suppose if the user added the latest comment today I need to get that in the column value.

I used the below expression to get the latest comment

=MaxString(Comment)

but it's not working as I am getting old comments which are added a few days back.

Could anyone help me in this how to use expression to get the latest comment.

Thanks.

19 Replies
Not applicable
Author

Hi Thanks very much it's working.

Amelia

Not applicable
Author

Hi,

If I am using FirstSortedValue(Comment,-ContactDate) am getting comments but forename,surname,jointname,staffname are showing blank values. could you please help me in this as it is urgent now please.

Not applicable
Author

Please help as I strucked here and couldn't able to get the names for several clients

Clever_Anjos
Employee
Employee

Hello,

forename,surname,jointname,staffname fields are in same table?


Do you have skype? If you have, it would be easier to help, please add me: cleveranjos

Not applicable
Author

Hi,

Thanks for this.

forename,surname,jointname are from one table , staffname is from one table and the comment is from another table.

Could you help

As I am in office and  don't have server access to login from my home so that's the reason I couldn't able to login skype from office

Thanks.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

That sounds like there are several forenames/surnames/jointnames/staffnames with the same contactdate. In that case you can't use the firstsortedvalue. Perhaps you can concatenate them first:

firstsortedvalue( aggr(concat(forename, ', '),ConcactDate), -ContactDate)


talk is cheap, supply exceeds demand
Clever_Anjos
Employee
Employee

Do you have any keys between those tables?

Not applicable
Author

Thanks and this is also not showing the names. please help and moreover when I make chages to Live file every time it is decreasing the Live qlikview file size. Is it recommended to reload and save manually apart from reload engine? Could you please let me know.

Not applicable
Author

Yes I have keys in names table and to join all these columns I used Link Table.

Thanks.

Clever_Anjos
Employee
Employee

Is it possible to post a sample of your app?