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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Multiple datasets in r script visual

Sometimes one needs R to merge two tables. However, one can only import data in R from different tables, if there is a clear relationship between the tables. Therefore, please allow multible datasets in the R Script Visual.
Status: Under Review
Comments
fathomson
Advocate II
Yes, I would like to do this do! What is the current status of this?
michael_lucht
New Member
Actually, that is possible: you can add tables in the second argument of the R.Execute command. Eg. instead of R.Execute("#your R script",[dataset=Source]), use R.Execute("#your R script",[dataset1=Source1,dataset2=Source2])
writetoprithvi
New Member
Lot of times,we would like users to provide a parameter value and based on that you need to run script for a model e.g. providing k value for K means. Currently, it is not possible. Looks like Michael is talking about R used for data import.
rickintz
New Member
Yes, an addition most urgent! A possible workaround (provided your filtered "parameters table" consists of only one record) would be to create a column of 1s in each of the tables and create a one to many relationship between the "parameters table" and the "base table". However, even in this, Power BI enforces cardinality on the level of original parameter and base tables that define your dataset rather than filtered parameter and base tables that you have in your report, and renders such a join inadmissible
fbcideas_migusr
New Member
Status changed to: Under Review