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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ThePrasch
Advocate I
Advocate I

Format Coding to stack inside cell

Hey gang -

 

I have, what I believe, is a unique ask. Has anyone come across a way to create custom formatting strings that will allow me to stack two different output values in a table on top of one another rather than forcing them to always go across and wrap around. Below is a picture of what I'm showing (a variance $ amount and its percentage in the same column), but I want to have it appear as $'s on top and the percentage below in every cell.

 

My formula simply takes 

IF(_Trd_View = "Both ($ & %)", FORMAT(_ProperValue,[Format_Coding]) &" ["FORMAT(_Value_Pctg,"+0.0%;-0.0%") &"]"
 
I want to know if there is something I can insert that forces a carriage return in the above formula and moves everything past the &" ["& to a new line within the same cell.
 
ThePrasch_0-1651243942922.png

 

1 ACCEPTED SOLUTION
ThePrasch
Advocate I
Advocate I

So - I managed to dig up the solution after posting this. I found one way is to insert a UNICHAR(##) into my concatenate statement and that forces enough continuous whitespace to push results to a new row in the cell. 

 

The solution I found was in the following PBI community forum: https://community.powerbi.com/t5/Desktop/Carriage-Returns-concatenated-text/m-p/80527/highlight/true

 

View solution in original post

2 REPLIES 2
ThePrasch
Advocate I
Advocate I

So - I managed to dig up the solution after posting this. I found one way is to insert a UNICHAR(##) into my concatenate statement and that forces enough continuous whitespace to push results to a new row in the cell. 

 

The solution I found was in the following PBI community forum: https://community.powerbi.com/t5/Desktop/Carriage-Returns-concatenated-text/m-p/80527/highlight/true

 

Hi @ThePrasch ,

 

Glad your problem is solved, please mark it so that more people can find it. Or you can just insert a line break in the second half of the <format_string> by pressing the ALT+ ENTER key combination to achieve the line break.

vchenwuzmsft_0-1651543871925.png

 

Best Regards

Community Support Team _ chenwu zhu

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.