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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RobertSlattery
Resolver III
Resolver III

Issue with measure return value - VALUE() - Cannot convert value '1.INF' of type text to type number

This has got me stumped: I have a text string that looks like a number but Value fails to convert it.

What am I missing?

Year% = var rd = FORMAT([Disp Promise Date],"0") return LEFT(rd,4)

image.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yes they are. You'll need to add in a trap statement to watch out for non numeric values and convert them to zero.  There is a function called IsNumberic() that you can put into an IF statement to help you catch this.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Do you have a value somewhere in your list with a blank in column DispPromisedDate?

Hi @Anonymous, yes, I do.  I didn't think all rows would be affected by these.  Is this the case?

Anonymous
Not applicable

Yes they are. You'll need to add in a trap statement to watch out for non numeric values and convert them to zero.  There is a function called IsNumberic() that you can put into an IF statement to help you catch this.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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