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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SChap
Frequent Visitor

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 @SChap ,


 

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 @SChap ,

 

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 @SChap ,


 

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

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

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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