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
Boycie92
Resolver I
Resolver I

COUNTROWS based on number of characters

Hi,

I’m hoping someone can help.

Can anyone tell me how to replicate a count rows measure based on wildcards.

I want to count how many terms I have within a field that contains 5 characters.  In excel I would use ”?????”

https://exceljet.net/formula/count-cells-that-contain-five-characters

I have made an attempt but because it’s actually looking for the term “?????” I get zero results

Measure = CALCULATE(COUNTROWS(Table1), Table1[Code] = "A", Table[Type] = “?????”)

Thanks,

Boycie92

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can just check the field length:

 

Measure = CALCULATE(COUNTROWS(Table1), LEN(Table1[Column]) = 5)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

You can just check the field length:

 

Measure = CALCULATE(COUNTROWS(Table1), LEN(Table1[Column]) = 5)

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.

Top Solution Authors