Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
poluvidyasagar
Creator II
Creator II

Count of "Alerts' from IF a condition?

Hi ,

I am trying to achieve the following:

Here is my pivot table from Qlikview:

 

PartWeekERPQtyActualQtyCheck
A1010050Alert
A11200210OK
A12-280OK
B10-100OK
B11-220OK
B12400410OK
C10500550OK
C11-120OK
C12200100Alert

I am trying to plot in a bar chart number of "Alert" values by week.

ERP Qty is measure calculated as follows:

=Aggr(Sum({<Location={'L'},Type={'RC'}>}ERPQty),Part,Week)

Actual Qty is a measure calculated as follows:

=Aggr(sum(ActualQty),Part,Week)

Check is a measure calculated as follows:

=if(ERPQty>ActualQty,'Alert','OK')

Now i would like to plot these count of alerts on bar chart...

Dimensions: Week

Measure:

=Count(Aggr(If(Aggr(Sum({<Location={'L'},Type={'RC'}>}ERPQty),Part,Week) >Aggr(sum(ActualQty),Part,Week),'Alert'),'Alert'))

I am sure this measure expression wrong.. Can someone help me to correct this expression?

I have also attached the qvw file.

Thanks,
Vidya

1 Solution

Accepted Solutions
neelamsaroha157
Specialist II
Specialist II

1 Reply
neelamsaroha157
Specialist II
Specialist II

Check this out.