1 Reply Latest reply on Nov 28, 2018 12:50 PM by Zach Leber

    Labeling stacked chart with % of total

    Neel Patel

      Hello All,


      I have attached an image of what i currently have.  The image shows a percent displayed on both parts of the stacked barchart but I only want to label the stacked chart within its respective category.


      Please advise.


      Thank you.

        • 1. Re: Labeling stacked chart with % of total
          Zach Leber

          Hi Neel,


          Although it seems like a simple request, the way your data is structured makes it impossible. You are leveraging Measure Names and Measure Values which are handy but block the required table calculations.


          You're going to need to pivot your data to split your original data rows into multiple rows each, one row for the Cash measure, one row for the Mortgage measure. That will take some trial and error but can be done in Tableau. Here's a link to get you started.

          Pivot Data from Columns to Rows - Tableau


          Then you can achieve what you want. An example is depicted and a TWBX is attached as well.





          pivoted data.png