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 / Show in App multiple c...
Power Apps
Unanswered

Show in App multiple columns from single SP list row based on values in other columns in same row

(1) ShareShare
ReportReport
Posted on by 4
The scenario is before someone uses a tool they either complete a checklist for that tool or if a checklist has been submitted previously for that tool, they get to review the defects noted from the previous submission. i.e. the problem is Displaying Defect Answers only from an earlier submission.
When a checklist is submitted it patches to a Sharepoint list.
When the next person comes along, and selects the tool, I create a collection of the latest submission "LatestSubmissions" for that tool. The collection is a single line table with the questions, answers and any comments for defects where a defect is A = "N". There can be multiple questions in the checklist, field_4 = Q01, field_5 is A01, field_6 is C01, field_7 = Q02, field_8 is A02, field_9 is C02. etc.
I am looking to be able to show to create another Collection "NResponses" of all the Questions and Comments where the Answer is N, so I can display them on a Gallery with Items "NResponses". However I can not work out how to create that NResponses collection - I can create it for the first N answer, or the last N answer, but not more than 1.
For example, this only captures one answer.
ClearCollect(
NResponses,
ForAll(
LatestSubmissions,
If(
field_5 = "N",
Collect(NResponses, {Question: field_4, Comment: field_6})
);
If(
field_8 = "N",
Collect(NResponses, {Question: field_7, Comment: field_9})
)
)
)
Any suggestions appreciated.
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
    can u try this:
    Clear(NResponses);
    
    ForAll(
        LatestSubmissions,
        With(
            {
                tempNResponses: ConcatenateCollections(
                    If(field_5 = "N", [{Question: field_4, Comment: field_6}], []),
                    If(field_8 = "N", [{Question: field_7, Comment: field_9}], [])
                    // Add more lines here for additional questions as needed
                )
            },
            Collect(NResponses, tempNResponses)
        )
    );
    
    If the Post help you solve your issue, please mark it as verified answer and give it a like so we can help other in the community with similar issues 

    Greetings
     
  • PMAM Profile Picture
    4 on at
    Thanks @mmbr1606, for your help. However, my App doesn't seem to like ConcatenateCollections. I have also tried replacing ConcatenateCollections in your code with Concat or Concatenate, but neither seem to work.
     

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 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard