This is the code repository for Extending Power BI with Python and R, published by Packt.
Ingest, transform, enrich, and visualize data using the power of analytical languages
Python and R allow you to extend Power BI capabilities to simplify ingestion and transformation activities, enhance dashboards, and highlight insights. With this book, you'll be able to make your artifacts far more interesting and rich in insights using analytical languages.
You'll start by learning how to configure your Power BI environment to use your Python and R scripts. The book then explores data ingestion and data transformation extensions, and advances to focus on data augmentation and data visualization. You'll understand how to import data from external sources and transform them using complex algorithms. The book helps you implement personal data de-identification methods such as pseudonymization, anonymization, and masking in Power BI. You'll be able to call external APIs to enrich your data much more quickly using Python programming and R programming. Later, you'll learn advanced Python and R techniques to perform in-depth analysis and extract valuable information using statistics and machine learning. You'll also understand the main statistical features of datasets by plotting multiple visual graphs in the process of creating a machine learning model.
By the end of this book, you’ll be able to enrich your Power BI data models and visualizations using complex algorithms in Python and R.
This book covers the following exciting features:
- Discover best practices for using Python and R in Power BI products
- Use Python and R to perform complex data manipulations in Power BI
- Apply data anonymization and data pseudonymization in Power BI
- Log data and load large datasets in Power BI using Python and R
- Enrich your Power BI dashboards using external APIs and machine learning models
- Extract insights from your data using linear optimization and other algorithms
- Handle outliers and missing values for multivariate and time-series data
- Create any visualization, as complex as you want, using R scripts
If you feel this book is for you, get your copy today!
All of the code is organized into folders.
The code will look like the following:
tbl <- src_tbl %>%
mutate(
across(categorical_vars, as.factor),
across(integer_vars, as.integer)
) %>%
select( -all_of(vars_to_drop) )
Following is what you need for this book: This book is for business analysts, business intelligence professionals, and data scientists who already use Microsoft Power BI and want to add more value to their analysis using Python and R. Working knowledge of Power BI is required to make the most of this book. Basic knowledge of Python and R will also be helpful.
With the following software and hardware list you can run all code files present in the book (Chapter 1-16).
Chapter | Software required | OS required |
---|---|---|
1-16 | Power BI Desktop and Power BI Gateway | Windows(Any) |
1-16 | Rstudio and VS Code | Windows(Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Luca Zavarella is certified as an Azure Data Scientist Associate and is also a Microsoft MVP for artificial intelligence. He graduated in computer engineering at the Faculty of Engineering of L'Aquila University, and he has more than 10 years of experience working on the Microsoft Data Platform. He started his journey as a T-SQL developer on SQL Server 2000 and 2005. He then focused on all the Microsoft Business Intelligence stack (SSIS, SSAS, SSRS), deepening data warehousing techniques. Recently, he has been dedicating himself to the world of advanced analytics and data science. He also graduated with honors in classical piano at the Conservatory "Alfredo Casella" in L'Aquila.