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 / Display text from Coll...
Power Apps
Unanswered

Display text from Collection with complex content (table, record), with Distinct

(0) ShareShare
ReportReport
Posted on by 4

 

Hello everyone,

 

I need your help because I'm like 80% to complete my App and I'm blocked at one of the last step.
This forum has been very useful because it is my first app but here I'm blocked and didn't find a solution anywhere.

Ok here we go:

 

1. My app is build from a SharePoint list. Below is a screenshot from my list:

 

sharepoint_list.png

 

A: drop down list, one choice only

B: free text field

C: drop down list, one choice only

D : drop down list, one choice only

E: free text field

F: drop down list, multiple choices possible (on screenshot, you can see 2 choices seperated by coma). And same choice can be picked in different items: on screenshot you can see "[Delay for file integration:yes]" has been chosen for both items.

 

 

I built the app: objective is to display the content from SharePoint list in a Gallery, with for each item a checkbox.

If user check the checkbox, item content is added to a Collection.
Then automatically a text field at the bottom displays data of items checked (only part of the data displayed).

app_overview.png

- gallery, with items "RTM - Asset 1" (but different impact), with checkbox for each one

- text field (below "results count") where I would like to display data from Gallery items checked

 

Here are the details of my checkbox:

- Text is: I just display the text I need to display, which is 'Impact Description' followed by 'Impact Description: details' (Concat is there because 'Impact Description: details' is a drop down list and can have several choices):

checkbox_text.png

 

- OnCheck: I Collect data from the item checked. I need: Asset, Impact (the Value, because Impact is drop down list with only 1 choice possible), Impact Description, Impact Description: details:

checkbox_oncheck.png

 

- OnUncheck: I remove item from my collection if Asset and Impact.Value are in:

checkbox_onuncheck.png

 

- Default: it's also with Asset & Impact.Value:

checkbox_default.png

 

Ok all of this is working. If I check the box, the collection is populated, and ofc the "DescriptionDetails" is a complex data (table) because can contain several choices:

collection_content.png

 

Now my question is:

 

My text field is displaying:

- first: "Description" values from Collection, row by row, with a Concat

- second: "DescriptionDetails" values from Collection.

=> here is my Problem: I do not manager to make Distinct to avoid to display choices when they are similar, but from different items.

"Asset 1 - Unavailable" is having into 'DescriptionDetails' 2 choices

"Asset 1 - Disturbed" is having into 'DescriptionDetails' 1 choice, which is already displayed so don't want to see it (see screenshot)

> [Delay for file Integration: yes] should not be displayed twice.

 

textfield.png

 

edit: found working solution with Split() function, check below post.
But not sure that this solution is the best way to handle it...

 

Thanks!!

Categories:
I have the same question (0)
  • burnout62 Profile Picture
    4 on at

    Hello,

     

    After doing some research, I updated my formulas and partially fixed my issue.
    But the main Problem is still there: see original post updated.

    My problem is to display data, with Distinct, from table included in Collection (yes, weird situation...).

    Thank you.

     

    edit: I found a working solution with Split() Function today, result is here but not sure that it is the best way to handle this...See below my text field code:

    Concat(colCheckboxDescription;Description;";" & Char(10))
    &"."&Char(10)&Char(10)&
    Concat(Distinct(Split(Concat(colCheckboxDescription;Concat(DescriptionDetails;Value;",");",");",");Value);Value;" ")

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard