Forum Discussion
Distance between locations - calculated column error
- Anonymous7 years ago
you can wrap the function in IFERROR(...,Blank()) and see if that helps
"Any thoughts on why 1 row would cause all rows of this calculated column to fail, and why the below lats/ long would error in the first place, as have checked and numbers are correct?"
DAX operates on an all or nothing basis since everything happens in columns vs. individual cells like excel. Which is why in excel you can get an error for a specific cell but the rest of the formulas are fine. Just a different way of thinking of things, and the thinking in columns and filters is the biggest hurdle from someone coming from excel ( at least that was and really still is my experience).
I honestly dont know enough about the functions you are using. but looking at the Dax help, there is something in your data where it violates the definition of must be between -1 and 1:
I run into the same type of thing in my day-to-day job since I use the POWER function, and if there is something wierd in the data it will error, Ideally, would fix the data in the ETL stage or catch it w/o using an IFERROR since IFERROR can be a performance hit, but when you start going a few levels deep in calculations I find it easier to just use the IFERROR.
Anonymous Thanks Nick - you have been a great help. :)