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 / Using text value with ...
Power Apps
Unanswered

Using text value with clearcollect formula

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

I am using this formula to get more than 2000 rows out of my collection: 

Concurrent(
ClearCollect(col1, Filter(ProjectLijsten, IDRij >= 1 && IDRij <= 2000)),
ClearCollect(col2, Filter(ProjectLijsten, IDRij >= 2001 && IDRij <= 4000))
);
ClearCollect(colCombined,col1,col2)

I then get the error that "IDRij" is expecting a number value. Because I am using Power Automate, IDRij needs to be a textvalue but actually it is a number. 

I tried to do it like this but then it will not work with large number sets. 

Concurrent(
ClearCollect(col1, Filter(ProjectLijsten, Value(IDRij) >= 1 && Value(IDRij) <= 2000)),
ClearCollect(col2, Filter(ProjectLijsten, Value(IDRij) >= 2001 && Value(IDRij) <= 4000))
);
ClearCollect(colCombined,col1,col2)

 What could I do?

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Just to be clear, are you using Power Automate to pull the data instead of Powerapps? Because the same formula could be done OnSelect of a button.

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This formula is being done by powerapps. @eka24 

    Is it possible to get like 3000+ items out of a database and then add a unique ID to every row using powerapps ? By using the OnStart function?

    I was going to do this in power automate but if it can be done in power apps, that would be cool. I can make it so there will be an empty column so we can add the unique ID there.  

    And what happends when we run the OnStart more times, will it create a new column with that name every time? Or will it overwrite it?

  • eka24 Profile Picture
    20,925 on at

    Assuming your formula stated works, Create a collection:

    ClearCollect(CombinedWithNo,AddColumns(colCombined,"UniqueNo",GUID()))
    GUID is the unique field
     
    Put your formula on the Onstart followed by the new collection as:

    Concurrent(

    ClearCollect(col1, Filter(ProjectLijsten, Value(IDRij) >= 1 && Value(IDRij) <= 2000)),

    ClearCollect(col2, Filter(ProjectLijsten, Value(IDRij) >= 2001 && Value(IDRij) <= 4000))

    );

    ClearCollect(colCombined,col1,col2);

    ClearCollect(CombinedWithNo,AddColumns(colCombined,"UniqueNo",GUID()))

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your answer @eka24 

    I have tried it like this but then it does not work, the IDRij was the column I made myself using excel. We have to replace it with the GUID but we need to collect it first I think. How do we do this?

    And what happends when we run the OnStart more times, will it create a new column with that name every time? Or will it overwrite it?

     

    Concurrent(
    ClearCollect(col1, Filter(ProjectLijsten, GUID >= 1 && GUID <= 2000)),
    ClearCollect(col2, Filter(ProjectLijsten, GUID >= 2001 && GUID <= 4000))
    );
    ClearCollect(colCombined,col1,col2);
    ClearCollect(CombinedWithNo,AddColumns(colCombined,"UniqueNo",GUID()));

     

  • eka24 Profile Picture
    20,925 on at

    I thought it was sharepoint, I tested the first collection but that did not work in excel although there was a unique column.

    Unfortunately it may not work with Excel Table.

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am using power automate to get the excel file inside of my sharepoint list automatically. We could also do this for SharePoint, use the database ProjectLijsten for it @eka24 

  • eka24 Profile Picture
    20,925 on at

    If you are using Powerapps Automate that is fine.

     

    Also the  formula will work perfectly if the data is in SharePoint list. Not Excel in SharePoint.

     

    Another option is, If the data will not be changing frequently, you can import the Excel Table directly into Powerapps. That is youif Data changes, need live connection to the Datasource, the import will not be suitable.

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your answer @eka24 

    I have tried it like this but then it does not work, the IDRij was the column I made myself using excel. We have to replace it with the GUID but we need to collect it first I think. How do we do this?

    And what happends when we run the OnStart more times, will it create a new column with that name every time? Or will it overwrite it?

    Concurrent(
    ClearCollect(col1, Filter(ProjectLijsten, GUID >= 1 && GUID <= 2000)),
    ClearCollect(col2, Filter(ProjectLijsten, GUID >= 2001 && GUID <= 4000))
    );
    ClearCollect(colCombined,col1,col2);
    ClearCollect(CombinedWithNo,AddColumns(colCombined,"UniqueNo",GUID()));

     How can I do this?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried to do it like this, does not work, it can't find GUID: 

    Concurrent(
    ClearCollect(CombinedWithNo,AddColumns(colCombined,"UniqueNo",GUID()));
    ClearCollect(col1, Filter(ProjectLijsten, GUID >= 1 && GUID <= 2000)),
    ClearCollect(col2, Filter(ProjectLijsten, GUID >= 2001 && GUID <= 4000))
    );
    ClearCollect(colCombined,col1,col2)

     We still need to give every row an unique ID starting from 1 right? @eka24 

  • eka24 Profile Picture
    20,925 on at

    On the first question, I really don't know how to get it work with Excel. I have tried it myself with unique values. It didn't work. So to honest I can't help on that.

     

    On the second question, the collection numbers will not be repeated or added. It will recreate the collection with New numbers

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard