Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Waterfall Chart With Dimensions?

Hi all,

I'm trying to create a waterfall chart with, for example, spend by office. I'd like to have the dimension (office) be dynamic because I'm not sure how many cities the data will include when it is loaded into the document. The only waterfall examples I've seen are where the dimension is excluded and each expression acts as somewhat of an individual dimension. In that case, it's easy to choose an offset because you have more control of the surrounding expressions.

Is it possible to use a dimension when creating waterfall charts, and use a dynamic offset in relation to the other bars? Below is an example of the graphic I'd like to achieve.

Capture.PNG.png

1 Solution

Accepted Solutions
Not applicable
Author

Hi Paul,

Please check out the attached file. It might point you in the right direction.

Thanks

AJ

View solution in original post

18 Replies
giakoum
Partner - Master II
Partner - Master II

hope this helps.

MK_QSL
MVP
MVP

Create a Bar Chart

Dimension : CITY

Expression : SUM(Value)

Click + sign of Expression and Select Bar Offset...

Type Below in Definition of Bar Offset

=Sum(Total Value) - Sum(Value)- RangeSum(Above(Sum(Value),1, RowNo()-1))

Hope this help...

Not applicable
Author

Hi Paul,

Please check out the attached file. It might point you in the right direction.

Thanks

AJ

Not applicable
Author

You guys are geniuses!

One more question - what if I want the offset on the "Total" bar to be zero? I tried something like:

If(rowno()=1 or RowNo() = max(RowNo()),0, [other expression])

but it didn't work.

Not applicable
Author

And I also tried:

If(rowno()=1 or RowNo() = count(DISTINCT OfficeVariable),0, [other expression])

Not applicable
Author

Please check out the attached.

Is this what you want.

Not applicable
Author

This doesn't quite do it because the Total bar still has a non-zero offset. I want the offset on the Total bar to be zero, the same as the first row item.

Not applicable
Author

Ahh, I got it:

If(rowno()=1 or rowno()-1 = count(DISTINCT Office),0, [expression])

Not applicable
Author

Lol. It actually appears as if total has an offset but it doesn't. Its offset is zero same as the first one.

I have added axes to it. This will look better now.