Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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))