Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
Hi everyone,
I am new to M so any help kindly appreciated.
I am trying to replace a rich text <br/M with a carriage return. I tried this:
RemSpace = Text.Replace(Source," "," ") ,
RemCR = Text.Replace(RemSpace,"<br />","#(cr,lf)"),
The first one works well but the second doesn't work at all. Any idea's?
Solved! Go to Solution.
Actually, I got it wrong but thanks anyway..
This worked...
ReplaceHTMLBR= Text.Replace(RemSpace,"<br />","#(lf)#(cr)")
I did not notice a difference between lf and cr or cr and lf. I'm remembering the type writer!
Hi @Anonymous ,
What about clicking the option Repalce values like below?
If you still need help, please share your data sample which could reproduce your scenario and your desired output so that we could help further on it.
Best Regards,
Cherry
Actually, I got it wrong but thanks anyway..
This worked...
ReplaceHTMLBR= Text.Replace(RemSpace,"<br />","#(lf)#(cr)")
I did not notice a difference between lf and cr or cr and lf. I'm remembering the type writer!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 48 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 107 | |
| 106 | |
| 39 | |
| 27 | |
| 27 |