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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

DAX Expression: Need Multiple Space Line Breaks for use in Matrix Visual

Hi All,

 

I am able to apply one line break to my DAX expression to allow for new text start. However, the matrix visual that I will end up using doesn't really allow padding on the start of multiple rows (as if it is single spaced). The card and enlighten data story visuals won't work because either I can not enable word wrap and/or the visual doesn't respect the orginial link break from the DAX code.

 

My current DAX code

CONCATENATE(" Real Demand Chair: ",[RealDemandChairNotes])

& UNICHAR(10) &

CONCATENATE(" Real Demand Lamp: ",[RealDemandLampNotes])

& UNICHAR(10) &

CONCATENATE(" Real Demand Table ",[RealDemandTableNotes])

 

My current output: (with Matrix Visual)

Real Demand Chair: Real Demand Output is

Real Demand Lamp: Real Demand Output is

Real Demand Table: Real Deamnd Output is

 

My Desired Output:

Real Demand Chair: Real Demand Output is

 

Real Demand Lamp: Real Demand Output is

 

Real Demand Table: Real Deamnd Output is

 

 

Thanks in advance for any help! I will continue to try to see if I can get it!

1 ACCEPTED SOLUTION
edhans
Super User
Super User

have you thought of adding the non-breaking space after the unicode line feed? It is 160.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

5 REPLIES 5
edhans
Super User
Super User

have you thought of adding the non-breaking space after the unicode line feed? It is 160.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Thanks @edhans - this worked!

 

Also, I was able to find another solution by simply adding another "UNICHAR(10) &" for a double line break.

 

Thanks!

Aaron

I know this thread is old, but in case anyone sees this... Did this actually work for you? I've added two UNICHAR(10) in my text and it does nothing. Were you using all text in the DAX or were your line breaks between other measures? 

UNICHAR(10)&UNICHAR(160)&UNICHAR(10) worked for me

Great @Anonymous - often more than one way to get the results you need! 😁



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.