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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Formula IF value contains "number" or contains "text"

Hi Community,

I am working with a rule that i need a value back "yes" / "no" if the text contains inly text or only number. Example

 

TEST = IF('Table 1'[Value] <> "Only text","Yes","No")
EXAMPLE:
valueResult
AAAAYes
ABDYes
AKK1

No

 
TEST = IF('Table 1'[Value] <> "Only Numbers","Yes","No")
EXAMPLE:
valueResult
1324Yes
2Yes
112SDNo
 
 
thanks
 
3 REPLIES 3
Anonymous
Not applicable

Anyone else can help?

Anonymous
Not applicable

@v-stephen-msft thanks for the reply.

However, it should be the other way arround and also what about with the table for only text??

 

Regards

v-stephen-msft
Community Support
Community Support

Hi  @Anonymous ,

 

You may try this calculated column.

Result = ISERROR ( VALUE ('Table'[value] ))

vstephenmsft_0-1663305946425.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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