chris o'brien - intro to power bi for office 365 devs (march 2017)

22
Introduction to Power BI for Office 365 devs Chris O’Brien - MVP

Upload: chris-obrien

Post on 14-Apr-2017

1.460 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Introduction to Power BI for Office 365 devsChris O’Brien - MVP

Page 2: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

A quick guide to getting started with Power BI….

…from someone else who isn’t an expert either

Page 3: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Why consider Power BI over custom dev?You want easy visualisations (charts,

maps etc.)

You want easy sorting/filtering

You have drilldown or parent/child scenarios

You want to support mobile

Your client has E5 or Power BI Pro licensesYour data is in SQL, SP lists, or a file (e.g. Excel, XML etc.)

Easier than with D3 for example..

Page 4: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Getting startedMake sure you get the right bitsPower BI *Desktop* app to build dashboards – NOT Power BI app in Windows store

- https://powerbi.microsoft.com/en-us/desktop

Consider licensing, even for your “dev environment”You either need:

- E5..or..

- An individual Power BI Pro license to be added to the tenant

Page 5: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Power BI Desktop – what it looks like

Page 6: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Connecting to dataEasy optionsAzure SQL DatabaseSharePoint listsStatic file – Excel/CSV/XML/JSON etc.OData feed

Bit more involvedOn-premises SQL – need to install “gateway” component on server in network

Page 7: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

How is the data referenced?1. Generally “brought into model”Periodic refresh if live data underneathRefresh button

2. Direct QueryCan connect “live” to:

- Azure SQL- on-prem database

Page 8: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Working with the data..Tables and columns now detected

Can use “Edit Queries” button to bring in extra columns/change detected relationships etc.This brings up Query Editor

Page 9: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Key process1. Use “New Visual”

button to add a shape

2. Select the typePie chart, donut chart etc.

3. Bind it to dataField in the “Values” section needs to be something which identifies the row e.g. the primary key

Page 10: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Result:“Jobs by zone”Next steps:

- Rename label- Decide if this should be a filter

(for other controls)

Page 11: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Working with filters

Drag fields to the “Filters” section of the control to make it act as a filter

Page 12: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

More on filtersUse the Edit Interactions button to control which other visualizations should react

“Filter” or “do nothing” buttons will appear on other filterable visualizations:

Page 13: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Common patternUse filter visualizations with Table visualizationSelect item in chart –> filters items in table

Page 14: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

SlicerThe Slicer is a special kind of visualization – it acts as a filter depending on data type:

Int: Date/time:

Page 15: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

GotchasCannot select item in (the standard) table This would be useful to drill down to a “Details” view of item

Slicers can be inflexible Lack of image support

CUSTOM VISUALS TO THE RESCUE!

Page 16: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Recommended custom visualsInvestigate to see if they meet your requirements

Original Microsoft control

Custom controls

Table Grid (by MAQ Software)Slicer Chiclet slicer

Attribute slicerTimeline slicer

Obtain from https://store.office.com/

Page 17: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Publishing

Page 18: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

PublishingTypically will publish to an Office 365 Group..or use “My Workspace” when in dev/testing..

Page 19: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Other publishing optionsSPFX web partStill requires E5/Power BI Pro license for users!

User credentials are used to connect to report (i.e. user must have perms to page + report)..

..but connection to underlying data can be other creds..

Page 20: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Other publishing optionsPublish to webDone in web client – gives you a anonymous URL and an embed link

Suitable only if the data can be accessible anonymously!

Page 21: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Developing for Power BI – main optionsPull tiles/dashboards/reports into custom app

JS “embed report” option (but now also have SPFx web part)

Develop custom visuals

See https://powerbi.microsoft.com/en-us/developers/

Page 22: Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)

Thank you!Any questions?

www.sharepointnutsandbolts.com@ChrisO_Brien