Forum Discussion
Merge two power BI query steps
- 5 years ago
Hi murali5431 ,
Try the follow query:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlSK1YlWSsIgwUQyggkmUpDIVKXYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]), #"Replaced Value" = Table.ReplaceValue(Source,"",null,Replacer.ReplaceValue,{"Column1"}), #"Removed Duplicates" = Table.FromRows(List.Distinct(Table.ToRows(#"Replaced Value"),each if _{0}=null then Text.NewGuid() else _{0})) in #"Removed Duplicates"If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
murali5431 , I think null ad duplicate in two-step is fine
amitchandak I did them as two steps as suggested:
First filtered out null values, the removed duplicates. Now when I want to remove the filter for null values, I dont find the null value filter itself after second step. Can you please assist?
Thanks,
Muralidhar
- v-kkf-msft5 years agoCommunity Support
Hi murali5431 ,
Try the follow query:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlSK1YlWSsIgwUQyggkmUpDIVKXYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]), #"Replaced Value" = Table.ReplaceValue(Source,"",null,Replacer.ReplaceValue,{"Column1"}), #"Removed Duplicates" = Table.FromRows(List.Distinct(Table.ToRows(#"Replaced Value"),each if _{0}=null then Text.NewGuid() else _{0})) in #"Removed Duplicates"If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.