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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.