Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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!