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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

R Script Not Working on Auto Refresh

I have a senerio that I need a daily snapshot view each day for a report I produce in Power BI. Since there's no way to get a snapshot in Power BI at this time, I have written an R Script that filters the data to the snapshot I need and exports it to a folder, saving it with the current date. I then have Power BI look at the folder and combine all the files in the folder to get the report I need. When I publish this to the service and set up my auto refresh with my personal gateway, everything refreshes correctly except that R Script does not export the new file. Therefore I'm not getting the snapshot I need automatically (but again, the refresh doesn't fail). Is there anyway to make this R Script work automatically upon a scheduled refresh? Thanks! 

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous 

Apologies, if I'm misunderstanding your requirement; however, wouldn't the Subscription feature allow you to Snapshot the report each day?

 

Subscriptions.png

 

Regards, Sduffy

Helpful resources

Announcements
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.