How can I build a waterfall chart with custom subtotal categories that aren t natively supported

0 votes

How can I build a waterfall chart with custom subtotal categories that aren’t natively supported?
I need to create a waterfall chart in Power BI, but I require custom subtotal categories that Power BI does not support by default. These subtotals should be inserted at specific points in the chart based on business logic. What is the best approach using DAX or Power Query to manipulate the data structure and include custom subtotal calculations?

5 hours ago in Power BI by Evanjalin
• 19,660 points
9 views

1 answer to this question.

0 votes

To create a custom waterfall chart with subtotal categories in Power BI, perform the following steps:

1. Restructure Data into Custom Subtotals

For the Waterfall breakdown, Power BI requires a Category column.

To achieve this, you will need to modify your dataset through either Power Query or DAX and create rows to suit your custom subtotals.

Sample Table Format:

Step        | Value  | Type  
------------|-------|---------  
Sales       | 5000  | Increase  
Costs       | -2000 | Decrease  
Profit      | 3000  | Subtotal  
Taxes       | -500  | Decrease  
Net Profit  | 2500  | Subtotal  

2. Use DAX to Create Custom Subtotals

  • If subtotals are calculated dynamically, create a DAX measure:
CustomSubtotal =  
IF(  
    SELECTEDVALUE(WaterfallTable[Step]) IN {"Profit", "Net Profit"},  
    SUMX(FILTER(WaterfallTable, WaterfallTable[Step] <> "Profit" && WaterfallTable[Step] <> "Net Profit"), WaterfallTable[Value]),  
    SUM(WaterfallTable[Value])  
)

3. Setup the Waterfall Chart in Power BI

Set Category as the x-axis and Value as the y-axis.

Ensure that "Profit" and "Net Profit" are both classified as Total in the settings of the Waterfall Chart.

answered 4 hours ago by anonymous
• 19,660 points

Related Questions In Power BI

0 votes
0 answers

How can I reduce the size of a Power BI file (PBIX) when working with large datasets?

How can I reduce the size of ...READ MORE

Nov 5, 2024 in Power BI by Evanjalin
• 19,660 points
156 views
0 votes
1 answer

How can I reduce the size of a Power BI file (PBIX) when working with large datasets?

Here are the most common ways to ...READ MORE

answered Dec 18, 2024 in Power BI by anonymous
• 2,900 points

edited Mar 6 202 views
0 votes
1 answer

How can I troubleshoot a scenario where Power BI loads data with wrong formats or encoding from a CSV file?

Troubleshoot Incorrect Formats or Encoding with CSV ...READ MORE

answered Dec 30, 2024 in Power BI by Vani
• 3,440 points

edited Mar 6 172 views
0 votes
1 answer

How can I fix a Power BI visual that keeps showing "See details" or other errors when rendering?

The "See details" error typically arises from ...READ MORE

answered Dec 30, 2024 in Power BI by Anu
• 2,900 points

edited Mar 6 183 views
+2 votes
0 answers

Assume referential integrity

1) What is Assume referential integrity? what ...READ MORE

Aug 19, 2019 in Power BI by vnk
1,938 views
+2 votes
1 answer

If Condition

DAX - I assume [Claim_line].[Allowed_Amount_B6] is one ...READ MORE

answered Aug 20, 2019 in Power BI by anonymous
• 33,050 points
1,731 views
+2 votes
1 answer

How to export data to CSV from power bi embedded url ?

Hi Arathi, You can open Visuals from embedded ...READ MORE

answered Aug 23, 2019 in Power BI by anonymous
• 33,050 points
6,784 views
+1 vote
1 answer

Power Bi to Machine Learning Model

Hello @vnk! Power BI only supports Azure Machine ...READ MORE

answered Dec 3, 2019 in Power BI by Priyanka
1,313 views
0 votes
1 answer

How can I retrieve data from a website that is powered by Power BI?

Accessing imported data from a website powered ...READ MORE

answered Feb 28 in Power BI by anonymous
• 19,660 points
50 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP