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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding a different sep...
Power Apps
Answered

Adding a different separator to the final value in a ComboBox?

(0) ShareShare
ReportReport
Posted on by 5

Hey all,

 

Is there any way to add a different separator to the final selection of ComboBox items? 

 

Like having 1, 2 and 3.

 

Instead of 1, 2, 3?

 

I can't seem to figure it out, I've looked everywhere.

 

Office365Outlook.SendEmailV2(
TrimEnds(TextInput1),
"LLC: Service Estimate",
"Hey " & TrimEnds(Proper(TextInput1_1)) & ",<br/><br/> Your service estimate for " & Concat(
ComboBox1.SelectedItems,
Value & ", "
) & " is $" & RoundUp(
((Gas / 15) * (Distance * 2) + (2 * 40 * Time) + Waste) * 1.025,
0
) & "."
)
Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    For a table of string values, such as: ComboBox1.SelectedItems, with a string field named "Value" try this:

     

    With({ aLength: CountRows(ComboBox1.SelectedItems)},
     If(aLength > 1,
     Concat(
     FirstN(ComboBox1.SelectedItems, aLength - 1), 
     Value,
     ", "
     ) &
     "and " &
     Last(ComboBox1.SelectedItems).Value
     ,
     First(ComboBox1.SelectedItems).Value
     )
    )
    

     

    Hope that helps,

    Bryan

  • Cat Schneider Profile Picture
    488 Most Valuable Professional on at

    Another option you could try is the following:

     

    With({i: Last(Combobox1.SelectedItems)},

        Concat(ComboBox1.SelectedItems,

            If(i.Value = ThisRecord.Value, "and ") & Value,

            ", "

        )

    ) & " is $" & RoundUp(

    ((Gas / 15) * (Distance * 2) + (2 * 40 * Time) + Waste) * 1.025,

    0

    ) & "."

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard