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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum in waterfall chart

I'm trying to create a waterfall graph that accumulates a certain expression sorted descending. I'm using

=above(SUM(Expression)



in my Bar offset resulting in the correct waterfall graph but ruining my sort. For example:

1
2
5
4
3

Should result in a waterfall

5
4
3
2
1



Labels (1)
1 Solution

Accepted Solutions
sicilianif
Creator II
Creator II

Put this in your bar offset expression:

If(rowno()=1,0,rangesum (above(sum(Value),1,rowno()-1)))

Then change your sort to be by expression descending and use this:

Sum(Value)

Frank

View solution in original post

8 Replies
Not applicable
Author

Added an example QVW to demonstrate the issue

DepartmentValue
Marketing1
Finance3
Sales4
HR2
Facilities2


brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi Anja,

I do not really understand, what's your problem. Do you want to change the sortorder? You can enter "order by expression" desc value or any other field.

Not applicable
Author

I want my waterfall graph to look like this (sorted by Y value ascending), but if you look at the attached QVW in my earlier post the sort is not giving me this result.

sicilianif
Creator II
Creator II

Put this in your bar offset expression:

If(rowno()=1,0,rangesum (above(sum(Value),1,rowno()-1)))

Then change your sort to be by expression descending and use this:

Sum(Value)

Frank

Not applicable
Author

Perfect! Thanks MuchYes

Not applicable
Author

Frank,

Many thanks for this tip, exactly what I was looking for (when using only one dimension)!

Kind regards,

Rich

Not applicable
Author

A quick question, managed to get the Waterfall chart to display correctly when using one dimension, and sorting by "expression", descending sum(Euros)

When I change the dimension (from "Class") to a calculated dimension:

=if(GetPossibleCount(Family)=1,Class,Family) ,and again sort by descending "sum(Euros)" the following graph is displayed (without displaying the largest values first Sad 😞

Any ideas why the sort is now behaving differently, now a calculated dimension has been added?

Please advise,

Kind regards,

Rich

Not applicable
Author

Hello,

Thank you for your solution.

How to offset the Others bar ?

How do you do when you choose to limit the number of values of your dimension (by using the option "Max Visible Number") and you active the "Show Other" option in the Presentation tab ?

Philippe