Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I'm very new to Qlik so please bear with me 🙏
I have an expression that returns all customers who have ordered the past 6 months:
=count({<OrderDate = {">=$(=Date(AddMonths(Max(OrderDate), -6)))<=$(=Date(Max(OrderDate)))"}>} DISTINCT CustomerID)
But my goal is to return all customers who have not ordered anything the past 6 months. How can I do this?
Thanks!
Exclude these Customers using exclude like:-
count({<
CustomerID=e({<OrderDate = {">=$(=Date(AddMonths(Max(OrderDate), -6)))<=$(=Date(Max(OrderDate)))"}>})
>} DISTINCT CustomerID)
Remeber now there are two set expression here , one of exclude and one complete, so please make sure which filters affect which expressions.
Exclude these Customers using exclude like:-
count({<
CustomerID=e({<OrderDate = {">=$(=Date(AddMonths(Max(OrderDate), -6)))<=$(=Date(Max(OrderDate)))"}>})
>} DISTINCT CustomerID)
Remeber now there are two set expression here , one of exclude and one complete, so please make sure which filters affect which expressions.
Thanks for the help Gabbar!