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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Johnnyg
Frequent Visitor

Creating Formatted Text for Display in Text Visual

I am trying to consolidate several fields into a formatted field with the intent to utilize less real-estate in my report.

In Query Editor, I have created a custom with the intent to have formatted text in the fields - to display the field "as is" in a text visual.  I am not maintaining the format after the query is applied.  (I am wondering if I am doing this the wrong way)

 

The custom column is built from all columns of Text type - using the followng statement:
FullAddress = [Name] & "#(lf)" & [Address] & "#(lf)" & [City] & ", " & [State] & "  " & [Zip] & "#(lf)" & [Phone]
 
The column's values would be formated text (like Excel does it).  Resulting in a formatted field in the custom column (FullAddress) as such:
John P. Jones
1121 S Andrews St
Faraway, NM, 09876
(123) 456-7890
 
Then, by using using a text visual (long text), I can list the Full Address (formatted as above) WYSIWYG
 
The format shows in the custom column (FullAddress), but when the query is applied the format is lost.

What am I doing wrong?  Or, is there a better approach?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Supposedly <br> is supposed to work although I haven't ever tried it after this thread (2nd page):

 

http://community.powerbi.com/t5/Desktop/New-line-Characters/m-p/37634#M13812

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Supposedly <br> is supposed to work although I haven't ever tried it after this thread (2nd page):

 

http://community.powerbi.com/t5/Desktop/New-line-Characters/m-p/37634#M13812

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you, smoupre!!!  I will follow that thread.  I believe this is a reported issue, and the PowerBI team is working on a solution.

 

Cheers!

 

Is anyone able to get past this issue. I have started looking at long text viewer, however that does not solve the problem of adding new line character at the place required. Long text viewer is not providing control to add new line character. it just provides support for wordwrap.

 

 

Brian_M
Responsive Resident
Responsive Resident

Hi, I am using Long Text Viewer (Beta .2) with 'Newline starts with' option under the Format pane under Text...  It allows me use any delimiter I choose (note case sensitive) to denote a line break.  @nilkaush see if you can find those options in the Format pane?

Greg_Deckler
Community Champion
Community Champion

This has come up before and there was some guidance from the Power BI team at the time on what character to use as a line feed. However, it didn't work at that time and I think they might have filed it as a bug to be fixed. Let me see if I can dredge up the old thread.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.