Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mzeppieri
Regular Visitor

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.

 

 

 

1 ACCEPTED SOLUTION

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.

 

 

 

image.png

View solution in original post

6 REPLIES 6
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? 

erik_tarnvik
Solution Specialist
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:

image.png

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.

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.

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.

 

 

 

image.png

pxg08680
Resolver III
Resolver III

@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.

 

 

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.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.