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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Adajames123
Regular Visitor

Waterfall chart based on two columns and 1 measure

Hi, 

I am trying to create a waterfall based on Dept and Structure columns along with the associated cost .

Each project has Revenue and Total costs per structure.

I am looking to create a chart with this structure on the x-axis :
1 = Revenue at Structure 1 - Total costs at Structure 1
2 = Revenue at Structure 2 - Total costs at Structure 2
HR = HR at Structure 2 - HR at Structure 3
PM = PM at Structure 2 - PM at Structure 3
Logistics = Logistics at Structure 2 - Logistics at Structure 3
3 = Revenue at Structure 3 - Total costs at Structure 3

I specifically want HR, PM, and Logistics to be displayed only between 2 and 3 on the x-axis, as this is the main focus of the analysis.

Project Dept Structure Cost
Project A HR24,500.00
Project A HR35,500.00
Project A PM17,000.00
Project A PM26,000.00
Project A PM37,500.00
Project A Logistics111,500.00
Project A Logistics213,000.00
Project A Logistics312,000.00
Project A Revenue15,500.00
Project A Revenue27,000.00
Project A Revenue38,000.00
Project A Total costs123,500.00
Project A Total costs224,500.00
Project A Total costs326,000.00
Project B HR14,500.00
Project B HR24,000.00
Project B HR35,000.00
Project B PM16,000.00
Project B PM25,000.00
Project B PM36,500.00
Project B Logistics115,000.00
Project B Logistics214,000.00
Project B Logistics316,000.00
Project B Revenue16,000.00
Project B Revenue27,000.00
Project B Revenue38,000.00
Project B Total costs126,500.00
Project B Total costs226,500.00
Project B Total costs327,000.00



Please find attached the pbix file
Waterfall.pbix 

Looking forward to your suggestions and feedback!

Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Adajames123 ,

I can’t open the link file.

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1712653671439.png

2.Create the measures to calculate cost.

 

Measure 1 = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test','Table test'[Project]), 'Table test'[Dept] = "Revenue" && 'Table test'[Structure] = 1
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "Total costs" && 'Table test'[Structure] = 1
    )
)
Measure 2 = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "Revenue" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]),
        'Table test'[Dept]= "Total costs" && 'Table test'[Structure] = 2
    )
)
Measure HR = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "HR" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept]= "HR" && 'Table test'[Structure] = 3
    )
)
Measure pm = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "PM" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept]= "PM" && 'Table test'[Structure] = 3
    )
)
Measure Logis = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "Logistics" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept]= "Logistics" && 'Table test'[Structure] = 3
    )
)

 

3.Create the new table.

vjiewumsft_1-1712653755617.png

vjiewumsft_2-1712653755619.png

4.Create the measure to show values.

 

Measure values = 
SWITCH(
    SELECTEDVALUE('X-axis name'[column name]),
    "1", [Measure 1],
    "2", [Measure 2],
    "HR", [Measure HR],
    "PM", [Measure pm],
    "Logistics", [Measure Logis],
    "3", [Measure 3]
)

 

5.Drag the two columns and measure into the waterfall chart.

vjiewumsft_3-1712653785372.png

6.The result is shown below.

vjiewumsft_4-1712653792235.png

You can also view the following links to learn about waterfall chart.

Solved: Waterfall chart with multiple measures - Microsoft Fabric Community

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Adajames123 ,

I can’t open the link file.

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1712653671439.png

2.Create the measures to calculate cost.

 

Measure 1 = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test','Table test'[Project]), 'Table test'[Dept] = "Revenue" && 'Table test'[Structure] = 1
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "Total costs" && 'Table test'[Structure] = 1
    )
)
Measure 2 = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "Revenue" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]),
        'Table test'[Dept]= "Total costs" && 'Table test'[Structure] = 2
    )
)
Measure HR = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "HR" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept]= "HR" && 'Table test'[Structure] = 3
    )
)
Measure pm = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "PM" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept]= "PM" && 'Table test'[Structure] = 3
    )
)
Measure Logis = CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept] = "Logistics" && 'Table test'[Structure] = 2
    )
) -
CALCULATE(
    SUM('Table test'[Cost]),
    FILTER(
        ALLEXCEPT('Table test', 'Table test'[Project]), 'Table test'[Dept]= "Logistics" && 'Table test'[Structure] = 3
    )
)

 

3.Create the new table.

vjiewumsft_1-1712653755617.png

vjiewumsft_2-1712653755619.png

4.Create the measure to show values.

 

Measure values = 
SWITCH(
    SELECTEDVALUE('X-axis name'[column name]),
    "1", [Measure 1],
    "2", [Measure 2],
    "HR", [Measure HR],
    "PM", [Measure pm],
    "Logistics", [Measure Logis],
    "3", [Measure 3]
)

 

5.Drag the two columns and measure into the waterfall chart.

vjiewumsft_3-1712653785372.png

6.The result is shown below.

vjiewumsft_4-1712653792235.png

You can also view the following links to learn about waterfall chart.

Solved: Waterfall chart with multiple measures - Microsoft Fabric Community

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Adajames123 ,

try below measure


HR_Difference = CALCULATE(
    SUM('YourTableName'[Cost]),
    FILTER(
        ALL('YourTableName'),
        'YourTableName'[Dept] = "HR" &&
        'YourTableName'[Structure] = 2
    )
) -
CALCULATE(
    SUM('YourTableName'[Cost]),
    FILTER(
        ALL('YourTableName'),
        'YourTableName'[Dept] = "HR" &&
        'YourTableName'[Structure] = 3
    )
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors