2 Replies Latest reply on Nov 17, 2016 9:24 AM by Toby Erkson

    Run R script after refresh button

    Periyasamy S

      Hi All,


      I have the R script for preforming linear regression in a calculated field in Tableau. The input variables for the regression are available for the user as a parameter in tableau dashboard.

      I have published this view to the Tableau server. Now, as and when the user changes each and every input variable , R script is running for each and every time and it is time consuming.


      I wanted to run the R script only after the user selects all the variables and clicks refresh button. Is there any way to handle this ?


      I was thinking of including the R script inside a "if" condition (to make it run only after the refresh button is pressed). Have any idea how to check this / what condition to be used ?