The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Team,
can anyone help me how can i remove some text from the column headers in M Query.
Below is how my advance editor looks like as of now.
let
Source = Table.Combine({#"59Z]&size=10000", #"59Z]&size=10000 (2)"}),
#"Filtered Rows" = Table.SelectRows(Source, each not Text.Contains([Column1._index], "xyz"))
in
#"Filtered Rows"
Solved! Go to Solution.
I figured it out 🙂 thank for your help @amitchandak
let
Source = Table.Combine({#"59Z]&size=10000", #"59Z]&size=10000 (2)"}),
#"Rename all Headers" = Table.TransformColumnNames(Source,each Text.Replace(_,"Column1._source.","")),
#"Filtered Rows" = Table.SelectRows(#"Rename all Headers", each not Text.Contains([Column1._index], "xyz"))
in
#"Filtered Rows"
@amitchandak the column names contains text "column1._source" which i need to replace with null.
I figured it out 🙂 thank for your help @amitchandak
let
Source = Table.Combine({#"59Z]&size=10000", #"59Z]&size=10000 (2)"}),
#"Rename all Headers" = Table.TransformColumnNames(Source,each Text.Replace(_,"Column1._source.","")),
#"Filtered Rows" = Table.SelectRows(#"Rename all Headers", each not Text.Contains([Column1._index], "xyz"))
in
#"Filtered Rows"
User | Count |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |