5 Replies Latest reply on Mar 13, 2018 2:00 PM by Shiva Wagle

    Calculation of mean only for the unique participants in the longdata- using R and tableau integration

    Shiva Wagle

      Hello all,

      I am new in tableau and R integration.

      I am trying to display mean of Max Signon  only for the unique participant.Here the tableau data is in the long format. Therefore,I use the following R code

      d1<-crating the dataframe

      d2<-keeping only the unique participants

      Here I am expecting  mean of Max Sign on only for the unique participants,  however I am getting mean for the total participants(not for the unique),

       

      Could you please comment on my coding 

       

      Thank you very much,