Users Online

· Guests Online: 35

· Members Online: 0

· Total Members: 188
· Newest Member: meenachowdary055

Forum Threads

Newest Threads
No Threads created
Hottest Threads
No Threads created

Latest Articles

Power BI Tutorial - Power BI Charts Tutorial

 

Stacked Area Chart in Power BI

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.

 

Please refer to Connect Power BI 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, first Drag and Drop the Sales Amount from Fields section to Canvas region. It automatically creates a Column Chart, as we have shown below.

Stacked Area Chart in Power BI 1

Next, let me add the State Province Name to the Axis section.

Stacked Area Chart in Power BI 2

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.

  Stacked Area Chart in Power BI 3

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.

Stacked Area Chart in Power BI 4

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.

Stacked Area Chart in Power BI 5

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.

Stacked Area Chart in Power BI 6

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.

Stacked Area Chart in Power BI 7

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.

Stacked Area Chart in Power BI 8

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.

Stacked Area Chart in Power BI 9

Let me add Product Color to the Legend section to show multiple dimensions.

Stacked Area Chart in Power BI 10

 

 

 

Format Power BI Area Chart

How to Format Power BI Area Chart with an example?. Formatting Power BI Area Chart includes changing the Area Colors, Chart Title text, Title position, X-Axis Details, Y-Axis details, Data labels, and Background Images, etc.

  

To demonstrate these Power BI Area Chart formatting options, we are going to use the Area Chart that we created earlier. Please refer Area Chart in Power BI article.

How to Format Power BI Area Chart

Please click on the Format button to see the list of formatting options that are available for this Area Chart.

Format Power BI Area Chart 1

Format Area Chart General Settings

Use this General Section to Change the X, Y position, Width, and height of an Area Chart

Format Power BI Area Chart 2

Format Legend of an Area Chart in Power BI

Please select the Power BI Legend region and toggle the option from Off to On to enable Legend.

  

As you can see from the screenshot below, we used the Position drop-down box to change the legend position to Top Center. And we also added the Legend Title as Money, Color to Brick Red, Font family to Candara, and text size to 15.

Format Power BI Area Chart 3

Format X-Axis of an Area Chart in Power BI

The following are the list of options that are available for you to format the Area Chart Horizontal axis or X-Axis. Here, we change the Color to Brown and Text Size to 12.

Format Power BI Area Chart 4

By default, the X-Axis title set to Off for the Area Chart, but you can enable it by toggling Title to On. Let me change the Title Color to Green, Font style to Cambria, and Font Size to 25.

Format Power BI Area Chart 5

Format Y-Axis of a Power BI Area Chart

As you can see, we changed the Y-Axis labels Color to Brown, Text Size to 15, and display units to thousands.

Format Power BI Area Chart 6

Let me change the Scale type to Log. From the below screenshot, you can see that it is displaying the Log scale.

Format Power BI Area Chart 7

By default, Area Chart Y-Axis title set to Off. But, you can enable it by toggling Title under the Y-Axis section to On. Let me change the Title Color to Green, Text Size to 25, and Font family Cambria.

By toggling the Area Chart Gridlines option from On to Off, you can disable the Gridlines.

  • Color: You can change the Gridlines color.
  • Stroke Width: Use this to change the Gridlines width.
  • Line Style: Choose the line style such as Solid, dotted, and dashed.
Format Power BI Area Chart 8

Format Power BI Area Chart Data Colors

By default, the area chart fills the space between axis and line with default colors. Let me change the Sales Amount Line color to Green and Total Product Cost color to Red.

Format Power BI Area Chart 9

Format Data Labels of an Area Chart

Data Labels display the Values (Sales Amount and Total Product Cost at each point). As you can see from the below screenshot, we enabled data labels and changed the color to black.

Format Power BI Area Chart 10

Format Area Chart in Power BI Shapes

Use this section to change the Line Strokes, or marking shapes. 

 

As you can see from the below screenshot, we changed the Stroke Width (Line width) to 4, marker Shape (joining Point Shape ) as Diamond, Marker size as 7, and marker color as cherry red.

Format Power BI Area Chart 11

Format Area Chart Plot Area

Using this Plot Area property, you can add custom Images as the Background of the Area Chart. For the demonstration purpose, we added one image as the Plot Area Background.

Format Power BI Area Chart 12

Format Power BI Area Chart Title

By toggling the Title option from On to Off, you can disable the Area Chart title.

From the below screenshot, you can see, we change the Title Text to Sale Amount and Total Product Cost by State Name. We also changed the Font Color to Green, Font Family to Georgia, Text Size to 25, and Title Alignment to center. If you want, you can add the background Color to the title as well.

Format Power BI Area Chart 13

Format Power BI Area Chart Background Color, and Borders

You can add the Background color to an Area Chart by toggling Background option to On. For the demonstration purpose, we added yellow color with 28% transparency.

Similarly, you can add Borders to an Area Chart by toggling the Border option from Off to On.  

 

Format Power BI Area Chart 14

 

Ratings

Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Render time: 0.78 seconds
10,804,676 unique visits