I am using the following expression to work out a percentage:
=Fields!Days.Value/Sum(Fields!Days.Value, "Date_month_name")
Days.Value is showing as 0 however in a few of my results instead of reading 0% in my percentage column it is actually reading NaN (Not a Number).
Does anyone know the exact expression forumla i need and where I should paste it in my current expression to say "Where NaN is showing, put a '0' instead?"
(See image)
How about
Try
Here's another option. It should solve the problem, and also get rid of
Infinite
responses:I didn't have luck with the above answers. Here's what worked for me:
I used this for similar case,
=REPLACE(Fields!Days.Value/Sum(Fields!Days.Value, "Date_month_name"),"NaN","0")
I had a similar issue to this and found that the following was easiest to do.
Probably not the best solution, but works.