Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart Expression

Hi there,

I have an Gauge Chart whiche works. I have some datas which are 0.00 and it would be great if the chart ignores the 0.00 that it does not pushing down the avg. The Expression is Avg(Value).

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try an expression that tests for Value not being 0. Something like:

avg({<Value='{<>0}'>} Value)

... or using an if statement ...

Avg(if(Value<>0, Value))

Jonathan

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Try an expression that tests for Value not being 0. Something like:

avg({<Value='{<>0}'>} Value)

... or using an if statement ...

Avg(if(Value<>0, Value))

Jonathan

Not applicable
Author

Thanks Jonathan

I tried the first expression, it didn't worked. It showed nothing.

With Avg(if(Value<>0, Value)) it workes fine.

And also thank you for the fast answer

Not applicable
Author

Try this if you dont want the If-statement.

Avg({<Value-={0}>}Value)