2 Replies Latest reply on Jul 6, 2016 9:08 AM by Thomas Hossler

    Change the labels of a parametrized measure

    Thomas Hossler

      Hi all,


      I have created similar sheet as the one presented in that example (except that I am working with maps):


      Swapping Measures Using Parameters | Tableau Software


      with parameters and calculated fields to let user choose the variables to display. However, I'd like to know if there is a way to change the labels in the same time. For example, instead of having Placeholder 1 and 2 as the labels of the x and y axis, it'd be way better to have the actual name of the variable, e.g. discount or profit.

      The calculated field would look like:

      WHEN "discount" then [discount] and xlabel = "discount"

      or something equivalent.


      In my case, I just want the name of the selected variables to display when the user click on a give country. So for example, if my parameters is "vegetables" and the variable selected is "potato", I want to display that name when I click on the country.

      Any help is appreciated