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: 
MS90
Creator
Creator

Need to find New record for the specific date or is it a existing record from yesterday

 I want to Create  a new field which identifies if a record  is a  New record for the specific date or is it a existing record from yesterday 

IMG_20240808_170507795.jpg

 

 

Labels (3)
2 Replies
QFabian
MVP
MVP

@MS90 , here you have one script option  :

QFabian_0-1723139050661.png

 

Data:
Load * Inline [
Order No, ID NO, Start Date
1, AZ, 8/8/2024
2, AY, 1/8/2024
3, ZC, 02/8/2024
4, VB, 5/8/2024
5, RE, 7/8/2024
6, FI, 10/8/2024
];
 
New_Field:
Load
[Order No], 
 
    if([Start Date] = today(), 
'Todays Record',
if([Start Date] < today(),         
    'Past Record',
        'Future Record')) as New_Field
Resident Data;
 
 
exit script; /*
Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
MS90
Creator
Creator
Author

Thank you,

But I can't do this on date field I need to do this on Idno