Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
A bit new to power query and I cant seem to find a soultion for puting a pipiline between words and removing the comma at the end of a string ex. AAA, BBB, needs to transform to AAA | BBB
Any help or guidance appreciated.
Thanks.
Solved! Go to Solution.
You can use this where Data is column name
= Text.Replace(Text.TrimEnd([Data],","),","," |")
\\ A more robust formula would be
Text.Replace(Text.Replace(Text.TrimEnd([Data],",")," ",""),","," | ")
@Vijay_A_Verma thanks.
Is the approache the same for a column that is AAA, BBB, CCC, ? I cant seem to get it working.
Br.
Rado
You can use this where Data is column name
= Text.Replace(Text.TrimEnd([Data],","),","," |")
\\ A more robust formula would be
Text.Replace(Text.Replace(Text.TrimEnd([Data],",")," ",""),","," | ")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
27 | |
25 | |
25 | |
13 | |
9 |
User | Count |
---|---|
24 | |
19 | |
16 | |
13 | |
10 |