Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My previous post versed about what I think it is a very interesting use case of Set analysis element function P() to create dynamic sets and how to operate with those sets to solve really complex analysis scenarios in an easy and elegant way.
In the comments section of that post, I got a couple of questions regarding one of the charts we used in our web app, the so-called Tornado Chart. This post goes to answer that question by showing how to create a Tornado/Butterfly Chart.
Note: For the following example I got a sample data containing Population by Age data from the US census. It has 3 columns, Age Range, Male population and Female population.
As a general note remember we can set up the format for positive and negative values for any expression. Format argument in the Num function can take 2 parameters, first one indicates how to format the number if it is >0 and the second piece if number <0.
=num(sum(x), 'postivenumberFormat;negativenumberFormat')
As I want negative and positive number to look exactly the same I could use the following format arguments:
num(sum(FemalePopulation)*-1,’#,##0;#,##0’)
Note: Please be aware of some potential issues when exporting the chart as data since the resulting file could contain negative values.
Enjoy it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.