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

How to maintain text formatting from custom columns in text visuals

I have created a custom column with formatting (#(cr), #(tab), #(lf),...) for the intent of displaying the format in the text box visual.

 

when I apply the query, the formatting is lost.   How can I create a column that will concatinate strings and formatting such that it will display with that formatting in my visuals?

 

For example:

Column = [Name] & "#(lf)" & [Address] & "#(lf)" & [City] & ", " & [State] & "  " & [Zip] & "#(lf)" & [Phone]

 

To result in Text visual as follows:

John P. Jones

1121 S Andrews St

Faraway, NM, 09876

(123) 456-7890

 

I have searched the community, but have not found either the visual or the structure to maintain format into the visual.

4 REPLIES 4
Johnnyg
Frequent Visitor

To add clarity:

The custom column should result from all columns being Text type 

FullAddress = [Name] & "#(lf)" & [Address] & "#(lf)" & [City] & ", " & [State] & "  " & [Zip] & "#(lf)" & [Phone]

 

and 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 using a text visual, 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. 

Wonder if this is a know issue???  Or, am I going at this with the wrong approach???

 

Thanks for your response to this newbe.

Seems unusual. Make sure to save your file at each step. 

 

I tried to recreate your solution but it doesn't happen to my version. 

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Thank you for your quick response.   Very interesting differences of experiences.   Are you creating the column in Query Editor? 

 

Thanks!!!

BhaveshPatel
Community Champion
Community Champion

All the columns should have a same data type to concatename them together.

 

In your case, it should be the text data type for all the columns to join them together.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.