1 Reply Latest reply on May 13, 2019 9:14 AM by Jonathan Drummey

    Mann Kendall R Script in Tableau

    Parminder Keilah

      Hi Experts

       

      I have the following Mann Kendall R Script code in a Tableau file. Which i want to use in Power BI. do i need to make any modification to he R Script of is the code transferable directly into BI.

      SCRIPT_REAL("library(Kendall);
      complaints <- c(.arg1);
      print(complaints);
      if (length(complaints) > 3) {MK <- MannKendall(complaints); pvalue <- as.numeric(MK$s)} else {pvalue <- 1};
      pvalue", SUM([Complaints]))