web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,679 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
    36,387 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard