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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Using DAX summarize table to create column grouping using filtering and containsstring

Hi,

 

I would like to use a DAX formula to create column grouping due to the number of variable I need to group. When creating the summary table I can't seem to just create a filtered column. The below formula is successful, however fails when I add additional filtered columns. i only want to filter and group the message the count column is not required.

 

Any support would be greatly appreciated, thank you.

 

Image 1.png

 

 

 

Result Message required- Count colomn not required.

Image 2 result.png

 

 

 

 

 

Cannot seem to add additional filtered columns

Image 3.png

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,


 

Image 3.png


I found that you seem to be missing a comma between “Jog Mode” and "FILTER".

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

7 REPLIES 7
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Has your problem been solved?
If your problem has been solved, you could accept the reply you like.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,


 

Image 3.png


I found that you seem to be missing a comma between “Jog Mode” and "FILTER".

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Why don't you simply create measure like below

If(containstring (MAX(table[column]),"drive")= TRUE,1,0)

IN IF PART ONLY ADD OTHER CONDITION USING OR OPERATOR (||)

And then add it as visual level filter and set it to 1.

THANKS,
PRAVIN
IF it resolves your problem mark it as a solution and give Kudos.
amitchandak
Super User
Super User

Use like

calculate(countrows(Alarm),Filter(Alarm,<Clause>))

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  I am wanting this to be a new table.  This looks like it is a measure within an existing table?

You have to use calculate or IF to create the measure or dimension member in summarize

 

If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thank you, simplified example below of what I am trying to achieve.

 

1. Detailed table

Example 1.JPG

2. Would like to create a summary table to group the detailed table by animal type. For example a column for dogs, cats - etc. I can successfully create a summary table for text containing Dog but having trouble adding additional columns.

Example 2.JPG

 

3. Required Result - Column for each defined containstring.

Example 3.JPG

Thanks

 

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.