Forum Discussion
R Visual Script Auto Run to save historical data
- 4 years ago
Hi cmsouth ,
According to my testing, the R visual scripts do not run automatically when the dataset is refreshed, so you cannot achieve automatic saving of historical data of visuals. It is recommended that you use M instead of DAX to calculate the final result and then use R scripts in Power Query to store the historical data.
Or you can use the Report Builder to connect to the datasets on the Service, then create paginated reports and subscribe to them.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What a horrible answer. I'll look elsewhere....
- v-kkf-msft4 years agoCommunity Support
Hi cmsouth ,
According to my testing, the R visual scripts do not run automatically when the dataset is refreshed, so you cannot achieve automatic saving of historical data of visuals. It is recommended that you use M instead of DAX to calculate the final result and then use R scripts in Power Query to store the historical data.
Or you can use the Report Builder to connect to the datasets on the Service, then create paginated reports and subscribe to them.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.