Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data filter

Hey,

I need some help with Qlikview. I have uploaded 5 columns, the first one with the date and the others with numbers. Then with these data I plot 3 charts. In 2 of these 3 charts I would like to filter the data, because sometimes I have 0's or numbers above 1, what doesn't make sense for these 2 charts. How can I "delete" these rows of data in these 2 charts???

Thank you very much for your help!!!!!

Eduardo

1 Solution

Accepted Solutions
MayilVahanan

Hi

Avg(Z1V1niO) calculates the average of Z1V1niO.

avg({<Z1V1niO={'>0'}>}Z1V1niO) checks the Z1V1niO value is greater than zero, and calculate the average of Z1V1niO

=if(Avg(Z1V1niO ) > 0, Avg(Z1V1niO )) checks Avg(Z1V1niO ) is greater than zero, if it satisfy means, calculate the avg(Z1V1niO ) value..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

6 Replies
Gysbert_Wassenaar

You can use calculated dimensions to make a 'new' dimension that only shows the data you want. Depending on your situation it may also be possible to fix the issue with a set analysis expression in the charts expressions. Can you share the qvw you're working on and telling us what you need in more detail?


talk is cheap, supply exceeds demand
Not applicable
Author

Hey Gysbert!

My Data looks like this (but with many more rows):

DatumZ1V1niOZ1V2niOZ4V1niOZ4V2niO
03.08.2012 13:140,4530,180,1780,434
03.08.2012 13:230,480,1930,170,436
03.08.2012 13:490,4450,1830,1750,442
03.08.2012 14:190000
03.08.2012 14:210,4510,1820,1710,471
03.08.2012 14:310,4990,1890,1920,473
03.08.2012 15:080,4290,1780,1580,456

I would like not to take into account for example the lrow with only 0's (4th line).

The chart in which I want to "delete"/"not take into account" these rows has as dimensions "month" and "day". Has formula I have "Avg(Z1V1niO)";  "Avg(Z1V2niO)"; etc.

How can I use a "set anaysis"?? I tried to learn how it works but I didn't find proper documentation....

Thank you very much for your help!!!

Eduardo

MayilVahanan

HI

Try like this

=if(Avg(FieldName) > 0, Avg(FieldName))

Tick suppress missing value, suppress zero value in presentation tab

Tick suppress when value is null in dimension tab..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thank you for your help! I appreciate it. But I don't thnik that this expression is exactly qhat I am looking for. As "Dimensions" I have "Day" so IF(AVG(FIELDNAME)>0,...) is checking the average of the entire day, not the value in each row...

Thank you again and please help me understand how Qlikview works!

Eduardo

MayilVahanan

Hi

Avg(Z1V1niO) calculates the average of Z1V1niO.

avg({<Z1V1niO={'>0'}>}Z1V1niO) checks the Z1V1niO value is greater than zero, and calculate the average of Z1V1niO

=if(Avg(Z1V1niO ) > 0, Avg(Z1V1niO )) checks Avg(Z1V1niO ) is greater than zero, if it satisfy means, calculate the avg(Z1V1niO ) value..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thank you very much! Your expression is exactly what I needed!!!!!

Eduardo