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

Rangeavg() inside if(), unable to avoid null rows&columns

  • I tried the expression below and the result I got is show in the image(1) below.
               =sum({<Type={'Inventory'}>} Units)

Note: I'm using QV10

  image(1)

image01.JPG.jpg

  • Thereafter I modified the expression with "rangeavg()" function. But I get additional null rows&columns (highlighted in the image below)
  • Also I tried suppress null values, but still I'm getting the same result.

=if(sum({<Type={'Inventory'}>} Units),
    sum({<Type={'Inventory'}>} Units)/
    rangeavg(before(if(sum({<Type={'SalesOut'}>} Units)>=0,sum({<Type={'SalesOut'}>} Units)),0,8))
    )

image02.JPG.jpg

Could anyone please help me to solve this problem?

Thanks in advance

Message was edited by: gunenthiran b

4 Replies
Not applicable
Author

try suppress missing values

With Regards

Harshita Gaur

Not applicable
Author

Thank you for your reply.

But i tried suppress missing/null values also not working.

Not applicable
Author

hi,

can you attach your QVW? and your data sheet?

With regards

Harshita gaur

Not applicable
Author

Hi Harshita gaur,
I attached my qvw and data sheet in the question.
please find the attachment and please note that we are using QV10.
Thanks