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

How to get latest data

Hi All,

I want to get the ENAME,SAL,COMM,DEPTNO,GETDATE for each depatarment where latest date of GETDATE.

How to achieve this?

For example

EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO LASTDATE GETDATE

84 ENAME84 CLERK 5 20101217 800 500 30 20150316 2015/10/28

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Find below example from Help Menu

Load Customer,

firstsortedvalue(PurchasedArticle, OrderDate) as
FirstProductBought from abc.csv

group by Customer;

Note:

FirstSortedValue() is aggregated function so you have to use Group by clause and add all the which you dont required to aggregate

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
Not applicable

Try function FirstSortedValue()

qlikviewwizard
Master II
Master II
Author

How to achieve the same? Could you provide in a sample file?

PrashantSangle

Hi,

Find below example from Help Menu

Load Customer,

firstsortedvalue(PurchasedArticle, OrderDate) as
FirstProductBought from abc.csv

group by Customer;

Note:

FirstSortedValue() is aggregated function so you have to use Group by clause and add all the which you dont required to aggregate

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂