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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JithinSankar
Frequent Visitor

Power BI - R Visuals passing Filter values

I've been trying out some Power BI R integration samples. So far, everything works fine interms of Passing the dataset , getting the plots from R and displaying them in Power BI, Slicing the Visuals based on Related Filters in Power BI. 

Here's the Problem,

1. Is there a way to pass an unrelated value in the Dataset to R Script? 

  This Variable is used in a section of my R script (as an a parameter to a function but not to restrict the dataset)  and the user should have the ability to change it from the front end in Power BI.

 

 

Has anyone done this? 

4 REPLIES 4
Anonymous
Not applicable

Hi @JithinSankar ,

 

Did you get any solution for this please, I'm also on the same page.

 

I want to pass data into R script though the Power BI filters.

 

Regards,

 

 

BeardyGeorge
Advocate I
Advocate I

not tried it myself (yet ,it's on the list), but I suspect this should give you the basic tools you need to do what you're after (the read.table and write.table bit) - there may be some security concerns with this though, so think carefully before you do it with any confidental data.

BeardyGeorge, Thanks for the link.

 

I am doing a bit of Read / Write in my R script but what I'm after is a far simpler issue. Lets say you want to give an option to the user to view a dataset on a monthly Aggregate or Daily Aggregate (kinda like a switch).

 

I'm thinking of a Variable (Qlikview ,OBIEE have got them) that the user can select and that can be passed on to R.

 

 

 Idea: Allow Users to Create Variables in Power BI

JithinSankar
Frequent Visitor

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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