Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Logical Help

Greetings,

I want to add a column called "Traded" requirement  is such that if a customer has traded with in its invoice date then it should show value 'Traded' else 'Not Traded'.

5 Replies
vishsaggi
Champion III
Champion III

What is the field used here for CustomerTradeDate?

May be you can try like:

LOAD *,

         IF(CustomerTradeDate <= InvoiceDate, 'Traded', 'NotTraded')  AS TradeFlag

FROM yoursourcename;

Anil_Babu_Samineni

May be this?

Load Field1, Field2, customer, [invoice date], If(customer <= [incoice date], 'Traded','Not Traded') as Traded

From <Datasource>

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

there is no column such like  date

vishsaggi
Champion III
Champion III

So how you going to check if that customer is within the InvoiceDate, there should be some datefield right?

MarcoWedel

It would help you to get answers if you provided information about existing fields in your data model instead of non existing ones ...