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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
LiamRall
Frequent Visitor

R Script Editor isn't automatically populating the data frame with my values.

Hi there,

 

I am trying to create a custom visual with the R script functionality. I have R installed as well as R studio. When I add my fields to the values pane of the R visual, it does not create the data frame as it is meant to. The image below should better explain my problem.ScreenCapture250821.PNG

If anyone knows why this is happening then any help would be much appreciated.

 

Thanks

5 REPLIES 5
Pragati11
Super User
Super User

Hi @LiamRall ,

 

When you use a R script visual, you need to write somethng in the script area. Currently there is nothing in your script area except the automated commented lines.

Also R visual can be used to plot a visual rather than outputting a dataframe directly. Something like below:

Pragati11_0-1629883935505.png

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi Pragati11

 

Thank you for your response!

 

I can plot things in the script. So if I type plot(1,1) a visual does come up. My problem is that I don't have access to my values because the automatic code is not creating a data.frame for me to use. 

ScreenCapture250821-01.PNG

I feel like the automatic code should generate something like:

dataset <- data.framed(Year, Quarter, Month, Day, Client Count)

 

I hope this helps.

HI @LiamRall ,

 

This feels like a bug to me.

Also I am hoping you are working on the latest Power BI update.

Can you raise a support ticket here for this issue?

https://powerbi.microsoft.com/en-us/support/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Thanks, @Pragati11

 

I am on the latest version of Power BI.

 

I will log a ticket and see what the support team says. Thank you for the help. 

Anonymous
Not applicable

Hey have you heard anything back about this? Having the same issue.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.