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

Flag for Date

Hi All,

I have date against order number and i some order have order date and some order don't have date like pending order So i want to create flag for it.

PFA for expected output.

Thanks

1 Solution

Accepted Solutions
avinashelite

I checked your QVW , you don't have any - or null values as you mentioned above in the ForeclosureDate that's why its not populating the Not forced close ..check your data set

if(year(ForeclosureDate)='1753','NA', date(ForeclosureDate,'DD-MM-YYYY')) as ForeclosureDate,

,if(len(trim(ForeclosureDate))>0 and (ForeclosureDate)<>'NA','Forced Closed' ,'Not Forced Closed') as Flag

View solution in original post

19 Replies
sunny_talwar

May be like this

LOAD Order,

           Date,

           If(Len(Trim(Date)) = 0, 'Pending Order', 'Order Done') as Flag

FROM ....;

Anonymous
Not applicable
Author

Hi Sunny,

I dont have any null values in date so if i use your solution then it is getting only Order Done in flag.

ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like this

LOAD Order,

          Date,

          If(Left(Order, 5)=' ORD/', 'Order Done', 'Pending Order') as Flag

FROM ....;

Regards,

Andrey

Anonymous
Not applicable
Author

PFA ...

Any suggestion ...

avinashelite

on which column base you need this flag to be create ?? could elaborate bit more

Anonymous
Not applicable
Author

Based on Order number.

sunny_talwar

What are you trying to do in the attached file? Would you be able to elaborate?

Anonymous
Not applicable
Author

In my chart i don't want those order number which they have forclosure date  .

sunny_talwar

May be this?

Capture.PNG