Forum Discussion
Waterfall error with value containing switch
Hi.
I'm having trouble with a waterfall chart output whereby the value for each category returns 0 (seen in red in the screenshot). The value slices correctly with the elements when in a table or matrix visual (seen in green below), so I can't see why it wouldn't work with the waterfall.
The only complexity is that the [PR Value] uses a switch statement so that the data can be viewed in an unpivotted format.
E.g. [PR Value] := SWITCH( SELECTEDVALUE( Revenue[Element]),
"GGR", [GGR],
"Bonus Costs", [Bonus Costs],
...
0)
Waterfall error
Can anyone provide some insight as to why this won't work?
Thanks.
Hi mwegener. I actually solved this, the issue was that within my SWITCH statement I had different formatting for the various metrics I was using. Some #,0 and others #,0.0. This was enough to upset the waterfall visual. After removing the formatting it worked fine.