SlideShare a Scribd company logo
R in Power BI
Eric Bragas, Jr.
DesignMind BI Consultant
Trainer for Power BI, Master Data Management, other BI
topics
◦ SQL Saturday
◦ Power BI Dashboard In A Day
◦ In-depth MDM
Passionate about learning, design, and data
Agenda
What is R in Power BI?
When to use R in Power BI?
How to use R in Power BI?
◦ Setup
◦ Data Source
◦ Script Visual
◦ Transformation
R-powered Custom Visuals
Other
◦ External IDEs
◦ Supported Packages in PBI Service
What is R?
“R is a language and environment for statistical computing and graphics”
Capabilities include
◦ Statistical Analysis
◦ Modeling and
◦ Data Visualization
Wiki: https://en.wikipedia.org/wiki/R_(programming_language)
What is Power BI?
Microsoft’s Self-Service BI application
Capabilities include
◦ Connecting to a variety of data sources
◦ Data transformation through PowerQuery
◦ Data modeling
◦ Data Analysis via DAX
Power BI: https://powerbi.microsoft.com/en-us/
What is R in
Power BI
An intersection of two tools
Power BI provides multiple touch points for R
◦ Allows R scripts as data sources
◦ Data transformations as part of Power Query steps
◦ R visualizations
◦ R-powered custom visualizations
Unlimited R script options when working locally
Limited support for reports published to Power BI Service
Does not include/require Microsoft R Server
When to use R in Power BI
No dedicated modeling capability (read: small R
implementations)
Robust visualizations; beyond what Power BI can provide
◦ Augment Power BI, don’t try to replace it
Data manipulation beyond DAX capabilities
Integrating R modeling capabilities into PowerQuery
How to Use R
in PBI
Setup
Install R - https://cran.r-project.org/
(optional) Install R IDE
◦ R Studio
◦ R Tools for Visual Studio (RTVS)
Install R Packages
Power BI settings
◦ Options > R Scripting
R Script Data Source
Reference all dependent packages
Only data frames are imported (not vectors)
◦ All data frames available in navigator
NA is translated to NULL
30 minute time out
What other use cases do you have?
DEMO
R Script Visualization
Augment Power BI visualizations using R
◦ base
◦ ggplot2
◦ ggmap
◦ etc.
Rendered to default R device
◦ Interactive and animated visuals not supported
DEMO
R Script Transformation
Allow you to manipulate data via Query Editor steps
Can be used to
◦ clean data
◦ generate additional values ie. model results
◦ run any R script ie. write.csv()
Executes as part of the query, so only when the data set is refreshed
DEMO
Other Resources
External IDEs
◦ R Studio
◦ R Tools for Visual Studio
Supported Packages in the Power BI Service
◦ List of supported packages
◦ Request additional packages
Additional Resources
◦ Download R from CRAN (Comprehensive R Archive Network) or MRAN (Microsoft R Application Network)
◦ Power BI visuals in R
◦ Additional visualizations

More Related Content

PPTX
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
PPTX
Intro to Azure Data Factory v1
PPTX
Azure Data Factory for Azure Data Week
PDF
Moving to the cloud; PaaS, IaaS or Managed Instance
PPTX
Azure Data Factory for Redmond SQL PASS UG Sept 2018
PPTX
Analyzing StackExchange data with Azure Data Lake
PPTX
Tokyo azure meetup #2 big data made easy
PPTX
Microsoft Azure BI Solutions in the Cloud
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
Intro to Azure Data Factory v1
Azure Data Factory for Azure Data Week
Moving to the cloud; PaaS, IaaS or Managed Instance
Azure Data Factory for Redmond SQL PASS UG Sept 2018
Analyzing StackExchange data with Azure Data Lake
Tokyo azure meetup #2 big data made easy
Microsoft Azure BI Solutions in the Cloud

What's hot (20)

PDF
Deliver Your Modern Data Warehouse (Microsoft Tech Summit Oslo 2018)
PDF
DBP-010_Using Azure Data Services for Modern Data Applications
PPTX
Microsoft Azure Data Factory Hands-On Lab Overview Slides
PPTX
PaaSport to Paradise: Lifting & Shifting with Azure SQL Database/Managed Inst...
PPTX
Integration Monday - Analysing StackExchange data with Azure Data Lake
PPTX
Vitalii Bondarenko "Machine Learning on Fast Data"
PDF
Azure SQL Data Warehouse
PDF
Part 3 - Modern Data Warehouse with Azure Synapse
PPTX
Develop scalable analytical solutions with Azure Data Factory & Azure SQL Dat...
PDF
10 Things Learned Releasing Databricks Enterprise Wide
PPTX
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
PPTX
Microsoft Build 2018 Analytic Solutions with Azure Data Factory and Azure SQL...
PPTX
Configuration in azure done right
PPTX
Data Engineering Roles
PDF
Pipelines and Packages: Introduction to Azure Data Factory (Techorama NL 2019)
PPTX
ETL in the Cloud With Microsoft Azure
PDF
Northwestern Mutual Journey – Transform BI Space to Cloud
PDF
Personalization Journey: From Single Node to Cloud Streaming
PPTX
Next Generation Data Integration with Azure Data Factory
PDF
ADF Mapping Data Flow Private Preview Migration
Deliver Your Modern Data Warehouse (Microsoft Tech Summit Oslo 2018)
DBP-010_Using Azure Data Services for Modern Data Applications
Microsoft Azure Data Factory Hands-On Lab Overview Slides
PaaSport to Paradise: Lifting & Shifting with Azure SQL Database/Managed Inst...
Integration Monday - Analysing StackExchange data with Azure Data Lake
Vitalii Bondarenko "Machine Learning on Fast Data"
Azure SQL Data Warehouse
Part 3 - Modern Data Warehouse with Azure Synapse
Develop scalable analytical solutions with Azure Data Factory & Azure SQL Dat...
10 Things Learned Releasing Databricks Enterprise Wide
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
Microsoft Build 2018 Analytic Solutions with Azure Data Factory and Azure SQL...
Configuration in azure done right
Data Engineering Roles
Pipelines and Packages: Introduction to Azure Data Factory (Techorama NL 2019)
ETL in the Cloud With Microsoft Azure
Northwestern Mutual Journey – Transform BI Space to Cloud
Personalization Journey: From Single Node to Cloud Streaming
Next Generation Data Integration with Azure Data Factory
ADF Mapping Data Flow Private Preview Migration
Ad

Similar to R in Power BI (20)

PDF
Bluegranite AA Webinar FINAL 28JUN16
PDF
Untitled
PDF
Predictive Analysis using Microsoft SQL Server R Services
PPTX
Extending Power BI Functionality with R
PPTX
Using R in power BI
PPTX
GPPB Natural Language PowerBI
PDF
Machine learning services with SQL Server 2017
PDF
General Presentation - DIAD and AIAD, Dashboard and Apps
PDF
How R Developers Can Build and Share Data and AI Applications that Scale with...
PPTX
Power BI reports and dashboards for Microsoft Project Server
PPTX
Power BI Training
PPTX
PowerBIReportServer_duryan_20170919.pptx
PDF
Modern Business Intelligence and Advanced Analytics
PDF
Power BI Report Server Enterprise Architecture, Tools to Publish reports and ...
PDF
Simplifying AI integration on Apache Spark
PDF
Embed Interactive Reports in Your Apps
PDF
Bake-off Power BI
PDF
Portable Scalable Data Visualization Techniques for Apache Spark and Python N...
PDF
[Cloud OnAir] Talks by DevRel Vol.4 データ管理とデータ ベース 2020年8月27日 放送
PPTX
PowerBIvsTableau.pptx
Bluegranite AA Webinar FINAL 28JUN16
Untitled
Predictive Analysis using Microsoft SQL Server R Services
Extending Power BI Functionality with R
Using R in power BI
GPPB Natural Language PowerBI
Machine learning services with SQL Server 2017
General Presentation - DIAD and AIAD, Dashboard and Apps
How R Developers Can Build and Share Data and AI Applications that Scale with...
Power BI reports and dashboards for Microsoft Project Server
Power BI Training
PowerBIReportServer_duryan_20170919.pptx
Modern Business Intelligence and Advanced Analytics
Power BI Report Server Enterprise Architecture, Tools to Publish reports and ...
Simplifying AI integration on Apache Spark
Embed Interactive Reports in Your Apps
Bake-off Power BI
Portable Scalable Data Visualization Techniques for Apache Spark and Python N...
[Cloud OnAir] Talks by DevRel Vol.4 データ管理とデータ ベース 2020年8月27日 放送
PowerBIvsTableau.pptx
Ad

Recently uploaded (20)

PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Launch Your Data Science Career in Kochi – 2025
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PDF
Lecture1 pattern recognition............
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPT
Quality review (1)_presentation of this 21
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
Global journeys: estimating international migration
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PDF
Foundation of Data Science unit number two notes
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Reliability_Chapter_ presentation 1221.5784
Launch Your Data Science Career in Kochi – 2025
oil_refinery_comprehensive_20250804084928 (1).pptx
Lecture1 pattern recognition............
Miokarditis (Inflamasi pada Otot Jantung)
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Quality review (1)_presentation of this 21
.pdf is not working space design for the following data for the following dat...
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Business Acumen Training GuidePresentation.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Global journeys: estimating international migration
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Database Infoormation System (DBIS).pptx
Supervised vs unsupervised machine learning algorithms
Foundation of Data Science unit number two notes
climate analysis of Dhaka ,Banglades.pptx
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
Acceptance and paychological effects of mandatory extra coach I classes.pptx

R in Power BI

  • 2. Eric Bragas, Jr. DesignMind BI Consultant Trainer for Power BI, Master Data Management, other BI topics ◦ SQL Saturday ◦ Power BI Dashboard In A Day ◦ In-depth MDM Passionate about learning, design, and data
  • 3. Agenda What is R in Power BI? When to use R in Power BI? How to use R in Power BI? ◦ Setup ◦ Data Source ◦ Script Visual ◦ Transformation R-powered Custom Visuals Other ◦ External IDEs ◦ Supported Packages in PBI Service
  • 4. What is R? “R is a language and environment for statistical computing and graphics” Capabilities include ◦ Statistical Analysis ◦ Modeling and ◦ Data Visualization Wiki: https://en.wikipedia.org/wiki/R_(programming_language)
  • 5. What is Power BI? Microsoft’s Self-Service BI application Capabilities include ◦ Connecting to a variety of data sources ◦ Data transformation through PowerQuery ◦ Data modeling ◦ Data Analysis via DAX Power BI: https://powerbi.microsoft.com/en-us/
  • 6. What is R in Power BI An intersection of two tools Power BI provides multiple touch points for R ◦ Allows R scripts as data sources ◦ Data transformations as part of Power Query steps ◦ R visualizations ◦ R-powered custom visualizations Unlimited R script options when working locally Limited support for reports published to Power BI Service Does not include/require Microsoft R Server
  • 7. When to use R in Power BI No dedicated modeling capability (read: small R implementations) Robust visualizations; beyond what Power BI can provide ◦ Augment Power BI, don’t try to replace it Data manipulation beyond DAX capabilities Integrating R modeling capabilities into PowerQuery
  • 8. How to Use R in PBI
  • 9. Setup Install R - https://cran.r-project.org/ (optional) Install R IDE ◦ R Studio ◦ R Tools for Visual Studio (RTVS) Install R Packages Power BI settings ◦ Options > R Scripting
  • 10. R Script Data Source Reference all dependent packages Only data frames are imported (not vectors) ◦ All data frames available in navigator NA is translated to NULL 30 minute time out What other use cases do you have?
  • 11. DEMO
  • 12. R Script Visualization Augment Power BI visualizations using R ◦ base ◦ ggplot2 ◦ ggmap ◦ etc. Rendered to default R device ◦ Interactive and animated visuals not supported
  • 13. DEMO
  • 14. R Script Transformation Allow you to manipulate data via Query Editor steps Can be used to ◦ clean data ◦ generate additional values ie. model results ◦ run any R script ie. write.csv() Executes as part of the query, so only when the data set is refreshed
  • 15. DEMO
  • 16. Other Resources External IDEs ◦ R Studio ◦ R Tools for Visual Studio Supported Packages in the Power BI Service ◦ List of supported packages ◦ Request additional packages Additional Resources ◦ Download R from CRAN (Comprehensive R Archive Network) or MRAN (Microsoft R Application Network) ◦ Power BI visuals in R ◦ Additional visualizations