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 / Create a collection ba...
Power Apps
Answered

Create a collection based in values in one column

(0) ShareShare
ReportReport
Posted on by 565

Hi,

 

I have a table in dataverse that contains a string column called "IDHardware", by example:

 

IDHardware

1:4:7

 

With 3 or more values separated with ":" or "," (it is the same for me)

 

How can I create a collection like:

 

collectionIDHardware

1

4

7

 

With one row for each value or the column.

I need to use a Lookup to retrieve the value of this column, and the what else?

Thanks in advance,

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @EmilioRoqueta69 one method:

     

    ClearCollect(
     collectionIDHardware,
     Ungroup(
     ForAll(
     'Your Data',
     Split(
     'Single line text column',
     ";"
     )
     ),
     "Value"
     )
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • EmilioRoqueta69 Profile Picture
    565 on at

    Thanks Amik,

     

    I have some issues with this formula, I think the Ungroup is not working because the value of the lookup column is not a table.

    I share my formula and the example of the column.

    If you are so kind and take a look please. Thank you very much!

     

    Ungroup.png

  • Verified answer
    timl Profile Picture
    37,248 Super User 2026 Season 1 on at

    Hi @EmilioRoqueta69 

    It looks like you want to do this for a single record only - the one where the ID matches the value of lbllastIDHardware. If that's the case, you can try this:

     

    ClearCollect(
     colMyItemsHard,
     Split(LookUp(tbd_HardwareRequests, ID=lbllastIDHardware.Text),
     ":"
     )
    )
  • EmilioRoqueta69 Profile Picture
    565 on at

    Yes! 

    It is works! Thank you both

     

    ClearCollect(
    colMyItemsHard,
    Split(LookUp(tbd_HardwareRequests, ID=lblLastIDHardware.Text).Hardware,":")
    );

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

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard