Forum Discussion
LaurentZ
Helper I
6 years agoHow to manage NaN or Infinity in PowerQuery (no Dax) ?
Hi, Is there an easy way to manage NaN or Infinity ? I tried to replace error, no impact. I tried to replace "NaN" by 0, no impact (when it's working with Null). In my formula I tried with "tr...
- 6 years ago
Thank you edhans for your answer.
So there is no native function in powerquery to valuate those kind of error... that's sad.
Thanks for the article, I'll give a try later.
By waiting I keep my methodology tant consits in checking if Numerator & denominator are not 0 before doing a division... not the smartest but at least it works.
CidcleyBarbosa
Advocate IV
1 year agoHi everyone,
One way to do this is with List.Max(your calculation, 0).
dufoq3
Community Champion
1 year agoCidcleyBarbosa, don't forget curly brackets!
List.Max( { yourCalculation, 0 } )