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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
GTL
Frequent Visitor

Group

Hi everyone! I am trying to group rows with similar equipment. For example: group all of my escavators together, all dirt, all dump truck, etc. We are syncing this data directly via an API daily so editing in Power Query would not work. 

 

I used the group feature in the data field and this works to create my groups, however is making no change in my table. It only adds a column instead of combines the row. Please help.

 

Thank you,

Georgia 

Screenshot (50).png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GTL ,

 

According to your statement, I think you want to combine the data by group like escavators/dirt/dump truck and so on. 

 

If the group in screenshot above is correct, I think you can remove [Equipment] in your table visual and then Power BI will summarize your data by group in [Dirt] column. Power BI will summarize data if all data are the same, so if you add [Equipment] column into your visual, it will be expanded.

 

Here I am confused about whether "Escavtor" in "Escavator" group. If yes, it is hard for us to do in Power BI. I think you need to make sure each character contains the complete category word. Then we can use contain dax to create group column.

 

Group =
SWITCH (
    TRUE (),
    CONTAINSSTRING ( 'Table'[Equipment], "Escavator" ), "Escavator",
    CONTAINSSTRING ( 'Table'[Equipment], "Dump trucks" ), "Dump trucks",
    CONTAINSSTRING ( 'Table'[Equipment], "dirt" ), "Dirt",
    "Others"
)

vrzhoumsft_0-1682060924521.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @GTL ,

 

According to your statement, I think you want to combine the data by group like escavators/dirt/dump truck and so on. 

 

If the group in screenshot above is correct, I think you can remove [Equipment] in your table visual and then Power BI will summarize your data by group in [Dirt] column. Power BI will summarize data if all data are the same, so if you add [Equipment] column into your visual, it will be expanded.

 

Here I am confused about whether "Escavtor" in "Escavator" group. If yes, it is hard for us to do in Power BI. I think you need to make sure each character contains the complete category word. Then we can use contain dax to create group column.

 

Group =
SWITCH (
    TRUE (),
    CONTAINSSTRING ( 'Table'[Equipment], "Escavator" ), "Escavator",
    CONTAINSSTRING ( 'Table'[Equipment], "Dump trucks" ), "Dump trucks",
    CONTAINSSTRING ( 'Table'[Equipment], "dirt" ), "Dirt",
    "Others"
)

vrzhoumsft_0-1682060924521.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

GTL
Frequent Visitor

GTL
Frequent Visitor

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.