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 / Dynamically Create Tex...
Power Apps
Unanswered

Dynamically Create Text Labels and populate with row count

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

Trying to conceptualize how I would build a canvas app screen that would have a drop down that would select a team from a Sharepoint List.  Then based upon that team, show all of the distinct team members and also show the number of tickets assisgned to them.  I'm guessing CountRows will give me the # of tickets.


For context:

I'm using two SP lists, one "Staff" with a drop down to select the Team name:

Items: 

 

Distinct(
 'staff',Team
)

 

Lets say the column in list "staff" has teams A, B, C.   Team A has Sally, Bob, Fred,  Team B has Burt, Mike, Jill, Sarah

 

On the screen I'm going to have a dropdown to pick the team (item above), then I'd like the gallery contain to show a dynamically created number of Text Labels that would then have one label for each team member name and also show the # of countRows (tickets).  This count rows would be a filter from a different list called Tickets.

What I'm not getting is how to create the dynamic number of text labels for Team B above (so 5 labels), populate each with the distinct name and the # of rows for each....

I'm wondering if I should use a table and filter that based upon team and then do something to only show distinct team member names and a count of rows...

Ideas anyone?

Categories:
I have the same question (0)
  • jrletner Profile Picture
    720 Moderator on at

    @jgerrity going to have to give this some thought, but dynamically creating controls is not possible in PowerApps. However, I'm thinking about a gallery within a gallery. This would allow for a row to be generated for each item in that team. That row would just have the label you're looking for. Which gives it the impression of being dynamically generated.

  • jgerrity Profile Picture
    8 on at

    Thanks @jrletner  I gave up and tried a different approach, just using text labels with variables as text and doing the calcs on those and displaying based upon team member selected.


    Cheers!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard