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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.