Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
HI all,
I want to delete all the rows which has ".." value in column name "Street_No". Can somebody help me to acheive this?
Solved! Go to Solution.
You can remove it in the Power Query using an additional step
let
Source = ...,
#"Removed Rows" = Table.SelectRows(Source, each [Street_No] <> ".."))
in
#"Removed Rows"
If this doesnt work for you, you have to remove the columns from the source itself.
Thanks.
Hi,
Thanks for the solutions KhaledAbdrhman ,ann_2024,dufoq3 and jennratten offered, and i want to offer some more infotmation for user to refer to.
hello @Vidushi_Mangal , based on your description, you can create a blank query, and input the following code in advanced editor.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQy1gMCpVgdMBtMm5iagenEpGQ9iGQsAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Street_No = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Street_No", type text}}),
Custom1 = Table.TransformColumns(#"Changed Type",{"Street_No",each if Text.Contains(_,"..") then null else _}),
#"Removed Blank Rows" = Table.SelectRows(Custom1, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
in
#"Removed Blank Rows"
And you can refer to the attachment.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for the solutions KhaledAbdrhman ,ann_2024,dufoq3 and jennratten offered, and i want to offer some more infotmation for user to refer to.
hello @Vidushi_Mangal , based on your description, you can create a blank query, and input the following code in advanced editor.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQy1gMCpVgdMBtMm5iagenEpGQ9iGQsAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Street_No = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Street_No", type text}}),
Custom1 = Table.TransformColumns(#"Changed Type",{"Street_No",each if Text.Contains(_,"..") then null else _}),
#"Removed Blank Rows" = Table.SelectRows(Custom1, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
in
#"Removed Blank Rows"
And you can refer to the attachment.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Select your column in power query and try to sort it so that the rows that contain the specific word you want is above each other, then select delete rows and delete them now it should be easier, hope this helped you.
You can remove it in the Power Query using an additional step
let
Source = ...,
#"Removed Rows" = Table.SelectRows(Source, each [Street_No] <> ".."))
in
#"Removed Rows"
If this doesnt work for you, you have to remove the columns from the source itself.
Thanks.
Hello, select the column named "Streen_No", choose the filter button on the header. Follow the prompts to select rows which do not contain "..".
Thanx for response
But this will only filter the table and will not remove the rows. I want to delete them permanently.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |