Forum Discussion
Replace 0 with Max Value in Column Power Query
- Anonymous3 years ago
Hi EMSSS22 ,
You could try to add a custom column. Here's an example.
if [Column1]=0 then List.Max(#"Changed Type"[Column1]) else [Column1]What you need to note is that
List.Max(#"Changed Type"[Column1]), be sure to add the name of the previous step, not List.Max([Column1]). Otherwise, an error will be returned.Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi EMSSS22 ,
You could try to add a custom column. Here's an example.
if [Column1]=0 then List.Max(#"Changed Type"[Column1]) else [Column1]
What you need to note is that
List.Max(#"Changed Type"[Column1]), be sure to add the name of the previous step, not List.Max([Column1]). Otherwise, an error will be returned.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.