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: 
Not applicable

Evaluate the same expression for 6 previous weeks

Hello !

I am trying to do something but I have no idea for the moment.

I have a very simple expression which returns a rate :

ex : sum(Customer_Rate)

I have a goal for the rate. So I compare it each week.

if(sum(Customer_Rate)<$(goal),'Good','Alert')

When I use it in a crosstable I have the following result :

Customer

Week 48

(current)

Week 47Week 46Week 43Week 42Week 41
Customer AGoodGoodAlertAlertAlertAlert
Customer BAlertAlertGoodAlertAlertAlert
Customer CAlertAlertAlertAlertAlertAlert

I am trying to evaluate the number of consecutive Alert if the current week is in alert (from 0 alerts to 6+ alerts).

In my example :

Customer A : 0

Customer B : 2

Customer C : 6+

It must stay dynamic, so if I select week 46 :

Customer A : 6+

Customer B : 0

Customer C : 6+

As someone an idea ?

Is it clear ?


Thanks for your help !


BR,


Benoit

0 Replies