Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
kstroupe
Creator
Creator

Average data and minuets in Chart

Hello,

I am trying to determine if cell phone usage is LOW for a time frame.  I have a data load which has date, asset_id, data, minuets

In a straight table I was able to accomplished this with the following expression (The date time frame was chosen from a List Box):

=If(Avg(DataMB) <50 and Avg(Minutes) < 60 and status = 'ACTIVE' and Asset_Type = 'SMARTPHONE', 'LOW',If(Avg(DataMB) <50 and status = 'ACTIVE' and Asset_Type = 'IPAD', 'LOW',
If(Avg(Minutes) < 60 and status = 'ACTIVE' and Asset_Type = 'FLIP PHONE', 'LOW','OK')))

   

Asset_IDAsset_TypeBothDataMin
12747SMARTPHONEOK45320
5180SMARTPHONEOK2802.333333863.3333333
8723SMARTPHONELOW00
2348SMARTPHONEOK5105906.3333333
24892IPADLOW00
0547IPADLOW00
4292SMARTPHONELOW4340
0476FLIP PHONELOW00
281FLIP PHONELOW07.666666667
502FLIP PHONEOK01292
518FLIP PHONEOK0247

I would like to create a chart which counts the  "LOW" by Asset_Type

Any suggestions? 

Thanks In Advance

Kim

1 Solution

Accepted Solutions
Digvijay_Singh

Something like this -

Count(if(Aggr(

  If(

  Avg(Data) <50 and Avg(Min) < 60 and Status = 'Active' and Asset_Type = 'SMARTPHONE', 'LOW',

  If(Avg(Data) <50 and Status = 'Active' and Asset_Type = 'IPAD', 'LOW',

  If(Avg(Min) < 60 and Status = 'Active' and Asset_Type = 'FLIP PHONE', 'LOW',

  'OK'

  )

  )

  ),Asset_ID,Asset_Type)='LOW',Asset_ID))

View solution in original post

4 Replies
kstroupe
Creator
Creator
Author

In this instance - The time frame was three months to Avg the data which was selected by a list box

Digvijay_Singh

Something like this -

Count(if(Aggr(

  If(

  Avg(Data) <50 and Avg(Min) < 60 and Status = 'Active' and Asset_Type = 'SMARTPHONE', 'LOW',

  If(Avg(Data) <50 and Status = 'Active' and Asset_Type = 'IPAD', 'LOW',

  If(Avg(Min) < 60 and Status = 'Active' and Asset_Type = 'FLIP PHONE', 'LOW',

  'OK'

  )

  )

  ),Asset_ID,Asset_Type)='LOW',Asset_ID))

kstroupe
Creator
Creator
Author

Thank you so much for your quick response that is exactly what I needed. 

Digvijay_Singh

I am glad it helped.