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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.