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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.