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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors