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

What's hot (20)

PPTX
Modern business intelligence
Michael Stephenson
 
PPTX
Power bi introduction
Bishwadeb Dey
 
PPTX
Power BI vs Tableau
Don Hyun
 
PPTX
Self-Service BI: Excel & Power BI - Microsoft ITPro AirLift - 20150122
Rui Romano
 
PDF
Formulating Power BI Enterprise Strategy
Teo Lachev
 
PPTX
BI in the Cloud - Microsoft Power BI Overview and Demo
Christopher Foot
 
PPTX
Introduction to power BI
Ramar Bose
 
PDF
Power BI Architecture
Arthur Graus
 
PPTX
Intro for Power BI
Martin X
 
PPTX
Power bi software
AboubacarAhamadaRouf
 
PPTX
vOffice365 - May 2016 - Overview of Microsoft's Power BI - Sean Wallbridge
Regroove
 
PPTX
Power bi (1)Power BI Online Training Hyderabad | power bi online training ben...
Big IT Trainings
 
PDF
Implementing and managing power bi for the business
Chris Testa-O'Neill
 
PPTX
Welcome to PowerBI and Tableau
Ashwin Dinoriya
 
PPTX
Power-BI and SharePoint
atwork
 
PDF
Introducing power bi in your company - andrea martorana tusa
Andrea Martorana Tusa
 
PPSX
Best practices to deliver data analytics to the business with power bi
Satya Shyam K Jayanty
 
PDF
Learn Power BI with Power Pivot, Power Query, Power View, Power Map and Q&A
Vishal Pawar
 
PDF
Power BI for CEO
Vishal Pawar
 
PDF
Primer on Power BI 201501
Mark Tabladillo
 
Modern business intelligence
Michael Stephenson
 
Power bi introduction
Bishwadeb Dey
 
Power BI vs Tableau
Don Hyun
 
Self-Service BI: Excel & Power BI - Microsoft ITPro AirLift - 20150122
Rui Romano
 
Formulating Power BI Enterprise Strategy
Teo Lachev
 
BI in the Cloud - Microsoft Power BI Overview and Demo
Christopher Foot
 
Introduction to power BI
Ramar Bose
 
Power BI Architecture
Arthur Graus
 
Intro for Power BI
Martin X
 
Power bi software
AboubacarAhamadaRouf
 
vOffice365 - May 2016 - Overview of Microsoft's Power BI - Sean Wallbridge
Regroove
 
Power bi (1)Power BI Online Training Hyderabad | power bi online training ben...
Big IT Trainings
 
Implementing and managing power bi for the business
Chris Testa-O'Neill
 
Welcome to PowerBI and Tableau
Ashwin Dinoriya
 
Power-BI and SharePoint
atwork
 
Introducing power bi in your company - andrea martorana tusa
Andrea Martorana Tusa
 
Best practices to deliver data analytics to the business with power bi
Satya Shyam K Jayanty
 
Learn Power BI with Power Pivot, Power Query, Power View, Power Map and Q&A
Vishal Pawar
 
Power BI for CEO
Vishal Pawar
 
Primer on Power BI 201501
Mark Tabladillo
 

Similar to Real-Time PowerBI (20)

PPTX
Power bi overview
Kiki Noviandi
 
PPTX
Power BI for Big Data and the New Look of Big Data Solutions
James Serra
 
PPTX
Sql server and cloud
Kiki Noviandi
 
PPTX
PowerBIReportServer_duryan_20170919.pptx
PrasannaKumarpanda2
 
PDF
Power BI Report Server: a Deep Dive for PASS Business Analytics Virtual Group
Luca Gualtieri
 
DOCX
Microsoft gets a life on sql and power bi
Omar Khan
 
PPTX
Power BI for Developers @ SQLSaturday #420 (Paris)
Rui Romano
 
PDF
Modern Business Intelligence and Advanced Analytics
Collective Intelligence Inc.
 
PPTX
EWUG - Bridging the legacy gap in modern workplaces
Peter Selch Dahl
 
PDF
Embed Interactive Reports in Your Apps
Teo Lachev
 
PDF
best Power Bi course now available in jalandhar
gagandeep2683
 
PPT
Power BI API Connectors - Best Practices for Scalable Data Connections
Vidicorp Ltd
 
PDF
Enterprise Ready - What's New in Data Center
Atlassian
 
PPTX
Capture the Cloud with Azure
Shahed Chowdhuri
 
PPTX
Introduction to Azure Stream Analytics
Slava Kokaev
 
PPTX
Analyzing & Visualizing Cloud Data With Power BI
Richard Harbridge
 
PPTX
DevIntersection2015-Hybrid2015Final2.pptx
Michelle Caldwell, PSM, SSGB
 
PDF
Sql server analysis_services_datasheet
Puneet Jha
 
PPTX
Introducing Power BI Embedded
Mostafa
 
PPTX
Azure Stream Analytics
Marco Parenzan
 
Power bi overview
Kiki Noviandi
 
Power BI for Big Data and the New Look of Big Data Solutions
James Serra
 
Sql server and cloud
Kiki Noviandi
 
PowerBIReportServer_duryan_20170919.pptx
PrasannaKumarpanda2
 
Power BI Report Server: a Deep Dive for PASS Business Analytics Virtual Group
Luca Gualtieri
 
Microsoft gets a life on sql and power bi
Omar Khan
 
Power BI for Developers @ SQLSaturday #420 (Paris)
Rui Romano
 
Modern Business Intelligence and Advanced Analytics
Collective Intelligence Inc.
 
EWUG - Bridging the legacy gap in modern workplaces
Peter Selch Dahl
 
Embed Interactive Reports in Your Apps
Teo Lachev
 
best Power Bi course now available in jalandhar
gagandeep2683
 
Power BI API Connectors - Best Practices for Scalable Data Connections
Vidicorp Ltd
 
Enterprise Ready - What's New in Data Center
Atlassian
 
Capture the Cloud with Azure
Shahed Chowdhuri
 
Introduction to Azure Stream Analytics
Slava Kokaev
 
Analyzing & Visualizing Cloud Data With Power BI
Richard Harbridge
 
DevIntersection2015-Hybrid2015Final2.pptx
Michelle Caldwell, PSM, SSGB
 
Sql server analysis_services_datasheet
Puneet Jha
 
Introducing Power BI Embedded
Mostafa
 
Azure Stream Analytics
Marco Parenzan
 
Ad

Recently uploaded (20)

PPTX
Probability systematic sampling methods.pptx
PrakashRajput19
 
PPTX
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
PPTX
Customer Segmentation: Seeing the Trees and the Forest Simultaneously
Sione Palu
 
PPTX
short term internship project on Data visualization
JMJCollegeComputerde
 
PPTX
Insurance-Analytics-Branch-Dashboard (1).pptx
trivenisapate02
 
PDF
Classifcation using Machine Learning and deep learning
bhaveshagrawal35
 
PPT
introdution to python with a very little difficulty
HUZAIFABINABDULLAH
 
PPTX
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
PPTX
Multiscale Segmentation of Survey Respondents: Seeing the Trees and the Fores...
Sione Palu
 
PPT
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
PDF
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
SUMMER INTERNSHIP REPORT[1] (AutoRecovered) (6) (1).pdf
pandeydiksha814
 
PDF
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays
 
PDF
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PPTX
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
PDF
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
PPTX
M1-T1.pptxM1-T1.pptxM1-T1.pptxM1-T1.pptx
teodoroferiarevanojr
 
PDF
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
PPT
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
Probability systematic sampling methods.pptx
PrakashRajput19
 
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
Customer Segmentation: Seeing the Trees and the Forest Simultaneously
Sione Palu
 
short term internship project on Data visualization
JMJCollegeComputerde
 
Insurance-Analytics-Branch-Dashboard (1).pptx
trivenisapate02
 
Classifcation using Machine Learning and deep learning
bhaveshagrawal35
 
introdution to python with a very little difficulty
HUZAIFABINABDULLAH
 
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
Multiscale Segmentation of Survey Respondents: Seeing the Trees and the Fores...
Sione Palu
 
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
SUMMER INTERNSHIP REPORT[1] (AutoRecovered) (6) (1).pdf
pandeydiksha814
 
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays
 
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
M1-T1.pptxM1-T1.pptxM1-T1.pptxM1-T1.pptx
teodoroferiarevanojr
 
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
Ad

Real-Time PowerBI

  • 1. 12.12.2015 Real-Time PowerBI: API, Events, Hubs and Streams Davide Mauri [email protected] @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: [email protected]  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/