Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
natg
Frequent Visitor

Dynamic visualization with R

Hi,

Trying to build a small app with PowerBI visualization and data calculation in R.

Depending upon the data selection (through a filter visualization or similar), would like the revised dataset to be passed on to an R script and R-script containing simple correlation calucaltion and the resultant calculation to be displayed back in powerBI visualization.

Alternatively, is there any visualization (custom) which calclates the correlation coefficient for the selected data subset.

Thanks.

2 ACCEPTED SOLUTIONS
Phil_Seamark
Microsoft Employee
Microsoft Employee

The good news is the R Script visual will refresh each time a filter selection changes and the dataset it uses will reflect the changes.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @natg,

 

R visuals in Power BI Desktop are refreshed upon data updates, filtering, and R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to cross filter other elements.Smiley Happy

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @natg,

 

R visuals in Power BI Desktop are refreshed upon data updates, filtering, and R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to cross filter other elements.Smiley Happy

 

Regards

Phil_Seamark
Microsoft Employee
Microsoft Employee

The good news is the R Script visual will refresh each time a filter selection changes and the dataset it uses will reflect the changes.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thank you @Phil_Seamark & @v-ljerr-msft

Let me try and update the message back.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.