Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I need to enter non-breaking space in the middle of text string in M. Haven't found any hints on Google. For example here, how do I change space into non-breaking space:
= [Text1] & " " & [Text2]
Solved! Go to Solution.
So for non-breakingspace that would be:
[TEXT1] & Character.FromNumber (160) & [TEXT2])
In general, you can enter special characters like:
#(lf)
No, this is not line-feed I am trying to insert. I am trying to insert a non-breaking space (160).
"#(00A0)"
Hi
Does the example below look like a line break?
= [Text1] & "" & [Text2]
Because as you wrote it should not stay, but if you are presenting this in a table or matrix the formula will break the line according to the width of the column.
The width you can adjust with the same mouse.
Change the field configuration as shown below.
Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
Best Regards,
Rfranca
Using what? I tried:
= [Text1] & #160 & [Text2]
= [Text1] & #(160) & [Text2]
= [Text1] & #("160") & [Text2]
= [Text1] & "#160" & [Text2]
Nothing works 😞
= [Text1] & "#(00A0)" & [Text2]
Hi,
Use the Character.FromNumber () function and use values from the ASCII table.
In this case the value 10 represents the line break.
Please try and test using it.
[TEXT1] & Character.FromNumber (10) & [TEXT2])
Attention, in this example expression we are concatenating text with text, so the field [TEXT1] and [TEXT2] can not be numeric, otherwise you must use the Number.ToText () function for conversion.
Please try and test using it. And please mark the right answer as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
Best Regards,
Rfranca
So for non-breakingspace that would be:
[TEXT1] & Character.FromNumber (160) & [TEXT2])
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 |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |