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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
FedericoM1
Regular Visitor

Insert Line Break (carriage return?) in Text.

Hello,
I have a table which contains a colums with Email-address and another with multiple URLs.
Example:

FedericoM1_2-1664198500072.png

The purpose of this is to send the URLs to the Email-addresses via Teams using the Power Automate integration.

Unfortunately the URLs are sent as a long continuos line IE. https://Link1 https://Link2  https://Link3
Instead of:
https://Link1
https://Link2
https://Link3

What I did:
In Power Query I've replaced the spacing characters with the #(cr) carriage return. It works but when I load the data in the report it is again a flat line.

FedericoM1_0-1664197752990.png

FedericoM1_1-1664198013181.png


Then I've tryed to SUBSTITUTE the empty space with UNICHAR(10) and/or UNICHAR(10240) but again it does not work and I get a flat line. I was making an attempt by inserting a special charachter and SUBSTITUTE it with UNICHAR(10) and/or UNICHAR(10240) but still no luck.

My last attempt was to use the Replace function in the integrated Power automate Flow but the Compose step does not let me to do it (It refuses to enter the function)

FedericoM1_4-1664198783577.png


The output is this string: replace(https://Link1 https://Link2  https://Link3," ", decodeUriComponent(‘%0A’))

What should I do to get the URLs be divided by line breaks and sent in the correct way?
Thank you.



 

1 ACCEPTED SOLUTION
FedericoM1
Regular Visitor

Solved.
In order to have a line break visible in the final Teams message the data needs to be in HTML format.
I've replaced the " " between the URLs with "<br>" and it works.

View solution in original post

3 REPLIES 3
FedericoM1
Regular Visitor

Solved.
In order to have a line break visible in the final Teams message the data needs to be in HTML format.
I've replaced the " " between the URLs with "<br>" and it works.

v-jingzhang
Community Support
Community Support

Hi @FedericoM1 

 

I recommend that you split the URL column by delimiter " " into Rows. Then you will have only one URL value on each row. 

Split columns by delimiter - Power Query | Microsoft Learn

vjingzhang_0-1664272744716.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Greg_Deckler
Super User
Super User

@FedericoM1 Table visuals don't seem to respect line breaks. However, other visuals like Card visuals do. So, maybe try an alternative visual?


@ 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...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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