7 Replies Latest reply on Aug 7, 2016 9:55 AM by Kashish Chauhan

    Dynamic Fields

    sns tab

      Hi All,

       

      Need small info. I have created dynamic fields users can select in the view but the only problem i have is while the field is selected, the name of the field has to be changed as per the selection. Is there anyway we can do it. Please see the attached public workbook which shows the same.

       

      Attached is the pic which shows what i need.

       

      It would be great if someone can help me on this.

       

       

      https://public.tableau.com/shared/DYCQY7TPY?:display_count=yes

       

      Dynamic Field.PNG

        • 1. Re: Dynamic Fields
          Mahfooj Khan

          Is that what you wanted? Just drag the parameter in columns shelf.

          Edit the axis and remove the title.

          Hope this help.

           

          Mahfooj

          • 2. Re: Dynamic Fields
            sns tab

            I am sorry if my query was not clear. I have given option to user to select either select profit or sales or Discount using parameters.

             

            My query is if user selects profit, then the axis should be shown as profit rather than showing calculated field name.

             

            Please let me know if this is clear. I am not sure of this is feasible or not.Bottom line is , is there anyway dynamic renaming of the axis takes place ?

             

            If user selects Profit /  sub category then axis should be showing profit.

            If User selects Discount/Category then axis should be showing discount.

             

            Hope i am clear this time. Thank you for the reply!

            • 3. Re: Dynamic Fields
              Kashish Chauhan

              Hi, this can be achieved by doing the following:

               

              Drag the parameter to the Columns shelf

              Sketch.png

               

              Then double click on the Select User choice axis and remove the title of the axis.

               

              Sketch1.png

               

               

              After that you can see what ever value you select from Select what you, you can see that value at the top.

               

               

               

              I hope this helps.

               

              Regards,

              Kashish Chauhan

              1 of 1 people found this helpful
              • 4. Re: Dynamic Fields
                Mahfooj Khan

                Sample workbook (version 9.3) has been saved in my profile. Have a look.

                Tableau Public

                I didn't ask you to drag calculated measure in columns shelf. I've asked you to drag your parameter in column shelf.

                See the screen shot. I've selected Profit and header showing profit.

                Now I've selected Sales and header showing the same.

                Hope you understand. Feel free to ask If you still have any doubt.

                1 of 1 people found this helpful
                • 5. Re: Dynamic Fields
                  Kashish Chauhan

                  As much as me and Mahfooj have understood, you want to show the profit when the user selects profit, discount when user selects discount and so on.

                   

                  Now the question is if what I wrote above is correct then the solution which we both have provided is the correct way to do it.

                   

                  But I guess you want to show the total value on the axis. When profit gets selected then you want to show the total profit and so on.

                   

                  Please let me know if this is what you are asking for.

                   

                   

                  Regards,

                  Kashish Chauhan

                  • 6. Re: Dynamic Fields
                    sns tab

                    Thank you i got the point. Thanks for the solution.I am able to get it. Many thanks !

                    • 7. Re: Dynamic Fields
                      Kashish Chauhan

                      You are welcome.