Skip main navigation

Add An R Or Python Visual


Add An R Or Python Visual

If you use the R or Python programming language, you can use them to visualise your data within Power BI Desktop. Power BI Desktop has an out-of-the-box visualisation option for both R and Python that you can access on the Visualisations pane, and the process for creating these visuals is almost the same.

Create An R Visual

Before you create the R visual, you must install R on your local computer so that Power BI Desktop can run R scripts. You can download and install R for free from many locations, including the Microsoft R Application Network and the CRAN Repository .

When you’ve verified your R installation, you can create the R visual. Select the R visual icon in the Visualizations pane and then select Enable on the window that displays.

Create a Python Visual

No prerequisites exist for creating a Python visual, so you can start right away in Power BI Desktop by selecting the Python visual icon in the Visualisations pane. Select Enable on the window that displays, and then you’ll then see a placeholder Python visual image on the report canvas, with the Python script editor underneath.

You can continue creating a Python visual in the same way as you did when creating the R visual. In summary, you would select the fields, write the Python script, and then select Run from the Python script editor title bar.

Import An R or Python Visual

To import an R or Python visual from AppSource, in the Visualisations pane, select the Get more visuals icon and then select Get more visuals. On the window that displays, locate and select the R or Python visual that you want to import and then select Add.

This article is from the free online

Microsoft Power BI: Advanced Data Analysis and Visualisation

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now