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

null values in average

Hi How can I make the following exclude the null or 0 values.  It is giving me an average over all even if value is null whereas I want an average of just where there are values greater than 0??

Any help appreciated

Pick(Match(ValueList('Rate of new cases of Clostridium Difficile associated diarrhoea in acute hospitals per 10,000 bed days used'),

'Rate of new cases of Clostridium Difficile associated diarrhoea in acute hospitals per 10,000 bed days used'),

num(((Avg({$<[Acquired Infection]={4},ReferredMM={3}>}ActualValue)))), '##0.0')

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

=num(((Avg({$<[Acquired Infection]={4},ReferredMM={3}>}(If(ActualValue,ActualValue))))), '##0.0')

View solution in original post

6 Replies
anbu1984
Master III
Master III

=num(((Avg({$<[Acquired Infection]={4},ReferredMM={3}>}(If(ActualValue,ActualValue))))), '##0.0')

Gysbert_Wassenaar

Pick(Match(ValueList('Rate of new cases of Clostridium Difficile associated diarrhoea in acute hospitals per 10,000 bed days used'),

'Rate of new cases of Clostridium Difficile associated diarrhoea in acute hospitals per 10,000 bed days used'),

num(((Avg({$<[Acquired Infection]={4},ReferredMM={3},ActualValue={'>0'}>}ActualValue)))), '##0.0')


talk is cheap, supply exceeds demand
rcorcoran
Creator
Creator
Author

Both of the solutions above work thanks so much to you both

rcorcoran
Creator
Creator
Author

Thanks anbu works great

Rhona Corcoran

rcorcoran
Creator
Creator
Author

Thanks Gysbert works great

rcorcoran
Creator
Creator
Author

Thanks Anbu works great