Click here to Skip to main content
15,884,628 members
Articles / Programming Languages / SQL

Get Started with Power BI Desktop

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
13 Mar 2019MIT9 min read 6K   5   1
In this guide, I’ll show you how to get started using Power BI.  We’ll then get some sample data and use it to build a simple project.

This is the first in a series of articles on how to Get Started with Power BI. For those of you who are unaware, Microsoft Power BI is an analytics tool that you can use to create interactive visual reports.

The best part is it’s free!

In this guide, I’ll show you how to get started using Power BI. We’ll then get some sample data and use it to build a simple project.

The idea is to get you up and running using Power BI today!

In this guide, I’ll take you through four steps:

  1. Install Power BI Desktop
  2. Get Project Data
  3. Load and Model Project Data
  4. Visualize Data

So, either follow in this video or continue reading. Either way, you have put together your first Power BI report in four easy steps!

Step 1 – Install Power BI Desktop

Power BI Desktop, just go the Power BI Desktop webpage and click Download Free>.

If you are a Window’s 10 user, you will be directed to install the app from the Windows store, otherwise, it will download and install.

Get Started with Power BI - Download Free

Here is what Power BI Desktop looks like within the Windows store.

Get Started with Power BI - Windows Store

Just click Install, the app downloads, and a bit of time you’re ready to launch!

Image 3

Windows 7 and 8 Users

IF you are running Windows 7 or 8, you can download Power BI Desktop from the Microsoft site. The installation works similar.

Once installed launch, and you’re good-to-go.

Now that we’ve got the software setup, let’s go get some data and create a project.

Step 2 – Get Project Data for Power BI Desktop

For this project, we’re going to use some interesting data from the New York City Open Data project – Rat Sightings! We will be working with data from 2010 to present. There are over 120,000 records in the file.

Before we get started with Power BI, let’s create a project folder. I created mine on OneDrive in my Documentfolder. You can create yours where you wish. Regardless of when you create it, I think it is important to organize your data and Power BI files.

With the folder created, let’s get the data. Go to the NYC Open Data site.

You should be taken directly to the Rat Sighting page. To download the data, follow these instructions as shown on the screen below:

  1. Click on the Export tab.
  2. Select Download and then click CSV to initiate the export.

Get Started with Power BI - Get Data

Once the file has downloaded, copy it to your project folder, for safe keeping.

Step 3 – Load and Model Project Data

Before we begin, let’s launch Power BI desktop. You can find it within Windows start menu. If you’re having a hard time finding it, just hit window key and type Power BI.

Close the splash screen once it displays:

Get Started with Power BI - Launch

OK, now we’re ready to rock, let’s get started with power BI and load some data, and get ready to model!

I’ve helped many people get started with Power BI. It is easy!

Power BI desktop is capable of loading data in a wide variety of data sources. To get started, we’re going to load a text file. For now, we’re just seeing how the tool works together. In future articles, we’ll look at querying SQL.

Make sure the Home ribbon is showing, then select Get Data and Text/CSV.

Get Started with Power BI - Select Data Source

When asked, navigate to your project folder and select the Rat_Sightings.csv file. After a few moments, you’ll see a preview of the file.

For this project, we’ll just load the data, so press, you guessed it! Load

Image 7

The application determines columns and datatypes based on the first 200 row loaded. It is a pretty good guesser. For our example, we don’t need to change anything.

After a couple of moments, the data is loaded. When mine finished, there were 2 errors. For now, I choose to ignore them. In a later blog, we’ll look at how to work with cleansing the data and avoid these types of errors.

Image 8

For now, just click Close.

It may not look like much, but you just loaded 122,800, or more, records into your model! Pat yourself on the back!

Before we get into data visualization, let's take a brief tour of Power BI.

Power BI Desktop Elements

Power BI report canvas

The Report view has five main components, you’ll want to know these when you get started with Power BI:

  1. The ribbon – displays common tasks associates with reports and visualizations
  2. The canvas, this is where you’ll place visualizations
  3. The pages tab. Here, you’ll be able to see additional report pages
  4. Visualizations panel – displays the visualizations(graphs) you can place on the canvas, as well as the means to customize their colors and fonts
  5. Fields panel – Displays query elements. These can be dragged onto visualizations.

Step 4 – Visualize Data using Power BI Desktop

I think adding visualizations to Power BI is the most fun part of the process. Once you have your model set up properly, it really becomes a drag and drop process.

That said, keep in mind modeling is very important, and in this getting started guide, we have barely scratched the surface! In future lessons, we’ll dive deep into modeling.

In this guide, “Get Started with Power BI,” we will add five visualizations to our report:

  • Stacked Area Chart – A great way to show comparative trends, such as rat sighting per borough across time
  • Pie Chart – Used to show the proportion of rat sighting amongst boroughs
  • ArcGIS Maps – Interactive map well use to display each rat sighing within New York City’sboroughs according to its latitude and longitude coordinates
  • Slicer – Quick and dirty means to filter data, we’ll select our time scale with it
  • Multi-row Card – provide a convenient means to display textual or numerical data

Here is what we’re aiming to create:

Get Started with Power BI Final Result

Let’s get started!

Stacked Area Chart Visualization

The first visualization we’ll add is the stacked area graph.

We’ll use the stacked area chart to show how rat sightings change over time. Each layer or stack of the report will represent a different borough.

Just click on it to add it to the report.

Get Started with Power BI - Visualization and Field panels.

Once it is added, let’s set up the visualization.

Drag the Created Date field to the Axis well, the Borough to Legend, and Unique Key to Values.

You’ll end up with a chart looking like this:

Power BI Area Chart

Now grab the center gray bar and drag the chart to the right so it covers three quarters of the width of the report area.

d

Notice that you can drill into your report. If you click on the double down arrows (1), you can drill into a quarterly view. The dates have been automatically set up into a hierarchy by year, quarter, month, and day.

For our report, we don’t want to see quarterly totals. We can remove it by clicking the x next to Quarter (2).

Before we go further, experiment with the other tools shown in the visualization’s upper right:

Image 14

Pie Chart Visualization

Let's now add a pie chart visualization. Before we do so, make sure another visualization is not selected. After you have double checked:

  1. Click on the Pie Chart.
  2. Once it is added to the report, resize it so it is on the left.

    Power BI Desktop Pie Chart

  3. Once it is added, drag the Borough field to Legend, and Values field to Unique Key:

    With the pie chart created, we can now add a legend. To do this, select Format and then click Legend On.

    Power BI pie chart visualization settings

Click on the down arrow to the left of Legend to expose other formatting options: Position and Title.

I would encourage you to explore and try all the settings. You’ll find the visualizations are highly customizable.

ArcGIS Maps for Power BI

The ArcGIS Maps for Power BI are fun add to a report and explore. This visualization suits itself well when you have latitude and longitudinal data.

We’re in luck, we do!

Let’s add this visualization to our report.

Make sure no other visualization is selected. Once you have double checked, then click on the visualization and it will appear on the report canvas. Now drag it to the right of the pie chart.

Image 17

Now drag the following fields to the visualization field wells:

  • Latitude -> Latitude
  • Longitude -> Longitude
  • Borough -> Color
  • Created Date -> Time

Once this is done, you’ll notice the map displays the New York area, each dot represents a rat sighting.

Note: In order for this visualization to work, you’ll need an online connection.

Slicer

We’re going to add a slicer so we have another way to filter our data. This visualization allows us to set up a nice sliding time scale we can then use to select the time period for rate sightings.

Once you have made sure you don't have any visualization selected, click on the slicer visualization.

Image 18

Now move it so it is on the upper right of the report canvas adjacent to the area chart.

Now drag Created Date onto the Field well.

You’ll end up with a visualization like this!

Image 19

Try moving the slider to select your own time period. Notice how all the other visualization react to your selection and adjust their data. Cool huh?

Multi-row Card

The last visualization we’re going to add is a multi-row card. This is a good visualization when you want to show summary data, such as number of rat sightings for each borough.

Let's get started by selecting the Multi-row card from within the visualization panel.

Image 20

Now drag Borough and Unique Key onto the multi-row card’s Fields well.

Image 21

Now right click on Unique Key, and select Rename.

Rename Unique Key to “Rat Sightings.”

Once you set it up, your multi-row card should look like this:

Image 22

Get Started with Power BI Desktop – Wrap-up

Once you complete the steps within this article, you’ll end up with a Power BI Desktop report like the one shown below:

Image 23

Keep in mind that we have just scratched the surface! The idea of this article is to get started with Power BI, to show you that it's possible to create this report from freely available tools, and that it is easy to do so.

In future articles, we’ll dig deeper into data modeling and shaping. In fact, we’ll spend most of our time in these areas as this is where you can set yourself apart from your peers. If you’re a good modeler, then you can create great reports, and you’ll be in demand.

In the meantime, if you’re not familiar with SQL, I would encourage you to get familiar. You can do so with my Getting Started with SQL page.

The post Get Started with Power BI Desktop appeared first on Essential SQL.

This article was originally posted at https://www.essentialsql.com/get-started-power-bi-desktop

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Easy Computer Academy, LLC
United States United States
Hello my name is Kris. I’m here because I am passionate about helping non-techie people to overcome their fear of learning SQL.

I know what it is like to not know where to start or whether the time spent learning is worth the effort. That is why I am here to help you to:
- Get started in an easy to follow step-by-step manner.
- Use your time wisely so you focus on what is important to learn to get the most value from your time.
- Answer your questions. Really! Just post a comment and I’ll respond. I’m here to help.

It wasn’t long ago that I was helping a colleague with some reporting. She didn’t know where to start and soon got overwhelmed and lost as she didn’t know SQL.

I felt really bad, as she was under pressure to get some summary information to her boss, the built-in reports were falling short, and to make them better would require her to know SQL. At that time that seemed impossible! It in dawned on me, it doesn’t have to be that way.

Then I discovered a way for anyone with the desire to easily learn SQL. I worked with my co-worker, started to teach her what I learned and soon she was able to write reports and answer her boss’ questions without getting stressed or ploughing hours into manipulating data in Excel.

It hasn’t always been easy. Sometimes the information seems abstract or too conceptual. In this case I’ve found out that a visual explanation is best. I really like to use diagrams or videos to explain hard-to-grasp ideas.

Having video, pictures, and text really help to reinforce the point and enable learning.

And now I want to help you get the same results.

The first step is simple, click here http://www.essentialsql.com/get-started-with-sql-server/

Comments and Discussions

 
QuestionIt is a great article. Thanks Pin
William.Front-end25-Sep-20 2:21
William.Front-end25-Sep-20 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.