Forum Discussion
Need help to replace NaN values
- 3 years ago
you may use the function of Table.TransformColumns, instead of Table.TransformColumnNames
- 3 years ago
if you want to remove the value from columns regardless of column names, can try this code
=Table.TransformColumns(PreviousStepName,{},each if _ is number and Number.IsNaN(_) then 0 else _)
you may use the function of Table.TransformColumns, instead of Table.TransformColumnNames
- virendrajadhav13 years agoHelper I
Daniel, Thank you. It worked.
One added question, if I have to add another seperate line of code which removes "Infinity" from the coloums, how should I do that?- wdx223_Daniel3 years agoCommunity Champion
if you want to remove the value from columns regardless of column names, can try this code
=Table.TransformColumns(PreviousStepName,{},each if _ is number and Number.IsNaN(_) then 0 else _)
- virendrajadhav13 years agoHelper I
Daniel, Thanks much. Really appreciate your help. 🙂