Forum Discussion
virendrajadhav1
Helper I
3 years agoNeed help to replace NaN values
Hi, I am trying to replace NaN values in my table with following M code #"remove_nan" = Table.TransformColumnNames(#"Rounded Off2",{{"q_to_p", each if Number.IsNaN(_) then 0 else _,type numbe...
- 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 _)
wdx223_Daniel
Community Champion
3 years agoif 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 _)
virendrajadhav1
Helper I
3 years agoDaniel, Thanks much. Really appreciate your help. 🙂