Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
tka_ovako
Contributor II
Contributor II

How to get compare two day and choose the last?

Hello.

I need to compare two days and filter the latest date.

   

OrderNro   Day1               Day2
10955516.10.201716.10.2017
10955516.10.20179.10.2017
10955516.10.20172.10.2017
10955516.10.201725.9.2017
10955516.10.201718.9.2017
10955516.10.201711.9.2017

I need to filter those days thereby that if Day1 is equal to Day 2 only Day 1 value will be shown. Is there Aby load statement to do that on any expression?

BR.

Timo

1 Reply
PrashantSangle

use if statement in load statement

Like

Load *, if(date1=date2,date1,date2) as new_date

from table;

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 🙂