Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Data Science
  • Data Science Projects
  • Data Analysis
  • Data Visualization
  • Machine Learning
  • ML Projects
  • Deep Learning
  • NLP
  • Computer Vision
  • Artificial Intelligence
Open In App
Next Article:
Power BI - Data Visualization With Multiple Charts
Next article icon

Power BI - Data Visualization With Multiple Charts

Last Updated : 09 May, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Sometimes while dealing with hierarchical data we need to combine two or more various chart types into a single chart for better visualization and analysis. These are known as “Combination charts”.

In this article, we are going to see how to combine a stacked column chart and a line chart in Power BI. We will also look into Bubble and Waterfall charts. In these types of combination charts, multiple variables are handled. The combination charts are implemented for better visualizations and detailed analysis.

Stacked Column-Line charts show more than two metric values aggregated across a group dimension. They are mostly used for showing 2 quantities alongside with respect to changes over time. The first Y-axis displays as a column, and the second as a line.

Uses and benefits of Line and Stacked column charts

  • Quicker comparison of data on 2 measure
  • We use it when we have a Line and column chart on the same x-axis.
  • We use it whenever we need to correlate and compare two (or more measures) with different value ranges or scales.
  • We use it to save space and do easy comparisons with multiple measures.

Bubble Chart

This chart shows the intersections of two numeric values with a bubble, the third dimension is the size of the bubble which is useful for the final evaluation.

When to use bubble Chart:

  1. Whenever we want to create a relationship between two numeric values with their size.
  2. The third metric (size) helps in determining the value differences of various intersections.
  3. It also helps in analyzing financial data.
  4. To display data with quadrants.

Let's see the implementation of Stacked column charts first.

The dataset in use: Loan vs Interest rates

The dataset used is DataSet1 and Dataset2. Upload the dataset in Power BI and refer to the dataset to follow along with the below-given sections of the article.

excelFile

Data: We will be working with "DataSet" data with data fields as shown in the above image. The major variables used to show the charts are as follows. These will be used for Visualization arguments later on.

  • Loan: This variable will be used for column values.
  • Interest_rate: This variable will be used for line option values. The line values actually hold the average of interest_rate as shown below in the article.
  • Date: This variable will be used for the common shared axis. This can be represented in any form like daily date, weekly, monthly, or quarterly as per the preference.

This selection will mean that the loan and the interest rate will be plotted as column and line charts, respectively.

Load Data in Power BI Desktop:

  • Open Power BI Desktop

openPowerBI

  • Click the "Get Data" option and select "Excel" for data source selection and extraction.

getDataExcel

  • Select the relevant desired file from the folder for data load. In this case, the file is "DataSet.xls". click the "Load" button once the preview is shown for the Excel data file.

Navigator

  • The dashboard is seen once the file is loaded with the "Visualizations" Pane and "Data fields" Pane which stores the different variables of the data file. Select the red colored box and drag in the main canvas. The red-colored square represents the "Stacked column line" chart.

selectLineBarDesign

Click on the format option displayed in the small box in the visualization pane and you will see different options. To show data values in the chart, enable "Data labels". After setting the options as mentioned in the "Data" section earlier, we get the following output.

2ndExampleVPane

Example 1: The two measures are "Sum of Loan" and "Average of Interest rate" by "Year" and "Gender". The "Male" and "Female" act as column legends as "Gender" is in the y-axis.

stackedColumnLineChart

Output:

stackedColumnLineWithTooltip

The month of "October" shows 15 female candidates for loans.

FemaleHoverChart

The month of "January" shows 203 male candidates for loans.

MaleHoverChart

The following shows the "Average of loan" in the month of "May" by using the Line y-axis.

linechartHover

Example 2: The same dataset is used to show another Line and Stacked Column chart with some changes in the x-axis, y-axis, line y-axis, and column legend for a better understanding. Set the Visualization pane as shown below.

DataSetVPane

After setting the visual build, we get the following combination chart of Line and Stacked columns. The different colors of the stack represent loans taken for various purposes like "Education", "home", "Personal", "Travel" and "others". The y-axis shows the total number (count) of purposes in a year. The line in the y-axis shows the average of the remaining debt in different years.purposeRemainingdebtbyyearandpurpose

Final Output:

purposeandRemaingdebtbyyear

Format your visual:

This chart shows the intersections of two numeric values with a bubble, the third dimension is the size of the bubble which is useful for the final evaluation.

formatVisual

The user or developer can change as per the application report's need or requirement.

formatVisuals

One of the results after formatting the visual is as follows. You can notice the column legends appearing on the bottom center of the page.

formattedOutputPurposeRemngDebtbyYear

The same chart is shown with different measures like "Average of salary" and "Average of remaining Debt" on the y-axis for different purposes ("Home", "Education"...) in the form of stacked columns.

averageofSalaryRemainDebtByYearPurpose

Example 3: The following also demonstrates another Line and Stacked column chart for Total Articles published (for different technologies ) for all the months in a year. The x-axis shows the count of different technologies, the y-axis shows the months, the column legends are technology names stacked on one another and the line shows the total articles published in a month.

Dataset used: "techDataSet.xlsx"

techDataSetScreen

Set Visualization Pane:

vPaneForArticlesPblsd

The result shows stacked technologies (legend columns) and their number of articles (line y-axis) published in any month (x-axis). The y-axis shows the "count of technology" as it shows the count for any one technology namely "AI", "Data Science", "PHP" and so on.

artcilesPublished

On hovering on the month "May", the count for "PHP" technology is 2 which means 2 dates show articles submission based on "PHP".

countofTech

On hovering on the month "Jan", the sum of total_published articles (based on PHP and AI) is 168.

SumofPublished

Example 4: We will demonstrate a bubble chart for the following dataset.

DataSet Used:

The dataset used is "SaleData". Upload the dataset in Power BI and refer to the dataset to follow along with the below-given sections of the article.


SaleDataScreen


Data: We will be working with "SaleData" data with data fields as shown in the above image. The major variables used to show the charts are as follows.

  • Units: This is the data field used in the x-axis for showing the number of units taken.
  • Unit_price: This is the data field used in the y-axis for showing the price of one unit of any item.
  • Brand: This is the parameter used for showing colorful legends representing various item brands.
  • Sale_amt: This is the data field used for the size of the bubble. The average of Sale_amt is taken for this metric.

The dashboard is seen once the file is loaded with the "Visualizations" Pane and "Data fields" Pane which stores the different variables of the data file. The red icon is used for bubble or scatter charts. Drag the icon to the main canvas for showing or building the visuals.

As mentioned earlier, the different axis is set by dragging the data fields.


Bubble Chart in Power BI: The following shows the Average of Sale_amt for different item brands by units and their prices. The size of a bubble is directly proportional to the average Sale_amt.


On hovering over any bubble, it displays all the needed metrics for analysis.


All of the above steps are applied to "Region" as well. The "Visualizations" pane is set with the same x-axis, y-axis, and Size. This time the "Legend" is set to "Region" so as to build a visual based on different regions namely "Central", "East" and "West".


Output:


Example 5: The following also demonstrates another bubble chart for Total Articles published (for different technologies shown with different colors ) for all the months in a year. The x-axis shows the months, the y-axis shows the total articles published in a month and the size of the bubble shows the total articles published based on both.

Set Visualization Pane:

The result shows colored bubbles (legend) and the number of articles (line y-axis) published in any month (x-axis). The y-axis shows the "Total_Published" as it shows the count for any one technology namely "AI", "Data Science", HTML", "ML", "PHP", or "Python" published in any particular month.

The following shows the total number of articles published in the month of "March" is 14 which is based on "AI" technology.

The following shows the total number of articles published in the month of November is 98 which were based on the "PHP" technology.

Waterfall Chart

These are also called Bridge charts showing the running total of a set of added and subtracted values. The waterfall charts have color-coded columns to represent the increase or decrease of values in an easy manner. It shows how an initial value is affected by changes in the chart denoted by a column or vertical bar. The intermediate values can fluctuate between initial and final values.

When to use Waterfall charts:

  • To show changes in data across time or some different categories.
  • To show major incremental or decremental changes that contribute to a total value.
  • To analyze data based on profit or loss scenarios like the annual profit of a company.
  • To represent the beginning and end of some count scenarios.
  • When we want to analyze actual values and targeted ones over time.

Common Examples:

  • Monthly spending or Savings of a household.
  • Annual Profit or Total Revenue generated in a company.

Note: The same steps are to be taken as shown earlier in the "Bubble chart" section for opening the Power BI desktop and navigating the data source before loading it.

When the "Visualizations" pane is opened, use the following icon for implementing the waterfall chart into the Power BI canvas.

Initial Canvas:


DataSet used: We will be working with "techPublishedDataSet" data with data fields as shown in the image. The major variables used to show the charts are as follows.

  • Month: This is the data field used in the x-axis for showing the months of a year.
  • Article_variance: This is the parameter used for showing the y-axis. Article_variance is the new column created that shows the value of (Total_Published - Expected) articles.

Dataview in Power BI desktop: 'Sheet1' is the sheet of the "techPublishedDataSet.xlsx" file.


Set the Visualization Pane: "Sum of Article_variance" is taken in the y-axis as we are taking the summation of total published articles including all different technologies in any given month.


Output:


On hovering on any column:

Conclusion: This type of chart represents multivariate insights in the form of a Report view. The user or developer can visualize measures that belong to different scales in e-commerce, retail, manufacturing, and almost every industry for better monitoring of business.


Next Article
Power BI - Data Visualization With Multiple Charts
https://media.geeksforgeeks.org/auth/avatar.png
Anonymous
Improve
Article Tags :
  • Power BI
  • Data Visualization
  • AI-ML-DS

Similar Reads

    Power BI - Ribbon Charts and Multi-Row Card Visualization
    In this article, we will learn to implement basic ribbon charts and multi-row card visualization using Power BI. This discusses some important concepts used to create the very common bar and column charts so as to make large business intelligence decisions. We will be discussing the following topics
    5 min read
    10 Types of Tableau Charts For Data Visualization
    Suppose you have data and you need to demonstrate the different trends in that data to other people. What's the best method of doing so? A data visualization, of course! You can use various types of charts depending on your data and the conclusions you want to convey. Charts are a very important par
    8 min read
    Charts and Graphs for Data Visualization
    As companies and groups deal with more and more data, it’s crucial to present it visually. Data is everywhere these days, and it can be overwhelming. This article is your guide to Data Visualization, which is turning all that data into pictures and charts that are easy to understand. Whether you wor
    13 min read
    What is a Data Visualization Dashboard?
    Businesses and organizations are continuously looking for ways to make sense of the enormous volumes of data they generate and gather in this era of information overload. Organizations gain crucial insights and patterns that might otherwise go unnoticed by converting data into visual representations
    15+ min read
    Types of Data Visualization Charts: From Basic to Advanced
    Data Visualization Charts is a method of presenting data in a visual way. In this guide we'll explore about the different types of data visualization charts in very detailed mannerCharts for Data VisualizationBasic Charts for Data VisualizationThese are the charts you'll face when starting with data
    14 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences