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

Rangesum,above

I have an chart there I use rangesum(above()) function. The problem is that för the current year I want the line to be cutted at the present month.

The chart looks like thiserror loading image





I want the chart look like this:

error loading image

I have tried to use rangesum(above(...............),0,5) instead of rangesum(above(...............),0,12) but the chart does not look like I want anyway [:(]

Can anyone help?

Liivi

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Maybe this?

if(Month<=month(today()),rangesum(...))

View solution in original post

9 Replies
Miguel_Angel_Baeyens

Hello Liivi,

It happens to me that one workaround may be not use full accumulation if your other expressions allow you so. If not, another tip, as this is the behaviour I've seen when full accumulation is used, is to draw your lines "invisible". To do so, click on the [+] sign on the left of your expression, expand to "Backgruond Color" and set something like

If(dimension <= condition, ARGB(0, 255, 255, 255))
.

Hope that helps

Not applicable
Author

None of the tips seems to work 😞

Miguel_Angel_Baeyens

Hello Liiviv,

It's working fine here... How is your chart designed? Are you using full acumulation?

Not applicable
Author

Hi,

The accumulation is done inte the function.







johnw
Champion III
Champion III

How about adding to your set analysis to exclude anything past the current month? Then future months should sum to 0, so the rangesum() should remain flat.

Not applicable
Author

It did not help either 😞

johnw
Champion III
Champion III

Maybe this?

if(Month<=month(today()),rangesum(...))

Not applicable
Author

With som miner fixes it works!!! Thanx a lot!!!

guyvermeiren
Creator
Creator

Hello Liiiv,

Another idea is to set the Backgound color to White for the future months.

Is used something like this and it works:

=if(Num(Period)<Num(Month(Today()))-1,Black(255),White(0))

Period is the Month in my data

Kind regards