Notifications
Announcements
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.
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
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268