Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I was following this tutorial: https://docs.microsoft.com/en-us/power-bi/developer/visuals/funnel-plot-from-r
My impression was that "dataset.csv" file was read in with "read.csv" function in the R script which was used for the plot. But when I import the visual to Power BI it asks me to import the CSV file in Power BI.
As a simpler example, with the template code given here:
g = qplot(`Petal.Length`, data = iris, fill = `Species`, main = Sys.time());
I thought it was going to use the "iris" dataset when imported but it again asks me to import a source dataset.
My intention is to read in the data in R script (e.g. from web) to use them for the plots, without again importing the data in Power BI.
Would this be possible? Any help would be appreciated!
Yes. Use a different tool instead of Power BI.
Have you changed this line
dataset = read.csv(file = "dataset.csv", header = TRUE, sep = ",", stringsAsFactors = FALSE)
to point to a web based data file instead?
Thanks @lbendlin , I've tried and it works. Only one caveat is that I still need to supply any data to get it working (even if it's nothing to do with the data for plotting). Looks like this is the best I can? I wonder if there's any way to omit the step of putting the data itself in Power BI? Thank you!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.