Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Guiqiang
Contributor II
Contributor II

RangeSum

 

Hello everyone,  

I have a problem with RangeSum, I want to hide the red line from June to December 2024, this part of the fold does not make any sense in the chart. How do I hide it? Thank you!

Additionally,Grey and black lines need to show data for 12 months of the year.

The measure used for the red line: RangeSum(Above(SUM({<Year={2024}>}QTY),0,RowNo()))

Guiqiang_0-1715329994494.png

 

Labels (4)
1 Solution

Accepted Solutions
MATC
Contributor III
Contributor III

Hello,

You can for example use if statement to exclude future from the graph e.g. as below

if(month(today())>=Month,RangeSum(Above(SUM({<Year={2024}>}Qty),0,RowNo())),null())


I would also suggest instead of using "2024" in your set expression to use this as variables for current year, last year etc. so you do not have to worry about them every year change. 

View solution in original post

1 Reply
MATC
Contributor III
Contributor III

Hello,

You can for example use if statement to exclude future from the graph e.g. as below

if(month(today())>=Month,RangeSum(Above(SUM({<Year={2024}>}Qty),0,RowNo())),null())


I would also suggest instead of using "2024" in your set expression to use this as variables for current year, last year etc. so you do not have to worry about them every year change.