Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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 ...