cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jonmak-jon
New Member

Connecting both Salesforce and R Script

I want to create a refresh-able data connection with Salesforce (report) to which R script is applied to transform some columns before the transformed data gets loaded into the report. 

 

I know I can use on-premise gateway for R script and content pack connection with Salesforce, but how do I combine the both?

2 REPLIES 2
hugoberry
Responsive Resident
Responsive Resident

Most likely you'll be using R.Execute function to do your data wrangling. 

Type the following command in your query to get more details about this

= #shared[R.Execute]

For an instruction on how to call R from the UI you can follow the article from

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-r-in-query-editor/

Probably the only change you'll have to do is instead of loading CSV, load Salesforce data.

Another good resource

https://blog.gbrueckl.at/2016/05/running-local-scripts-power-bi/

jonmak-jon
New Member

I want to create a refresh-able data connection with Salesforce (report) to which R script is applied to transform some columns before the transformed data gets loaded into the report. 

 

I know I can use on-premise gateway for R script and content pack connection with Salesforce, but how do I combine the both?

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Top Solution Authors
Top Kudoed Authors