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

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.