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: 
MattG
Contributor III
Contributor III

Force 0 on Continuous line chart when expression is Avg( )

Hi all,

I have a line chart over a continuous x-axis that I want to drop to zero when no data exists for that time value.

If my query is a SUM, then this is fine by using  + SUM({1}0) 

My problem is that for this chart I am using an AVG function.

I've tried +AVG({1}0) but this didn't work. 

Has anyone found a solution to this problem before?

 

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

You may try: rangemax(0, avg(FIELD))

View solution in original post

1 Reply
marcus_sommer

You may try: rangemax(0, avg(FIELD))