How to Create a Stacked Area Chart in Power BI with an example? For this Stacked Area Chart demonstration, we will use the SQL Data Source we created earlier.
Please refer to Connect to SQL Server article to understand the Power BI Data Source.
How to Create a Stacked Area Chart in Power BI
To create a Stacked Area Chart in Power BI, Drag and Drop the Sales Amount from the Fields section to the 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. The screenshot below shows the Stacked Area Chart that shows the Sales Amount by State Province Name.
Let me add the Total Product Cost to the 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 the Fields section to the Values field.
Next, let me add the State Province Name to the Axis section. You can do this by dragging State Province to the Axis section or checkmark the State Province column.
The above screenshot shows 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) in the top right corner, and select the Sort By State Province Name option, as shown 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.