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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ani1991
Resolver III
Resolver III

Use Power BI to change R script using parameters

Hi Team,

 

Greetings of the day!!

I am working on a small POC and would appreciate your help with it.

The requirement is, I have a csv file which is imported using Get data in Power BI.
The structure is as follows:

Srno.           Country
1                   India

2                   UK

3                   USA

4                   Germany

 

Now, same csv is imported in R using read.csv function.

On the Power BI side I have created two parameters "Srno" and "Country". I want to link these two parameters in the Rscript.
I want to have such a scenario that when I provide some values in the parameter that would add up to my csv via the Rscript and then further when I refresh Power BI I should be able to see the newly added values by me. If suppose I provide "5" and "Austria" then the csv file should now have.

Srno.           Country
1                   India

2                   UK

3                   USA

4                   Germany
5                   Austria


I have used rbind to append values to the csv. But how to link the Power BI Parameters with the R script.

I am not pretty sure how to achieve this and hence would require your kind help with this.

KIndly let me know for any more information if required.

 

Thanks,

Anish

1 ACCEPTED SOLUTION
Ani1991
Resolver III
Resolver III

Hi All,

 

Thanks.

Was able to figure out the solution for it.

 

Regards,

Ani

View solution in original post

2 REPLIES 2
Ani1991
Resolver III
Resolver III

Hi All,

 

Thanks.

Was able to figure out the solution for it.

 

Regards,

Ani

@Ani1991 

 

Glad to hear that. If you don't mind, just share the solution here. Your contribution is highly appreciated.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors