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
Anonymous
Not applicable

Determine if there's a character in the field

Hello everyone,

 

Is there a function where it can check if a certain field contains characters?

I checked the CONTAINSSTRING but I don't want to define the text.

 

TelephoneWith Characters
32472643697026600No
32031653599444No
32352691563148No
32473521808PROYes
32473335277INSYes
324123431702577No
3245674522INSYes
2 ACCEPTED SOLUTIONS
MartynRamsden
Solution Sage
Solution Sage

Hi @Anonymous 

 

Try this as a calcualted column in the table:

 

With Characters =
IF (
    ISERROR ( VALUE ( 'Table'[Telephone] ) ),
    "Yes",
    "No"
)

 

View solution in original post

pbeye
Resolver II
Resolver II

Hi @Anonymous ,

 

Would checking if the string is a number work instead? I'm thinking it might work if you do the ISNUMBER formula, so something like this:

 

With Characters =IF(ISNUMBER(Telephone), "No", "Yes")

View solution in original post

3 REPLIES 3
pbeye
Resolver II
Resolver II

Hi @Anonymous ,

 

Would checking if the string is a number work instead? I'm thinking it might work if you do the ISNUMBER formula, so something like this:

 

With Characters =IF(ISNUMBER(Telephone), "No", "Yes")

This is cleaner than my suggested approach!

MartynRamsden
Solution Sage
Solution Sage

Hi @Anonymous 

 

Try this as a calcualted column in the table:

 

With Characters =
IF (
    ISERROR ( VALUE ( 'Table'[Telephone] ) ),
    "Yes",
    "No"
)

 

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.