How to Create a Stacked Area Chart in Power BI with example?. For this Power BI Stacked Area Chart demonstration, we are going to use the SQL Data Source that we created earlier.
How to Create a Stacked Area Chart in Power BI
To create a Stacked Area Chart in Power BI, first Drag and Drop the Sales Amount from Fields section to Canvas region. It automatically creates a Column Chart, as we have shown below.
Next, let me add the State Province Name to the Axis section.
Click on the Stacked Area Chart under the Visualization section. It automatically converts the Column Chart into a Stacked Area Chart. From the screenshot below, you can see the Stacked Area Chart that shows the Sales Amount by State Province Name.
Let me add the Total Product Cost to Values as well. By this, you can compare the Sales Vs Product Cost by State province name.
Create a Stacked Area Chart in Power BI – Approach 2
First, click on the Stacked Area Chart under the Visualization section. It automatically creates a Power BI Stacked Area Chart with dummy data, as shown in the below screenshot.
To add data to the Stacked Area Chart, we have to add the required fields:
- Axis: Please specify the Column Name that represents the Stacked Area.
- Legend: Column that divides the values further
- Values: Any Numeric value(s) such as sales amount, Order Quantity, Total Sales, etc.
Let me drag the Sales Amount and Total Product Cost from Fields section to Values field.
Next, let me add State Province Name to the Axis section. You can do this by dragging State Province to Axis section, or simply checkmark the State Province column.
From the above screenshot, you can see that the Stacked area chart is sorted by Sales Amount in descending order. So, let me sort the data by the State Province Name. To do this, click on the … (3 dots) on the top right corner, and select the Sort By State Province Name option as we showed below.
Let me do some quick formatting to this Power BI Stacked Area Chart.
NOTE: Formatting options for both Area Chart and Stacked Area Charts are the same. So, I suggest you refer to the Format Area Chart article to understand the steps involved in formatting this Stacked Area Chart.
Let me add Product Color to the Legend section to show multiple dimensions.