2 Replies Latest reply on Feb 8, 2016 3:29 AM by Jonathan Drummey

    Tableau 9.1 - table formatting challenge

    Shannon Lepore



      I am trying to create a table where the end result will look similar to data you would see in Excel, just rows and columns.  I know that Tableau is not the ideal tool for this type of visualization but that’s what my users are requesting.


      I need each dimension on the rows shelf to display but also repeat.  For example, my table appears to be creating a pivot table where the company and customer id appear once but transaction date (because there are more than one and they are unique) are generating rows.  I need the company and the customer id to repeat alongside the transaction date.


      I read somewhere about creating a calculated field and naming it Blank and the definition being “” and then placing it in columns shelf.  Supposedly this will help with the formatting but it hasn’t solved my problem.


      Any guidance would be greatly appreciated.

        • 1. Re: Tableau 9.1 - table formatting challenge
          Yuriy Fal

          Hi Shannon,


          You may create a field with a table calculation:


          Make it a Discrete (Blue Pill),

          Compute Using Table (Down),

          Place it to Rows at the leftmost position,

          set Show header to Off (clear a flag).


          Hope this helps.




          • 2. Re: Tableau 9.1 - table formatting challenge
            Jonathan Drummey

            First of all I suggest you push back on your users (if you haven't already). Why do they want a text table? What do they want to do with the data from the text table? What are they going to do after that? For example if the users are looking for a crosstab that they can export then what are they going to do next with that crosstab? If they are looking to analyze data in some other tool then is that analysis something you can set up in Tableau?


            There are likely answers there that can lead to finding alternative visualizations that are a) help the users more than a text table and b) are easier to construct in Tableau. Part of why I suggest this is the text tables are horrible visualizations, they are only better choices some of the time when we are wanting to look up exact values.


            Here's an alternative solution to Yuriy's: Duplicate the dimension fields being used on the Rows Shelf, put those duplicates on the Rows Shelf, and turn off the headers:


            Screen Shot 2016-02-08 at 6.23.21 AM.png


            Personally I'll use this more than an INDEX() calculation to get the replicated results because it avoids unwanted densification (where table calculations are triggering Tableau to pad out the marks in the view).