Forum Discussion
Giving blank fields a name
- 5 years ago
dineshj Yeah, so then just right click the column in Power Query and choose Replace values. Leave the top one empty and the second one "unrated". Will replace null's (blanks) with "unrated".
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WKkpNUdJRMlSK1YlWSi9KTc2D8+CMpJzSVAgnFgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", Int64.Type}}), #"Replaced Value" = Table.ReplaceValue(#"Changed Type","","unrated",Replacer.ReplaceValue,{"Column1"}) in #"Replaced Value"
dineshj You can replace the blanks in Power Query with "unrated". Would need to know more though to know if this is a valid solution.
Greg_Deckler Thank you for your reply. So in my column I have text that have colors mentioned, green, red, orange, and the blank cells. The pie chart is made up of these four fields.
- Greg_Deckler5 years agoCommunity Champion
dineshj Yeah, so then just right click the column in Power Query and choose Replace values. Leave the top one empty and the second one "unrated". Will replace null's (blanks) with "unrated".
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WKkpNUdJRMlSK1YlWSi9KTc2D8+CMpJzSVAgnFgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", Int64.Type}}), #"Replaced Value" = Table.ReplaceValue(#"Changed Type","","unrated",Replacer.ReplaceValue,{"Column1"}) in #"Replaced Value"- dineshj5 years agoHelper I
Thank you! When I refresh the data next time, will it replace the null to Unrated automatically?
- Greg_Deckler5 years agoCommunity Champion
dineshj Correct.