Is there a way to add line breaks in a string of text in Microsoft's DAX language?

jschlereth picture jschlereth · Mar 10, 2016 · Viewed 21.8k times · Source

I have a DAX function that pulls in multiple strings of text (from multiple columns) into one cell. But on display I want to have a line break in between the header and the body of the paragraph. Is there a way to code in a line break with DAX? FYI, I'm using Power BI for this. Thanks!

Answer

nguyen giang picture nguyen giang · Jul 23, 2016

In BI Desktop, just type alt-enter in your DAX formula to add new line For example:

CONCATENATEX(Project, ProjectName & ":" & [some-measure], 
//new line in parameter delimiter
",
"
)