web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collection values with...
Power Apps
Answered

Collection values with line break

(0) ShareShare
ReportReport
Posted on by 88

Hi PowerApps Gurus 😉 ,

 

maybe you can help me with this, I'm quire new to PowerApps and a little desperate here.

 

Can I store multiple items in one collection value seperated by a line break?
Currently all values are seperated by comma, also when I try to store them with a line break, it is still all in one row (delimited by space).

ebels_0-1697705385195.png

 

How my data is stored in the collection:

 

Collect(
 colSubmittedTrucks,
 {Truck: varTruckName,
 Maschinist: Concat(cmb_Maschinist.SelectedItems,displayName, ", "),
 Gruppenführer: Concat(cmb_GF.SelectedItems,displayName, ", "),
 Squad: Concat(colPresenceNamesTruck,displayName,", "),
 Notes: txtIn_NotesPresence.Text,
 Material: Concat(cmb_Material.SelectedItems,Title,", ")}
);

 

 

Based on this collection I'm creating a html table. But in this table I want to show the squad members with a line break insted of comma seperated. So I thought the easiest way is to store the values already the correct way in the collection. But maybe I can transform the collection values in the html table if it's not possible to store the names with a linebreak in the collection?

ebels_2-1697705772906.png

 

"<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'>
 <th>Fahrzeug</th> <th> Maschinist </th> <th> Gruppenführer </th><th> Mannschaft </th> <th>Material</th> <th> Bemerkungen </th>
 </tr>
 <tr>" & Concat(
 colSubmittedTrucks,
 "<td>" & Truck & " </td>
 <td>" & Maschinist & " </td>
 <td>" & Gruppenführer & " </td>
 <td>" & Squad & " </td>
 <td>" & Material & "</td>
 <td>" & Notes & "",
 "</tr><tr>"
) & "</table>"

 

 

Thank you in advance!

Sarah

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    I think you can use Char(10) for your line break. 🙂

  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @ebels 

    The <br> character will display a line break:

    "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'>
     <th>Fahrzeug</th> <th> Maschinist </th> <th> Gruppenführer </th><th> Mannschaft </th> <th>Material</th> <th> Bemerkungen </th>
     </tr>
     <tr>" & Concat(
     colSubmittedTrucks,
     "<td>" & Truck & " </td>
     <td>" & Maschinist & " </td>
     <td>" & Gruppenführer & " </td>
     <td>" & Substitute(Squad, ",", "<br>") & " </td>
     <td>" & Material & "</td>
     <td>" & Notes & "",
     "</tr><tr>"
    ) & "</table>"

     

  • ebels Profile Picture
    88 on at

    Hi @timl,

    that did the trick, thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard