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
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
Employee
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
Employee
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.