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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PBIMorgan01
Regular Visitor

Change slicer value R script

Hello,

 

I am using R Script that change with slicer value (Write or Read). No problem it is working 🙂

But, I would like to change my slicer value at the end of script in order to have a default value.

 

For example :

- I choose "Write" in slicer

- As I choose "Write" so the code in my IF loop is executed

 

Now, I would like to have "Read" when my script finished. So I would like change my slicer value.

 

Thanks for your help

1 REPLY 1
v-xicai
Community Support
Community Support

Hi @PBIMorgan01 ,

 

You may refer to the links:.

https://www.tutorialgateway.org/r-programming/,

https://www.red-gate.com/simple-talk/sql/bi/power-bi-introduction-working-with-r-scripts-in-power-bi....

(Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.)

 

If you still have this issue for Power BI, you'd better create a support ticket in Power BI Support , Scroll down and click "CREATE SUPPORT TICKET", to get further help.

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.