The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everyone,
I have some text that include some "manual" formating with \n and spaces. It seems to load correctly in the dataset:
But when I use it in a visual like a Table or Matrix, the whitespace are automatically trimmed.
With a Card visual there is a "Source spacing" option which looks like it could work but as far as can tell there is no way to align left so it's hard to tell. Anyway Cards are very limited and probably wouldn't be sufficient for my needs.
Is there a way to display text "as is" in a table or matrix?
Edit:
Small addendum: I can make it work using a custom visual "Text Wrapper by MAQ Software" so it's definitely not a issue with the data itself. However just like the card it's very limiting and I really wish there was a solution for the table/matrix.
Thanks!
Solved! Go to Solution.
Hi @JeanMartinL ,
The problem here is that the spaces get trimmed in this case you need to replace the space by the empty character.
You can copy paste from this link:
Has you can see below I have two rows one with the spaces and the empty character:
In this I have made a replace values:
= Table.ReplaceValue(#"Added Custom"," ","<u+200f><u+200f><u+200e> <u+200e>",Replacer.ReplaceText,{"Custom"})
Table.ReplaceValue(#"Added nbsp;e.ReplaceValue(#"Added
nbsp;e.ReplaceValue(#"AddedThe text seems the same thing but is from the white space.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @JeanMartinL ,
The problem here is that the spaces get trimmed in this case you need to replace the space by the empty character.
You can copy paste from this link:
Has you can see below I have two rows one with the spaces and the empty character:
In this I have made a replace values:
= Table.ReplaceValue(#"Added Custom"," ","<u+200f><u+200f><u+200e> <u+200e>",Replacer.ReplaceText,{"Custom"})
Table.ReplaceValue(#"Added nbsp;e.ReplaceValue(#"Added
nbsp;e.ReplaceValue(#"AddedThe text seems the same thing but is from the white space.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsWell done! That's a tricky solution that I never thought about.
This works perfectly for my needs, thanks!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
71 | |
51 | |
50 |
User | Count |
---|---|
128 | |
122 | |
77 | |
64 | |
60 |