Creating And Publishing Interactive Dashboards With Excel Power ...

100
CREATING AND PUBLISHING INTERACTIVE DASHBOARDS WITH EXCEL POWER PIVOT, POWER BI, AND SHAREPOINT ONLINE CAIR 2016 Annual Conference - Workshop Ken Nelson MD, MS Loma Linda University [email protected]

Transcript of Creating And Publishing Interactive Dashboards With Excel Power ...

Page 1: Creating And Publishing Interactive Dashboards With Excel Power ...

CREATING AND PUBLISHING INTERACTIVE DASHBOARDS WITH EXCEL POWER PIVOT, POWER BI, AND SHAREPOINT ONLINE CAIR 2016 Annual Conference - Workshop

Ken Nelson MD, MSLoma Linda [email protected]

Page 2: Creating And Publishing Interactive Dashboards With Excel Power ...

This is a Workshop

• Import data to a data model in Excel

• Create a dashboard in Excel Power Pivot

• Export to SharePoint

• Import a data model into Power BI

• Create a dashboard in Power BI

• Publish Power BI to a URL that anyone can view

Our Task Today

Page 3: Creating And Publishing Interactive Dashboards With Excel Power ...

Everything is Free

• Wouldn’t that be awesome?

• Actually at this workshop the software is.

• Really, everything you see being used here today (for an educational institution) is FREE!!!

Page 4: Creating And Publishing Interactive Dashboards With Excel Power ...

Content for this Workshop

Data files Dataset Census.xlsx

Dataset Demographics.xlsx

Step by step guide – CAIR2016.pdf

http://cair2016.lluh.us

Page 5: Creating And Publishing Interactive Dashboards With Excel Power ...

Dashboards being built today are basic but provide

the foundation for you to develop complex reports

based on your data.

Page 6: Creating And Publishing Interactive Dashboards With Excel Power ...

Be Creative

Page 7: Creating And Publishing Interactive Dashboards With Excel Power ...

Sample - Program Review Dashboard

Page 8: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 9: Creating And Publishing Interactive Dashboards With Excel Power ...

Sample - Dashboards with Hyperlinked Tiles

Page 10: Creating And Publishing Interactive Dashboards With Excel Power ...

Sample - Financial Aid – Funds are Purpose Searchable

Page 11: Creating And Publishing Interactive Dashboards With Excel Power ...

Sample - Application Metrics Dashboard

Page 12: Creating And Publishing Interactive Dashboards With Excel Power ...

Today’s Dashboard - Excel Power Pivot Example

Page 13: Creating And Publishing Interactive Dashboards With Excel Power ...

Today’s Dashboard - Power BI Example

Page 14: Creating And Publishing Interactive Dashboards With Excel Power ...

Based on an Underlying Data Model

Page 15: Creating And Publishing Interactive Dashboards With Excel Power ...

Let’s Start by Opening Excel

Make sure Power Pivot has been enabled!

Page 16: Creating And Publishing Interactive Dashboards With Excel Power ...

Import Data

Multiple data sources can be imported.

Commonly encountered are: • SQL• Excel• Text

Page 17: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 18: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 19: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 20: Creating And Publishing Interactive Dashboards With Excel Power ...

We have successfully imported the data file

Page 21: Creating And Publishing Interactive Dashboards With Excel Power ...

Repeat Steps to Import the 2nd Data File

Page 22: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 23: Creating And Publishing Interactive Dashboards With Excel Power ...

We have now imported two datasets:• Census• Demographics

Page 24: Creating And Publishing Interactive Dashboards With Excel Power ...

We can join these two tables on a column. One column needs to be a unique list.

Table Joins

Page 25: Creating And Publishing Interactive Dashboards With Excel Power ...

Drag one column title to the other

Page 26: Creating And Publishing Interactive Dashboards With Excel Power ...

The indicator tells us we have established a one to many relationship, the arrow shows the direction.

Page 27: Creating And Publishing Interactive Dashboards With Excel Power ...

Let’s add a column to our census table based on a column from the demographics table

Adding a New Column

Introducing Data Analysis Expressions – DAX

Powerful language for Power Pivot and Power BI

Page 28: Creating And Publishing Interactive Dashboards With Excel Power ...

When we start to type suggestions are displayed

Page 29: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 30: Creating And Publishing Interactive Dashboards With Excel Power ...

Complete DAX Formula

=RELATED(Demographics[Race_Ethnicity])

Page 31: Creating And Publishing Interactive Dashboards With Excel Power ...

Our New Column Has Been Created

Page 32: Creating And Publishing Interactive Dashboards With Excel Power ...

Lookup Table Example

Lookup tables support requests like listing students in a particular region while retaining multivariate filtered charts.

Use a slicer, create the list. This can then be used in another report keyed on zip code to filter students.

Page 33: Creating And Publishing Interactive Dashboards With Excel Power ...

Building the Dashboard

Page 34: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 35: Creating And Publishing Interactive Dashboards With Excel Power ...

Selecting the Location for Charts

Page 36: Creating And Publishing Interactive Dashboards With Excel Power ...

Selecting Content for Chart

Page 37: Creating And Publishing Interactive Dashboards With Excel Power ...

We will drag Student ID to Values and Academic

Year to Axis

Page 38: Creating And Publishing Interactive Dashboards With Excel Power ...

Sum doesn’t work for our purpose, we

want a distinct count of

student ID

Page 39: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 40: Creating And Publishing Interactive Dashboards With Excel Power ...

For this display it would be nice to use a line chart for showing the trend instead of a bar chart

Page 41: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 42: Creating And Publishing Interactive Dashboards With Excel Power ...

We can also add a trendline

Page 43: Creating And Publishing Interactive Dashboards With Excel Power ...

Formatting the Trendline

Page 44: Creating And Publishing Interactive Dashboards With Excel Power ...

The trendline can be formatted to look different from the data line

Page 45: Creating And Publishing Interactive Dashboards With Excel Power ...

The trendline can forecast forward on periods. You also have the option to add the equation and R-squared value.

Page 46: Creating And Publishing Interactive Dashboards With Excel Power ...

Chart with Trendline and Default Range

Page 47: Creating And Publishing Interactive Dashboards With Excel Power ...

Formatting axis by selecting minimum and maximum ranges

Page 48: Creating And Publishing Interactive Dashboards With Excel Power ...

The Design Menu Offers Multiple Choices for Chart Style

Page 49: Creating And Publishing Interactive Dashboards With Excel Power ...

By Highlighting the Title We Can Add Our Own Text

Page 50: Creating And Publishing Interactive Dashboards With Excel Power ...

Depending on preference charts can look cleaner by removing field buttons.

Page 51: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding Filters “Slicers”

Page 52: Creating And Publishing Interactive Dashboards With Excel Power ...

When adding a filter you should select

which visualizations are to be impacted

by the filter.

This is selected under “Report

Connections” as shown on left.

Page 53: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding the Enrollment Bar Chart

By adding academic year to the axis it allows the year to show when selecting different years. Be sure to set student count to distinct.

Page 54: Creating And Publishing Interactive Dashboards With Excel Power ...

Vary Colors in the Bar Chart

Page 55: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding the Pie Chart for Academic Level

Page 56: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding the Race/Ethnicity Chart

Page 57: Creating And Publishing Interactive Dashboards With Excel Power ...

Dashboard should now look something like this

Page 58: Creating And Publishing Interactive Dashboards With Excel Power ...

You can also save your file to a local folder.

Uploading to SharePoint Location depends on your Office 365 configuration

Page 59: Creating And Publishing Interactive Dashboards With Excel Power ...

Identifying the URL for your SharePoint file is easy Click on “Save As” and copy the address in the bar

Page 60: Creating And Publishing Interactive Dashboards With Excel Power ...

Excel Services Running in SharePoint

Page 61: Creating And Publishing Interactive Dashboards With Excel Power ...

Building a Dashboard in Power BI Desktop

Page 62: Creating And Publishing Interactive Dashboards With Excel Power ...

Build in the desktop app – FREE – publish online - FREE

Page 63: Creating And Publishing Interactive Dashboards With Excel Power ...

Locate your Excel file – this is what I named mine:

Page 64: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 65: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 66: Creating And Publishing Interactive Dashboards With Excel Power ...

Here’s our data model from Excel

Remember the DAX formula we wrote in Power Pivot – it’s here too!

Page 67: Creating And Publishing Interactive Dashboards With Excel Power ...

The joins are still intact as well.

Even the familiar indicator is

present.

Page 68: Creating And Publishing Interactive Dashboards With Excel Power ...

Our canvas where we will start building our Power BI Dashboard

WAIT! I liked my Power Pivot Dashboard – don’t make me start over!

Report/Dashboard Tables Joins

These are the available visualizations. You can also dl custom ones as well.

Page 69: Creating And Publishing Interactive Dashboards With Excel Power ...

No problem! Export from Excel to Power BI

Slicers still work!

Page 70: Creating And Publishing Interactive Dashboards With Excel Power ...

By using Power BI you will have access to a wide variety of interactive visualizations

and more continue to be added

Page 71: Creating And Publishing Interactive Dashboards With Excel Power ...

We will do just as we did in Excel – adding the Academic Year to the Axis and a distinct count of Student ID to the Values

Creating the Line Chart – select the line chart icon

Page 72: Creating And Publishing Interactive Dashboards With Excel Power ...

Setting Range on the Chart

Page 73: Creating And Publishing Interactive Dashboards With Excel Power ...

Tip to get the

visualization looking

right

Page 74: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding Enrollment Chart

Page 75: Creating And Publishing Interactive Dashboards With Excel Power ...

Just drag columns

to the axis to enable drill down

Overall values then drill down to each school. We could continue to do this for as deep as our dataset allows.

Page 76: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding Race/Ethnicity Chart

Page 77: Creating And Publishing Interactive Dashboards With Excel Power ...

Academic Level Pie Chart

Page 78: Creating And Publishing Interactive Dashboards With Excel Power ...

DAX to do this is:Location = [Zip Code] & "," & [Citizenship]

Adding a Citizenship Map

Page 79: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding Filters

Page 80: Creating And Publishing Interactive Dashboards With Excel Power ...

Configuring Filter Interactions

Page 81: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding a New Column – Concatenate and Add Text if Desired

Page 82: Creating And Publishing Interactive Dashboards With Excel Power ...

DAX Statement to Concatenate – Easy as “&”

Page 83: Creating And Publishing Interactive Dashboards With Excel Power ...

Adding a Title

Color choice is in Hex – use color picker in Excel to see RGB and use an online converter to get Hex equivalent

Page 84: Creating And Publishing Interactive Dashboards With Excel Power ...

Bringing it All Together

We’ve added some titles – still more to add below

Page 85: Creating And Publishing Interactive Dashboards With Excel Power ...

Formatting Alignment

Page 86: Creating And Publishing Interactive Dashboards With Excel Power ...

Ready to Publish

Page 87: Creating And Publishing Interactive Dashboards With Excel Power ...

Select File, Export, Publish to Power BI

Page 88: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 89: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 90: Creating And Publishing Interactive Dashboards With Excel Power ...

Success – Now We Need a URL

Page 91: Creating And Publishing Interactive Dashboards With Excel Power ...

Publish to Web – URL or Embed Code

Page 92: Creating And Publishing Interactive Dashboards With Excel Power ...

MAJOR CAUTION

Page 93: Creating And Publishing Interactive Dashboards With Excel Power ...

URL and Embed Code

Page 94: Creating And Publishing Interactive Dashboards With Excel Power ...

https://app.powerbi.com/view?r=ey

JrIjoiN2U3ODNmYjQtZjgyYS00MmY1L

WExMDgtNjg1MTU0MjM2NWQ2IiwidC

I6ImYwNjdhMGY4LWIyNzQtNGE5Ni1h

MTcwLTJlY2JhNmIxYmI1YSIsImMiOjZ9

URL for the Dashboard

Page 95: Creating And Publishing Interactive Dashboards With Excel Power ...

• Filter controls

• Drill Down

• Titles – can be content sensitive

• Import Custom Visuals

• Experiment / Share / Join a user group

• Learn some Data Analysis Expressions (DAX)

• Use R? Power BI has built-in support

Tips:

Page 96: Creating And Publishing Interactive Dashboards With Excel Power ...

When we use CALCULATE in an expression it allows us to override a filter.In our example we will use it to create a percent of students in an age group.

Students filtered by Age Group in a given context, i.e., Year

Using CALCULATE to capture all students in the filtered context - Year

Calculate Age Group = CALCULATE([Distinct Count of Student ID],ALL(Census[Age Group]))

DAX – CALCULATE

Page 97: Creating And Publishing Interactive Dashboards With Excel Power ...

Calculate Age Group = CALCULATE([Distinct Count of Student ID],ALL(Census[Age Group]))

Matrix

Percent of Students =

DIVIDE([Students],[Calculate Age Group])

Students = DISTINCTCOUNT(Census[Student ID])

Page 98: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 99: Creating And Publishing Interactive Dashboards With Excel Power ...
Page 100: Creating And Publishing Interactive Dashboards With Excel Power ...

THANKS FOR ATTENDING!

Contact Info:

Ken Nelson

[email protected]