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.
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
Solved! Go to 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:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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"})
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsI'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:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi,
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsText 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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Forgot to add the image of the property, has can see the measure is align center:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |