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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JimB-GA
Helper III
Helper III

how to evaluate cell contents as whether it is text or a value stored as text

Hello all.  I have a column of data that evaluates as text.  There are text data and value data (stored as text).  How can I convert the value as text into a decimal value?  Tried searching the board and could not find a solution.

 

Here is an example: (current data) and what I'd like to accomplish

 

Current Data Desired Results
 
Apples null
5.34                  5.34
Bananas null
0.234                0.234
Oranges null

 

Thanks for any and all responses!

 

Jim

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @JimB-GA,

 

New a calculated column.

result column =
IF (
    ISERROR ( VALUE ( 'Test data'[Data] ) ),
    BLANK (),
    VALUE ( 'Test data'[Data] )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @JimB-GA,

 

New a calculated column.

result column =
IF (
    ISERROR ( VALUE ( 'Test data'[Data] ) ),
    BLANK (),
    VALUE ( 'Test data'[Data] )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you Yuliana.

 

I had tried something similar earlier but ran into syntax problems.  Your solution works perfectly.

 

Regards

 

Jim Blackburn

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors