Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Line chart issue

I have a line chart with X axis as calendar months and Y axis as Amount. there are 2 facts, budget amount and actual amount.

I have the budget for the entire year so the line for budget is displayed for the entire year cummulatively. But the actual amount is still the month of May.

So the line for actual amount goes up till that month and the corrosponding cumulated amount but after that goes flat till the last month.

I dont want that to happen. The actual amount line should be only till the month and should not extend flat till the last month.

Please let me know how this can be done.

linechart.JPG

1 Solution

Accepted Solutions
Not applicable
Author

Laxmikantm,

Check out the attached application. I believe your are doing the accumulation using the "Full Accumulation" option.

But you could do this with the combination of RangeSum() and Above() functions.

Your expression should be as below.

            if(aggr(sum(Sales),Date)>0,Rangesum(above(Sum (Sales),0,rowno())))

- Sridhar

View solution in original post

4 Replies
Not applicable
Author

Laxmikantm,

Check out the attached application. I believe your are doing the accumulation using the "Full Accumulation" option.

But you could do this with the combination of RangeSum() and Above() functions.

Your expression should be as below.

            if(aggr(sum(Sales),Date)>0,Rangesum(above(Sum (Sales),0,rowno())))

- Sridhar

Not applicable
Author

Thanks Sridhar for help.

Not applicable
Author

Good One Shridhar sir..................

  I like this solution.....

  Shridhar can u pls send me any example qvw for rangesum ,rangeavg , and peak function etc.........

Waiting for your reply......

pls mail me @

dushyant.ntpc@gmail.com

Dushyant

Not applicable
Author

Dushyant,

I don't have any particular application for rangesum ,rangeavg and peak functions as of now. But all these functions are been discussed on the forum many times. Start searching this forum you would get many examples.

- Sridhar