Forum Discussion
mba
4 years agoFrequent Visitor
Search function with asterisk
Hi all, Even though support.microsoft.com says: ... in my column: Keyword: Bryllup = IF(SEARCH( "bryllup*" , someTable[someColumn] , , BLANK() ),TRUE(),FALSE()) ... I get...
- 4 years ago
Hi, mba ;
You could use split in power query.
1. add conditional column,
2.split it.
The final output is shown below:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WKs7PTS1JrShRQDAO78gpU0gqqszJKS1QwJBXitWJVkpMSlaKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [name = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"name", type text}}), #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if Text.Contains([name], "bryllup") then "True" else "Flase"), #"Split Column by Delimiter" = Table.SplitColumn(#"Added Conditional Column", "name", Splitter.SplitTextByDelimiter("bryllup", QuoteStyle.Csv), {"name.1", "name.2"}), #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"name.1", type text}, {"name.2", type text}}) in #"Changed Type1"Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yalanwu-msft
4 years agoCommunity Support
Hi, mba ;
You could use split in power query.
1. add conditional column,
2.split it.
The final output is shown below:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WKs7PTS1JrShRQDAO78gpU0gqqszJKS1QwJBXitWJVkpMSlaKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [name = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"name", type text}}),
#"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if Text.Contains([name], "bryllup") then "True" else "Flase"),
#"Split Column by Delimiter" = Table.SplitColumn(#"Added Conditional Column", "name", Splitter.SplitTextByDelimiter("bryllup", QuoteStyle.Csv), {"name.1", "name.2"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"name.1", type text}, {"name.2", type text}})
in
#"Changed Type1"
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.