Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Duplicate collection record based on multi-select people picker

Posted on by 59
Hi all,
 
I have a gallery of data (from a SharePoint list) and within is a checkbox. Oncheck collects that data, UnCheck removes it, etc.
 
However, one of the fields is multi-select person column, so obviously my collection stores all the names in the single record as it should.
 
My question is, is there a way to create a collection that counts the number of rows for that column, the loops through and created duplicate rows of the same data (essentially splitting the people person column into its own row for each person?)
 
Any help would be appreciated it. I thought it was count rows, then a sequence loop but I think I am over engineering the issue.
 
Cheers,
 
DW
Categories:
  • DMSC Profile Picture
    DMSC 59 on at
    Duplicate collection record based on multi-select people picker
    Thanks WarrenBelz 
     
    I woke up this morning and just realised something similar but you beat me to it! 
     
    Much appreciated as always! 
     
    DW
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 143,532 on at
    Duplicate collection record based on multi-select people picker
    Hi DMSC
    You have not included any code here, but if you want a count of rows in your gallery with a separate record for each item in a multi-value field
    CountRows(
       Ungroup(
          GalleryName.AllItems,
          MultiValueFieldName
        )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard