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

How I can filter the row with Max date and time? all other fields are same just Last time field is different I want to show with Max date time.

umerfa_0-1673965372235.png

 

Labels (1)
1 Solution

Accepted Solutions
QFabian
Specialist III
Specialist III

Hi @umerfa, please check if this works for you :


Data:
Load distinct
[Audit Date],
[Stock Part],
[Long Desc],
[Short Desc],
[Pallet Qty],
[Next PO],
[Audit User]
From YourSource;

left join
Load
[Audit Date],
[Stock Part],
[Long Desc],
[Short Desc],
[Pallet Qty],
[Next PO],
[Audit User],
max(Time) as Time
From YourSource
Group By
[Audit Date],
[Stock Part],
[Long Desc],
[Short Desc],
[Pallet Qty],
[Next PO],
[Audit User];

 

QFabian

View solution in original post

3 Replies
QFabian
Specialist III
Specialist III

Hi @umerfa, please check if this works for you :


Data:
Load distinct
[Audit Date],
[Stock Part],
[Long Desc],
[Short Desc],
[Pallet Qty],
[Next PO],
[Audit User]
From YourSource;

left join
Load
[Audit Date],
[Stock Part],
[Long Desc],
[Short Desc],
[Pallet Qty],
[Next PO],
[Audit User],
max(Time) as Time
From YourSource
Group By
[Audit Date],
[Stock Part],
[Long Desc],
[Short Desc],
[Pallet Qty],
[Next PO],
[Audit User];

 

QFabian
umerfa
Contributor II
Contributor II
Author

Hi QFabian, this works for me, Thank you so much

QFabian
Specialist III
Specialist III

thanks you @umerfa 

QFabian