I would like to integrate R and tableau for decryption. Dataset contains a field called PropertyID. I want to decrypt encrypted values of PropertyID. I created a parameter called "encoded" which contains encrypted values(I got these encrypted values using encrypt_string function of safer package in R). There is a calculated field called "decr" which contains R code for decryption. And one more calculated field called "Calc" is used for filtering. I got the solution for decryption using SWITCH statement without using R. How to solve this issue by integrating R and tableau Bora Beran .Here I have attached 2 workbooks(one using SWITCH and another using r code).