Forum Discussion
Waterfall creation
Hello,
I'm struggling creating a waterfall. Could someone help me please?
Thank you by advance.
Here the result:
Here the data:
| ID Zone | Zone | ID Pays | Pays | ID Filiale | Filiale | ID Asset | Asset | ID Gisement | Gisement | Fluides | Active @31/12/2020 | Temporarily suspended @YE21 | Temporarily closed @YE21 | Definitely abandoned @YE21 | Dry @YE21 | Drilled & Completed | Temporarily suspended | Connected to facilities | Temporarily closed | completed or Worked over | Definitely abandoned | Dry | On-going Anonymous | Active @31/12/2021 | Temporarily suspended @YE22 | Temporarily closed @YE22 | Definitely abandoned @YE22 | Dry @YE22 |
| 20 | Zone 20 | 50 | Pays 50 TestNom | 100 | Filiale 100xxxxxx | 1E+06 | Asset 1047459 | 1E+06 | Gis. 1047805xxxxxxxxxx | op | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 |
| 20 | Zone 20 | 52 | Pays 52 | 102 | Filiale 102xxxxx | 1008 | Asset 1008xxxxxx | 3057 | Gis. 3057 | op | 4 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 2 | 0 | 0 | 0 |
| 20 | Zone 20 | 52 | Pays 52 | 102 | Filiale 102xxxxx | 1008 | Asset 1008xxxxxx | 3057 | Gis. 3057 | wi | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 22 | Zone 22xxxxxxxxxxxxxxxxxxxxxxxxxxxx | 67 | Pays 67xxx | 1E+06 | Filiale 1047385 | 1E+06 | Asset 1048025 | 1E+06 | Gis. 1048026 | op | 10 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 5 | 0 | 0 | 0 | |||
| 23 | Zone 23xxxxx | 69 | Pays 69xx | 121 | Filiale 121xx | 1E+06 | Asset 1037977xxx | 1E+06 | Gis. 1038005 | op | 12 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 0 | 0 | 0 |
| 23 | Zone 23xxxxx | 69 | Pays 69xx | 121 | Filiale 121xx | 1E+06 | Asset 1037977xxx | 1E+06 | Gis. 1038005 | wi | 6 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 2 | 0 | 0 | 0 |
| 23 | Zone 23xxxxx | 69 | Pays 69xx | 121 | Filiale 121xx | 1E+06 | Asset 1037977xxx | 1E+06 | Gis. 1038007 | op | 35 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 35 | 1 | 3 | 0 | 0 |
| 23 | Zone 23xxxxx | 69 | Pays 69xx | 121 | Filiale 121xx | 1E+06 | Asset 1037977xxx | 1E+06 | Gis. 1038009 | op | 9 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 1 | 0 | 0 |
| 23 | Zone 23xxxxx | 72 | Pays 72 | 162 | Filiale 162xxxxxxxxxxxxxxxxxxx | 1E+06 | Asset 1002521xxx | 3534 | Gis. 3534xxxxxxx | op | 806 | 1 | 0 | 69 | 0 | 0 | 0 | 0 | 806 | 1 | 0 | 69 | 0 | |||||
| 24 | Zone 24xxxxxxxxx | 1E+06 | Pays 1022252 | 1E+06 | Filiale 1022419xxxx | 1E+06 | Asset 1028830 | 1E+06 | Gis. 1028852 | gp | 65 | 11 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 65 | 11 | 2 | 1 | 0 |
| 24 | Zone 24xxxxxxxxx | 1E+06 | Pays 1022252 | 1E+06 | Filiale 1022419xxxx | 1E+06 | Asset 1028830 | 1E+06 | Gis. 1028854 | gp | 18 | 7 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 7 | 0 | 1 | 0 |
| 24 | Zone 24xxxxxxxxx | 1E+06 | Pays 1022252 | 1E+06 | Filiale 1022419xxxx | 1E+06 | Asset 1028830 | 1E+06 | Gis. 1028858 | gp | 78 | 22 | 0 | 40 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 78 | 22 | 0 | 40 | 0 |
| 24 | Zone 24xxxxxxxxx | 1E+06 | Pays 1022253 | 1E+06 | Filiale 1022337 | 1E+06 | Asset 1022338xxxxx | 1E+06 | Gis. 1022339 | gp | 83 | 4 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 4 | 5 | 0 | 0 |
| 25 | Zone 25xx | 1E+06 | Pays 1008261 | 1E+06 | Filiale 1008262xxxxxxxx | 1E+06 | Asset 1008263xxxxxx | 1E+06 | Gis. 1029027 | ot | 4 | 1 | 0 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 5 | 0 |
5 Replies
- lbendlinSuper User
First step is to unpivot your data to bring it into usable shape
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("xZY9b8IwEIb/SpS1qDqfv8cObbeqQ6ciBoaoQqKlUpBK/33tIzYGH4UwgCUn5pzXeh/nfGE6bRHaSfu++uoaGul4eZ3/9o2G5q3r1y+rzxAREONPi+Vivuya8GtDLc483oEJ94e+79ZhRlmlfRF/XvT3FHagN7mFidV3uGB8MnQY0WvNbFJzYOag5wH3/GO2D+AK9+CyPwnaJv/DmCyrwcIYy7XmWpZ/FsNujd3lWkOWMVvGzT8tPGVswjF2P1V2TMpKp7kkcoBlPCVRCJv0HgTt2QmKprg3vIiwZMaS2b/P/v3WPorSPAo2/6X19oB3cC8dgM7u8YI0YkRXd08JZS4wX2uu6j2fX6mHzJYjzDOiq7r3yb1vxxfNWnPMu80liEbC7JUgwx15BiWc3QhJFUlLlUji+KD8O9IlX7Rz5ckte3maWRkxqcykOIeEFkop4rbEVgUJUQl/BAudk1C/nhCmxT4ikKE8ESNfEqe6JY5KOCJ+aGy7+yKcVaVq0S1hXIKxcYSpBKlzTw8rGwkkjwBJaTmYEHeHqyWiMOcTkYvrRhenPoNlZ0REozON5jDAoREsRpxBhn/3BwWNrGYTjwek0rweXKUsOxep1sxmfw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"ID Zone" = _t, Zone = _t, #"ID Pays" = _t, Pays = _t, #"ID Filiale" = _t, Filiale = _t, #"ID Asset" = _t, Asset = _t, #"ID Gisement" = _t, Gisement = _t, Fluides = _t, #"Active @31/12/2020" = _t, #"Temporarily suspended @YE21" = _t, #"Temporarily closed @YE21" = _t, #"Definitely abandoned @YE21" = _t, #"Dry @YE21" = _t, #"Drilled & Completed" = _t, #"Temporarily suspended" = _t, #"Connected to facilities" = _t, #"Temporarily closed" = _t, #"completed or Worked over" = _t, #"Definitely abandoned" = _t, Dry = _t, #"On-going Anonymous" = _t, #"Active @31/12/2021" = _t, #"Temporarily suspended @YE22" = _t, #"Temporarily closed @YE22" = _t, #"Definitely abandoned @YE22" = _t, #"Dry @YE22" = _t]), #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Fluides", "Gisement", "ID Gisement", "Asset", "ID Asset", "Filiale", "ID Filiale", "Pays", "ID Pays", "Zone", "ID Zone"}, "Attribute", "Value"), #"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Value", type number}}) in #"Changed Type"Then you need to indicate which order the items should appear in, and which of them are positive and which are negative.
(And lastly you want to question if a waterfall is really a good way of visualizing your data.)
- AnonymousNot applicable
Thank you for the help.
I've got this:
And now, I'm trying to sort my categories like this example:
Could you now help me to sort the categories like the example (not alphabetically nor by value order). The variations (in green and red) impacting the second grey value.
Thanks in advance
- lbendlinSuper User
you need to indicate which order the items should appear in. Add an appropriate index column, then sort your category column by the index column.