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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
penstar1000
New Member

Count the number of instances of specific text and summarise

Hi all

I need help with reproducing what would be a Countif statement with a wildcard in excel

I have a data column with comma delimited values like this:

 

Region

Northern Adelaide
Northern Adelaide, Western Adelaide, Eyre and Western
Adelaide Hills, Eyre and Western, Northern Adelaide

 

I want to count the number of times each region appears and create a summary table to look something like this:

Region                                 Number of applications                $ sum
Northern Adelaide       3                                                                  $xx

Western Adelaide         1                                                                  $xx
 Eyre and Western         2                                                                 $xx             

etc etc

I've tried various combinations of search and filter but I'm currently getting the wrong result when I check using the Countif function in excel

Thanks for any help!                                  

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@penstar1000 

 

Try this calculated column

Please see attached file as well

 

Number of Applications =
VAR myregion = [Region]
RETURN
    COUNTROWS ( FILTER ( Data, CONTAINSSTRING ( Data[Region], myregion ) ) )

 

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@penstar1000 

 

Try this calculated column

Please see attached file as well

 

Number of Applications =
VAR myregion = [Region]
RETURN
    COUNTROWS ( FILTER ( Data, CONTAINSSTRING ( Data[Region], myregion ) ) )

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors