Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I created a new field, Cost/Quantity, and the output is coming up at NaN.
I was able to see the Cost by year on a bar chart and quantity by year on a bar chart fine, but when I tried to doing Cost/Quantity on a bar chart, I am not getting anything due to NaN values. How do i fix this?
Thanks
Solved! Go to Solution.
@Vvelardenope, turns out this is a custom column in the query editor. No DIVIDE there.
Proud to be a Super User!
Typically you get NaN when dividing 0 by 0.
So adjust your formula something like if Quantity = 0 then 0 else Cost / Quantity.
it is not working for me
@MarcelBeug wrote:Typically you get NaN when dividing 0 by 0.
So adjust your formula something like if Quantity = 0 then 0 else Cost / Quantity.
THANK YOU! That was so easy to fix. Thank you!
How do i get rid of this? Would I be able to replace it with 0 or null?
super!!!! Thanks Sir!!!!
This worked for me beautifully thank you
@Anonymous
How did you write the formula in the custom column?
I have the same issue.
You're dividing by zero. That's impossible. That's why you're getting the error. You need to put in an if statement to return null when [D_Act_2doTermino] is 0.
Proud to be a Super User!
@Vvelardenope, turns out this is a custom column in the query editor. No DIVIDE there.
Proud to be a Super User!
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |