Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nata800
Regular Visitor

Convert table structure for waterfall chart

Dear all,

 

I have following table structure with revenues for 2022 and 2023 as well as delta revenues 2023 vs. 2022 per Country.

CategoryBreakdownRevenue
20222022100
DeltaCountry x20
DeltaCountry y20
DeltaCountry z60
20232023200

 

As these are different value types (base and delta values) the standard waterfall chart is not working out. This is the desired outcome shown via ThinkCell, the datasheet logic follows exactly the one of the table

Nata800_0-1680697308016.pngNata800_1-1680697335266.png

 

 

How can I transform the table structure to suit the best for standards waterfall charts?

 

Thanks so much!

 

Regards

Nata

4 REPLIES 4
v-cgao-msft
Community Support
Community Support

Hi @Nata800 ,

Remove the bottom row in Power Query and add [Index] column to help sort.

vcgaomsft_0-1680858464203.png

 

The only difference with the image you gave is that 'total' is used here instead of '2023'.

vcgaomsft_1-1680858586980.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thanks Gao for your solution and sorry for the delay (was on vacation).

I think your solution will work, but I would need to enrich the table slightly. In my example table above the country variances are completely summing up to the delta of 2023 vs. 2022. However in reality my table does not, which means there is always a difference

Nata800_1-1681293804812.png

 

 

So before I can use your Total column (to reflect the value of 2023) I would need to add rows with "Country Others" for the deltas within a Region (A-D). With what formula could this be achievable in Power Query?

Nata800_2-1681294177849.png

Thanks a lot!

 

Regards
Nata

Nata800
Regular Visitor

Hi Pete,

 

thanks for your quick response!

 

My issue is that I only have the variance values ​​available and not the initial revenues for 2022/2023 per country.  Could there be another solution with creating a new measure (read about the swith function, but wasn't sure if it's applicable to my issue).

Thanks!

Regards
Nata

BA_Pete
Super User
Super User

Hi Nata,

 

I think the correct structure within Power Query would be this:

year breakdown revenue
2022 X 40
2022 Y 40
2022 Z 20
2023 X 20
2023 Y 20
2023 Z 60

 

You would then use the Waterfall visual with [year] in Category, [breakdown] in Breakdown, and [revenue] in Y-axis.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors