Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Adding line break to long text field (paragraph)

Hello All,

I have long text fields (Paragraph) in column. Want to add line break based on delimiter and show it in same field. Dont want to
split into multiple columns. Thanks in advance

Screenshot 2022-01-18 141523.png

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Then the option is to go for dax has @amitchandak  refered something similar to:

 

Calculated column

With Breaks = SUBSTITUTE( 'Table'[Column1], " * ", UNICHAR(10))

 

Measure

Measure With Breaks = SUBSTITUTE( SELECTEDVALUE('Table'[Column1]), " * ", UNICHAR(10))

Result below:

 

MFelix_0-1642501385235.png

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

9 REPLIES 9
MFelix
Super User
Super User

Hi @Anonymous ,

 

On the Query editor you can use the #(lf) ion this case I have added made text replace and the made the code like this:

= Table.ReplaceValue(Source,"*","#(lf)",Replacer.ReplaceText,{"Column1"})

 

MFelix_0-1642497345908.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

I'm using Streaming Dataset here.  query editor option is not available

Hi @Anonymous ,

 

Then the option is to go for dax has @amitchandak  refered something similar to:

 

Calculated column

With Breaks = SUBSTITUTE( 'Table'[Column1], " * ", UNICHAR(10))

 

Measure

Measure With Breaks = SUBSTITUTE( SELECTEDVALUE('Table'[Column1]), " * ", UNICHAR(10))

Result below:

 

MFelix_0-1642501385235.png

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi,
Measure did work but getting alignment problem. Everything aligned to extreme right in each field. Tried formatting options but nothing working.

Hi @Anonymous,

 

You need to text to be Justified? In Power BI text can only be align left, center and rigth there is no Justify option.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Text is aligned right, tried to moving it to left through formatting options but it  is not working.

Is it a Matrix or a Table?

 

Have you tried and check the option of the specific column values that way you can individually change each of your columns to left or rigth alignment.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @Anonymous ,

 

Forgot to add the image of the property, has can see the measure is align center:

 

MFelix_0-1642514371035.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



amitchandak
Super User
Super User

@Anonymous , We usually Try to add unichar(10) for a line break. But between text you may have substitute

https://docs.microsoft.com/en-us/dax/substitute-function-dax

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.