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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
FawadRehman
Helper I
Helper I

link break character in calculated column

Here is my lookup column code

 

Full Contact = LOOKUPVALUE(' Contacts'[Manager Name],' Contacts'[Id],'Customer Contact'[ ContactId])
& "i want line break character here " & LOOKUPVALUE(' Contacts'[Email],' Contacts'[Id],'Customer Contact'[ ContactId])
& "i want line break character  here " & LOOKUPVALUE(' Contacts'[Telephone],' Contacts'[Id],'Customer Contact'[ ContactId])

 

 

output

John Doe

JD@xyz.com

123-345-5677

 

Thanks

10 REPLIES 10
Greg_Deckler
Super User
Super User

See the thread here and see if any of the suggestions fix it. There are 2 pages and they note that <br> should work.

 

http://community.powerbi.com/t5/Desktop/New-line-Characters/td-p/37634/highlight/true

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

<br> not working either

Hi @FawadRehman,

 

Based on my test, we can press <SHIFT>-<ENTER> buttons to add a line break in a DAX expression. Please note the line break will not display when we present the data in visuals, but it actually exists. When the cursor hovers on the value, the tooltip will display value with a line break. See:

 

q1.PNGq2.PNG

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Qiuyun. This worked like a charm in a PowerPivot Report for me!

Hi @v-qiuyu-msft i am looking for line break in visual. for example 

 

output

John Doe

JD@xyz.com

123-345-5677

Hi @FawadRehman,

 

I'm afraid it's not supported to display one value in many lines in a visual currently. You need to split the value to many records then display them in a visual on many rows.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

At this point i am doing the same solution that you mentioned. 

Have you tried this technique? http://markvsql.com/2015/03/advanced-column-splitting-in-power-query/ 

 

Treb Gatte | Business Solutions MVP | Blog | Twitter

 

 

jayeckles
Advocate III
Advocate III

Presuming \n doesn't do the trick?  You've probably already tried this, but does char(10) or chr(10) do anything for you?

Both not working for me.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.