cancel
Showing results for 
Search instead for 
Did you mean: 
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 Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors