Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Filling missing values
Hello, I need help filling the nulls in the attached screenshot with the mean of that column. How do I go about it?
Solved! Go to Solution.
Hi @Toluhenok ,
Try it by deleting #"Changed Type" (second last row):
Hope this helps! 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Hi @Toluhenok ,
Here an example. Before:
After:
Here the code in Power Query M that you can paste into the advanced editor (if you do not know, how to exactly do this, please check out this quick walkthrough)
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSK1YlWyivNyQEzjFC5xqhcE1SuKRI3FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Number = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Number", Int64.Type}}), #"Replace Values" = Table.ReplaceValue(#"Changed Type",each [Number],each if [Number] = null then List.Average(#"Changed Type"[Number]) else [Number], Replacer.ReplaceValue,{"Number"}) in #"Replace Values"
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Thank you for the reply, however, I keep getting an Expression.SyntaxError: Token Eof expected
Hi @Toluhenok ,
Try it by deleting #"Changed Type" (second last row):
Hope this helps! 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Yes, thank you