1 Reply Latest reply on Nov 4, 2016 3:04 PM by Patrick A Van Der Hyde

    R: Running SCRIPT_REAL on a subset of data?

    luciana.suran.1

      Hi,

       

      I just started using the SCRIPT_REAL to calculate covariance in Tableau by invoking R. Is there any way to only have the query run on only a subset of the observations? For example, the last 30 days?

       

      I could of course use a date filter, but I want to calculate the 1-month, 3-month, and 5-month covariance so they can be displayed in the same view.

       

      Thanks!