How to extract the value of encoded(Mg) from this URL https://public.tableau.com/profile/varun.sabu#!/vizhome/Receive_Workbook-Decode/Dashboard2?:linktarget=_top&encoded=Mg
I have created a calculated field for this, but it shows an error Reference to undefined field.
I'm not sure I understand your requirement are you just trying to get the value of the "encoded" parameter from the URL? In this case, "Mg"? If so, then the following calculated field should do that for you: SPLIT([URL],"encoded=",2)