Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
10639138
Contributor
Contributor

Discontinue selling the products that has not been selling enough for the past 2 years

 
1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can simply create a days difference between OrderDate and Today, and use simple condition to identify the products which should be stopped.

For example.

Data:

Load *,Today() - OrderDate as Diff from XYZ;

Final:

Load *,If(Diff>365,'Discontinue','Continue') as Flag Resident Data;

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!