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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
aallman
Helper I
Helper I

Why does the formula VALUE("2a") return 0.0833333 ?

In my table, "2a" is a character string. I would assume that would mean putting it in the VALUE function would return an ERROR but actually it returns 0.0833333. Does anyone know why?? 

aallman_0-1659113802730.png

 

1 ACCEPTED SOLUTION

Yes the other solution worked for me, thank you! I was just curious about why exactly the "a" was allowed to be converted to a number. Thanks again!

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

Hi @aallman 
Seems like the letter "a" represents the angle in Radians that its SIN = its value i.e. ( SIN ( a ) = a ) which is 0.0416667 rad = 1/24 rad = 2.3873 degrees. If preceded by a number (X) where 0 < X < 24 the result of VALUE is just the multiplication of X times a. This has something to do whith 1 hour per 24 hours a day (1/24).
The bottom line it does not matter just ignore it.

Have the solution I provided in your other post worked with you?

Have a good day.

I don't think multiples of an angle a is quite the right interpretation since "a" by itself doesn't get interpreted and "23a" is fine whereas "25a" returns an error.

 

You are on the right track with 24 hours per day. It's interpreting "2a" as "2:00 AM".

 

Here are some additional examples where I've included another copy of the column formatted as a Time column:

AlexisOlson_0-1659153087629.png

Yes the other solution worked for me, thank you! I was just curious about why exactly the "a" was allowed to be converted to a number. Thanks again!

amitchandak
Super User
Super User

@aallman , Refer doc, what all can happen with text datatype

https://docs.microsoft.com/en-us/dax/value-function-dax

See also this documentation including relevant examples related to time:

https://dax.guide/value/

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors