SlideShare a Scribd company logo
12.12.2015
Real-Time PowerBI:
API, Events, Hubs and Streams
Davide Mauri
dmauri@solidq.com
@mauridb
12.12.2015
12.12.2015
Thank you to our AWESOME sponsors!
12.12.2015
Davide Mauri
 Microsoft SQL Server MVP
 Works with SQL Server from 6.5, on BI from 2003
 Specialized in Data Solution Architecture, Database
Design, Performance Tuning, High-Performance Data
Warehousing, BI, Big Data
 President of UGISS (Italian SQL Server UG)
 Regular Speaker @ SQL Server events
 Consulting & Training, Mentor @ SolidQ
 E-mail: dmauri@solidq.com
 Twitter: @mauridb
 Blog: http://sqlblog.com/blogs/davide_mauri/default.aspx
12.12.2015
PowerBI
 You all know what is that, right?
12.12.2015
What about REAL TIME dashboards?
Two possible ways:
https://msdn.microsoft.com/library/mt267603.aspx
12.12.2015
First Option: PowerBI API
12.12.2015
Power BI API Workflow
https://msdn.microsoft.com/en-us/library/dn877544.aspx
12.12.2015
Power BI & Your App
 As many (all?) other Microsoft product, Power BI is a
also (mainly?) platform
 Rich set of REST API
 REST: REpresentational State Transfer (REST)
 http://www.restapitutorial.com/lessons/whatisrest.html
 Allows to interact and manage almost all Power BI
objects
 Allows the creation of automatic updated (near) real-
time dashboard
12.12.2015
Power BI & Your App
 What you can do via Power BI REST API?
 Get and create Datasets.
 Get Tables and update Table schema.
 Add Rows and Delete Rows.
 Get Groups.
 Create Import, Get Imports, Get Import from GUID, and Get
Import by File Path.
 Dashboard operations: Get Dashboards and Get Tiles.
 Power BI REST API Limitations / Throttling
 https://msdn.microsoft.com/en-US/library/dn950053.aspx
12.12.2015
Power BI & Your App
 Authentication needed
 Azure Active Directory
 Via OAuth2
 Full interactive documentation of Power BI REST
API available here:
 http://docs.powerbi.apiary.io/
12.12.2015
Demo
apiary.io
12.12.2015
Integrate Power BI With Your App
 Create a user account using Azure AD
 Add a new Application from the Azure
Management Portal
 https://manage.windowsazure.com
 Allow Application to access Power BI
 Grant Application Delegated Permissions
 Get Client ID
12.12.2015
Integrate Power BI With Your App
 Authenticate against Azure AD
 Use Microsoft.IdentityModel.Clients.ActiveDirectory Library
 From NuGet. Latest version as of today: 2.19.208020213
 Get the token
 New or Refreshed one
 Call the desired REST API specifying the Bearer Token
in the Header
 Receive the JSON answer
 JSON.NET strongly recommended 
12.12.2015
Demo
PowerBI Client Console
12.12.2015
Integration via Event Hub and Stream Analytics
 Event hubs allows to ingest *a lot* of events
 Up to millions per second
 Again, REST API
 Assembly with Object Model available on GitHub
 WindowsAzure.ServiceBus (as of today: 3.0.9)
 API for Sending events
 But also for managing Event Hubs
12.12.2015
Demo
Event Hubs Client Console
12.12.2015
Second Option: Streaming Data
12.12.2015
Lambda Architecture
 Fits in the lambda architecture vision
 Real time and “batch” analytics
 http://lambda-architecture.net/
12.12.2015
Integration via Event Hub and Stream Analytics
 Azure Stream Analytics allows you to execute
streaming queries
 Like StreamInsight or Apache Storm
 Inputs and Outputs has to ben defined
 Streaming or Reference Data supported
 Can use Event hubs as a Streaming Source
12.12.2015
Integration via Event Hub and Stream Analytics
 Use Streaming SQL to
 Transform/Aggregate Streaming data
 Send results to an output
 One of the output can be PowerBI
 This enables the creation of Real-Time Dashboard
 That are automatically refreshed
12.12.2015
Demo
Power BI & Stream Analytics
12.12.2015
Third Option: PowerBI DirectQuery
12.12.2015
Non-Streamed Data
 Another option is Azure SQL/DW + PowerBI with
Direct Query
 Stream Analytics will output to an Azure SQL Database
 100% Lambda Architecture
 Merging can be done via Views or via Power Query
 No Streaming so no automatic chart updates
 You don’t need to refresh data, since we’re using Direct
Query
12.12.2015
Questions?
12.12.2015
Thanks!!!

More Related Content

PPTX
Power BI visuals
PPT
Introduction to Power BI
PDF
GPPB2020 - Milan - Power BI dataflows deep dive
PPTX
Introduction to Power BI to make smart decisions
PPTX
Power bi
PPTX
powerbi-presentation.pptx
PPTX
Power BI - Bring your data together
PPTX
Power BI Made Simple
Power BI visuals
Introduction to Power BI
GPPB2020 - Milan - Power BI dataflows deep dive
Introduction to Power BI to make smart decisions
Power bi
powerbi-presentation.pptx
Power BI - Bring your data together
Power BI Made Simple

What's hot (20)

PDF
Power BI Governance and Development Best Practices - Presentation at #MSBIFI ...
PDF
Formulating Power BI Enterprise Strategy
PDF
Building a Dashboard in an hour with Power Pivot and Power BI
PPTX
Microsoft power bi
PPTX
Power BI Ecosystem
PPTX
Intro for Power BI
PPTX
Power bi (1)Power BI Online Training Hyderabad | power bi online training ben...
PDF
What is Power BI
PDF
Microsoft Power BI Overview
PDF
Power bi-dashboard-in-a-day-diad-mumbai-2019
PPTX
Power BI
PPTX
Introduction to Microsoft Power BI
 
PPTX
Power BI Overview
PPTX
Power bi
PPTX
Power bi software
PDF
Power BI Architecture
PPTX
Power bi introduction
PDF
Data Visualisation & Analytics with Tableau (Beginner) - by Maria Koumandraki
PPTX
Introduction to Microsoft Power BI
Power BI Governance and Development Best Practices - Presentation at #MSBIFI ...
Formulating Power BI Enterprise Strategy
Building a Dashboard in an hour with Power Pivot and Power BI
Microsoft power bi
Power BI Ecosystem
Intro for Power BI
Power bi (1)Power BI Online Training Hyderabad | power bi online training ben...
What is Power BI
Microsoft Power BI Overview
Power bi-dashboard-in-a-day-diad-mumbai-2019
Power BI
Introduction to Microsoft Power BI
 
Power BI Overview
Power bi
Power bi software
Power BI Architecture
Power bi introduction
Data Visualisation & Analytics with Tableau (Beginner) - by Maria Koumandraki
Introduction to Microsoft Power BI
Ad

Viewers also liked (19)

PPTX
Dashboarding with Microsoft: Datazen & Power BI
PDF
Bring your data to life with Power BI
PPTX
Automating the testing of your bi solution with n bi
PPTX
Datarace: IoT e Big Data (Italian)
PPTX
Iris Multi-Class Classifier with Azure ML
PPTX
SQL Server 2016 Temporal Tables
PPTX
Azure Machine Learning
PPTX
Data modeling facts
PPTX
AzureML - Creating and Using Machine Learning Solutions (Italian)
PPTX
SSIS Monitoring Deep Dive
PPTX
SQL Server 2016 What's New For Developers
PPTX
Agile Data Warehousing
PPTX
BIML: BI to the next level
PPTX
Azure Machine Learning (Italian)
PPTX
Temporal Snapshot Fact Tables
PPTX
Azure ML: from basic to integration with custom applications
PDF
Les 4 phases du management de projet
PPTX
Automatiser les tests des développements BI grâce à NBi
PPTX
Azure event hubs, Stream Analytics & Power BI (by Sam Vanhoutte)
Dashboarding with Microsoft: Datazen & Power BI
Bring your data to life with Power BI
Automating the testing of your bi solution with n bi
Datarace: IoT e Big Data (Italian)
Iris Multi-Class Classifier with Azure ML
SQL Server 2016 Temporal Tables
Azure Machine Learning
Data modeling facts
AzureML - Creating and Using Machine Learning Solutions (Italian)
SSIS Monitoring Deep Dive
SQL Server 2016 What's New For Developers
Agile Data Warehousing
BIML: BI to the next level
Azure Machine Learning (Italian)
Temporal Snapshot Fact Tables
Azure ML: from basic to integration with custom applications
Les 4 phases du management de projet
Automatiser les tests des développements BI grâce à NBi
Azure event hubs, Stream Analytics & Power BI (by Sam Vanhoutte)
Ad

Similar to Real Time Power BI (20)

PPTX
Power bi overview
PPTX
Power BI for Big Data and the New Look of Big Data Solutions
PPTX
Sql server and cloud
PPTX
PowerBIReportServer_duryan_20170919.pptx
PDF
Power BI Report Server: a Deep Dive for PASS Business Analytics Virtual Group
DOCX
Microsoft gets a life on sql and power bi
PPTX
Power BI for Developers @ SQLSaturday #420 (Paris)
PDF
Modern Business Intelligence and Advanced Analytics
PPTX
EWUG - Bridging the legacy gap in modern workplaces
PDF
Embed Interactive Reports in Your Apps
PDF
best Power Bi course now available in jalandhar
PPT
Power BI API Connectors - Best Practices for Scalable Data Connections
PDF
Enterprise Ready - What's New in Data Center
PPTX
Capture the Cloud with Azure
PPTX
Introduction to Azure Stream Analytics
PPTX
Analyzing & Visualizing Cloud Data With Power BI
PPTX
DevIntersection2015-Hybrid2015Final2.pptx
PDF
Sql server analysis_services_datasheet
PPTX
Introducing Power BI Embedded
PPTX
Azure Stream Analytics
Power bi overview
Power BI for Big Data and the New Look of Big Data Solutions
Sql server and cloud
PowerBIReportServer_duryan_20170919.pptx
Power BI Report Server: a Deep Dive for PASS Business Analytics Virtual Group
Microsoft gets a life on sql and power bi
Power BI for Developers @ SQLSaturday #420 (Paris)
Modern Business Intelligence and Advanced Analytics
EWUG - Bridging the legacy gap in modern workplaces
Embed Interactive Reports in Your Apps
best Power Bi course now available in jalandhar
Power BI API Connectors - Best Practices for Scalable Data Connections
Enterprise Ready - What's New in Data Center
Capture the Cloud with Azure
Introduction to Azure Stream Analytics
Analyzing & Visualizing Cloud Data With Power BI
DevIntersection2015-Hybrid2015Final2.pptx
Sql server analysis_services_datasheet
Introducing Power BI Embedded
Azure Stream Analytics

More from Davide Mauri (18)

PPTX
Azure serverless Full-Stack kickstart
PPTX
Agile Data Warehousing
PPTX
Dapper: the microORM that will change your life
PPTX
When indexes are not enough
PPTX
Building a Real-Time IoT monitoring application with Azure
PPTX
SSIS Monitoring Deep Dive
PPTX
Azure SQL & SQL Server 2016 JSON
PPTX
SQL Server & SQL Azure Temporal Tables - V2
PPTX
Azure Stream Analytics
PPTX
Event Hub & Azure Stream Analytics
PPTX
SQL Server 2016 JSON
PPTX
Back to the roots - SQL Server Indexing
PPTX
Schema less table & dynamic schema
PPTX
Data juice
PPTX
Data Science Overview
PPTX
Delayed durability
PPTX
Hekaton: In-memory tables
PPTX
Hardware planning & sizing for sql server
Azure serverless Full-Stack kickstart
Agile Data Warehousing
Dapper: the microORM that will change your life
When indexes are not enough
Building a Real-Time IoT monitoring application with Azure
SSIS Monitoring Deep Dive
Azure SQL & SQL Server 2016 JSON
SQL Server & SQL Azure Temporal Tables - V2
Azure Stream Analytics
Event Hub & Azure Stream Analytics
SQL Server 2016 JSON
Back to the roots - SQL Server Indexing
Schema less table & dynamic schema
Data juice
Data Science Overview
Delayed durability
Hekaton: In-memory tables
Hardware planning & sizing for sql server

Recently uploaded (20)

PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
Introduction to machine learning and Linear Models
PDF
Lecture1 pattern recognition............
PDF
Foundation of Data Science unit number two notes
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Global journeys: estimating international migration
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
A Quantitative-WPS Office.pptx research study
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Introduction to machine learning and Linear Models
Lecture1 pattern recognition............
Foundation of Data Science unit number two notes
Reliability_Chapter_ presentation 1221.5784
.pdf is not working space design for the following data for the following dat...
Acceptance and paychological effects of mandatory extra coach I classes.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
Global journeys: estimating international migration
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Business Acumen Training GuidePresentation.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Business Ppt On Nestle.pptx huunnnhhgfvu
Introduction-to-Cloud-ComputingFinal.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
STUDY DESIGN details- Lt Col Maksud (21).pptx
A Quantitative-WPS Office.pptx research study
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm

Real Time Power BI

  • 1. 12.12.2015 Real-Time PowerBI: API, Events, Hubs and Streams Davide Mauri dmauri@solidq.com @mauridb 12.12.2015
  • 2. 12.12.2015 Thank you to our AWESOME sponsors!
  • 3. 12.12.2015 Davide Mauri  Microsoft SQL Server MVP  Works with SQL Server from 6.5, on BI from 2003  Specialized in Data Solution Architecture, Database Design, Performance Tuning, High-Performance Data Warehousing, BI, Big Data  President of UGISS (Italian SQL Server UG)  Regular Speaker @ SQL Server events  Consulting & Training, Mentor @ SolidQ  E-mail: dmauri@solidq.com  Twitter: @mauridb  Blog: http://sqlblog.com/blogs/davide_mauri/default.aspx
  • 4. 12.12.2015 PowerBI  You all know what is that, right?
  • 5. 12.12.2015 What about REAL TIME dashboards? Two possible ways: https://msdn.microsoft.com/library/mt267603.aspx
  • 7. 12.12.2015 Power BI API Workflow https://msdn.microsoft.com/en-us/library/dn877544.aspx
  • 8. 12.12.2015 Power BI & Your App  As many (all?) other Microsoft product, Power BI is a also (mainly?) platform  Rich set of REST API  REST: REpresentational State Transfer (REST)  http://www.restapitutorial.com/lessons/whatisrest.html  Allows to interact and manage almost all Power BI objects  Allows the creation of automatic updated (near) real- time dashboard
  • 9. 12.12.2015 Power BI & Your App  What you can do via Power BI REST API?  Get and create Datasets.  Get Tables and update Table schema.  Add Rows and Delete Rows.  Get Groups.  Create Import, Get Imports, Get Import from GUID, and Get Import by File Path.  Dashboard operations: Get Dashboards and Get Tiles.  Power BI REST API Limitations / Throttling  https://msdn.microsoft.com/en-US/library/dn950053.aspx
  • 10. 12.12.2015 Power BI & Your App  Authentication needed  Azure Active Directory  Via OAuth2  Full interactive documentation of Power BI REST API available here:  http://docs.powerbi.apiary.io/
  • 12. 12.12.2015 Integrate Power BI With Your App  Create a user account using Azure AD  Add a new Application from the Azure Management Portal  https://manage.windowsazure.com  Allow Application to access Power BI  Grant Application Delegated Permissions  Get Client ID
  • 13. 12.12.2015 Integrate Power BI With Your App  Authenticate against Azure AD  Use Microsoft.IdentityModel.Clients.ActiveDirectory Library  From NuGet. Latest version as of today: 2.19.208020213  Get the token  New or Refreshed one  Call the desired REST API specifying the Bearer Token in the Header  Receive the JSON answer  JSON.NET strongly recommended 
  • 15. 12.12.2015 Integration via Event Hub and Stream Analytics  Event hubs allows to ingest *a lot* of events  Up to millions per second  Again, REST API  Assembly with Object Model available on GitHub  WindowsAzure.ServiceBus (as of today: 3.0.9)  API for Sending events  But also for managing Event Hubs
  • 18. 12.12.2015 Lambda Architecture  Fits in the lambda architecture vision  Real time and “batch” analytics  http://lambda-architecture.net/
  • 19. 12.12.2015 Integration via Event Hub and Stream Analytics  Azure Stream Analytics allows you to execute streaming queries  Like StreamInsight or Apache Storm  Inputs and Outputs has to ben defined  Streaming or Reference Data supported  Can use Event hubs as a Streaming Source
  • 20. 12.12.2015 Integration via Event Hub and Stream Analytics  Use Streaming SQL to  Transform/Aggregate Streaming data  Send results to an output  One of the output can be PowerBI  This enables the creation of Real-Time Dashboard  That are automatically refreshed
  • 21. 12.12.2015 Demo Power BI & Stream Analytics
  • 23. 12.12.2015 Non-Streamed Data  Another option is Azure SQL/DW + PowerBI with Direct Query  Stream Analytics will output to an Azure SQL Database  100% Lambda Architecture  Merging can be done via Views or via Power Query  No Streaming so no automatic chart updates  You don’t need to refresh data, since we’re using Direct Query

Editor's Notes

  • #13: https://msdn.microsoft.com/en-us/library/dn877542.aspx
  • #16: https://azure.microsoft.com/en-us/documentation/articles/event-hubs-programming-guide/