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 / Adjust collection reco...
Power Apps
Answered

Adjust collection record count based on another value

(0) ShareShare
ReportReport
Posted on by 39

Is there a way to set a collection's record count based on another value?

For example

I have a combo box with values 1-7 in it

I want to create a collection with X records in it, where X is the value selected in the combo box

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    HI @kooliokevin,

     

    You can use a combination of ForAll, Sequence & Collect to achieve this (adjust where necessary):

    ForAll(
     Sequence(ComboxBoxName.Selected.Value),
     Collect(colRecordCount, ThisRecord.Value)
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • kooliokevin Profile Picture
    39 on at

    Fantastic, this works, thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard