Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
MatheusC
Specialist
Specialist

Calculation for customers who did not buy in the period ( QLIK SENSE )

Hello,

I have to bring a calculation of customers who buy on time and customers who left.

For customers who buy within the deadline I can use, as an example below:

count({<Annotate={"$(=Max(Annotate))"}>}distinct GroupTest),

My question is for the customers who left, would anyone know a way to bring these customers in?

Thank you very much in advance!

( QLIK SENSE )

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Perhaps this

Count( {$<Annotate= E({1<Annotate={"$(=Max(Annotate))"}>})>}distinct GroupTest)

View solution in original post

3 Replies
BrunPierre
Partner - Master
Partner - Master

Perhaps this

Count( {$<Annotate= E({1<Annotate={"$(=Max(Annotate))"}>})>}distinct GroupTest)

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @MatheusC 

You could try

count({<Annotate={"<$(=Max(Annotate))"}>-<Annotate={"$(=Max(Annotate))"}>}distinct GroupTest)

which would be the same as saying, all the GroupTest that in some day before Max(Annotate) bought minus the GroupTest that bought on the date.

Also

count({1-<Annotate={"$(=Max(Annotate))"}>}distinct GroupTest)

1 is the complete set of data but will ignore all posible selections you make.

hope this helps

Best,

MatheusC
Specialist
Specialist
Author

Thanks   @RafaelBarrios      @BrunPierre 

Apparently this expression returns the correct value, from customers who did not buy in the period. I just changed the field like below:

Count( {$< GroupTest = E({1<Annotate={"$(=Max(Annotate))"}>})>}distinct GroupTest)

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!