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
Diva20
Frequent Visitor

How to build a Waterfall Chart with multiple columns

Hi Users,

 

Im trying to see if i can create a waterfall chart with multiple columns in the "Category section" and also trying to figure out on how to build a single measure for all the categories. 

 

Attached  is the example that i want to build.

community.PNG

But i have External Hire, Rehire, Transfers in.....etc, in data in multiple columns.

 

Help me on on this.

 

Thanks in Advance 🙂

 

Divya

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @Diva20 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

v-rzhou-msft
Community Support
Community Support

Hello @DivyaAluri3

I have a test building a sample.

You must create two additional tables.

Category table:

1.png

Breakdown table:

2.png

My data table:

3.png

Build a measure:

Measure = 
VAR _StartingHC =  SUM('Table'[Starting HC])
VAR _External = SUM('Table'[External Hire])
VAR _Rehire = SUM('Table'[Rehire])
VAR _Transfersin = SUM('Table'[Transfers in])
VAR _TransferOut = SUM('Table'[Transfers Out])
VAR _Vol = SUM('Table'[Vol])
VAR _INV = SUM('Table'[Inv])
VAR _EndingHC = SUM('Table'[Ending HC])
Return
  SWITCH (
    SELECTEDVALUE (Category[CategorySort] ),
    1, SWITCH (
        SELECTEDVALUE (Breakdown[Breakdown] ),
        "External Hire", -1*(_External-_StartingHC),
        "Rehire",-1*(_Rehire-_External),
        "Transfers Out",-1*(_TransferOut-_Transfersin),
        "Vol",-1*(_Vol-_TransferOut),
        "Inv",-1*(_INV-_Vol),
        _StartingHC
    ),
    2, SWITCH (
        SELECTEDVALUE (Breakdown[Breakdown] ),
        "External Hire", 0,
        "Rehire",0,
        "Transfers Out",0,
        "Vol",0,
        "Inv",0,
        _EndingHC
    )
)

Result:

4.png

It seems that the waterfall chart will not be sorted by breakdown now: Classification in the attribution distribution of the waterfall chart does not work

And you can check out this blog for more details on how to create this waterfall chart: How to make waterfall charts work

You can download my pbix file from this link: How to create a multi-column waterfall chart

Best regards

Rico Zhou

If this post helps,then consider Accepting it as the solution to help other members find it faster.

Hi, This is super helpful. Can you edit the measure or suggest how to approach the same if I have more than 2 categories. For example, the above, suppose there's a Mid HC and Starting Hire + External Hire +Rehire = Mid HC. Similarly Mid HC+ transfer out + vol + inv = End HC

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.