Forum Discussion

mzeppieri's avatar
mzeppieri
Regular Visitor
8 years ago
Solved

Table Visualization - Group By Field?

My goal is to create a Table Visualization with a Group By structure, similar to how you can create a "Group By" in a SharePoint list.

 

Let's say I have a table of data as follow:

 

Make | Model | Color

Honda | Pilot | White

BMW | X5 | Black

Jeep | Cherokee | White

Toyota | Highlander | White

Volvo | XC90 | Black

 

The Make and Model columns are unique values, but the Color column is only White or Black. I want the table to appear as follows:

 

Black

BMW | X5

Volvo | XC90

 

White

Honda | Pilot

Jeep | Cherokee

Toyota | Highlander

 

I can't seem to find a solution that does this.

 

 

 

  • Try turning off "Stepped Layout" under "Row Headers" in your Matrix Visualization settings. Gets you pretty close to what you are looking for I think.

     

     

     

6 Replies

  • jembree's avatar
    jembree
    Regular Visitor

    What if you want to group by column outside of a matrix visualization? Say, in a Table Visualization as this question is asked? 

  • mzeppieri

    Out of my understanding you need black and white colors to be sorted.

     

    Just drop the color column into a slicer and remaining two columns into a table. Select a value in the slicer then it will give you the res make and model.

     

     

    • mzeppieri's avatar
      mzeppieri
      Regular Visitor

      The slicer option unfortunately will not work for me because I want to see all the tabulated data at once. Right now, I have two adjacent tables filtered to create the view I need, but I was hoping to create one table.

  • erik_tarnvik's avatar
    erik_tarnvik
    Solution Specialist

    Use the matrix visual and drop Color, Make and Model into the row bucket. Expand the visualization using the buttons in the top left of the visual. You will get this:

    If you really want the "Toyota | Highlander" rather than the per row format you would need to create a calculated column in your data table that combines Make and Model.

    • mzeppieri's avatar
      mzeppieri
      Regular Visitor

      I suspected you could only create the view I need with a calculated field. I played with the Matrix view prior to posting my question, and ended up with the cascading rows as you demonstrated.

       

      Right now I have two seperate tables creating the view I want, and I just have them sitting next to each other. Was hoping to join them as one continuous table, but for what I need, I may just have to keep them as seperate visualizations.

      • erik_tarnvik's avatar
        erik_tarnvik
        Solution Specialist

        Try turning off "Stepped Layout" under "Row Headers" in your Matrix Visualization settings. Gets you pretty close to what you are looking for I think.