cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How count the number of completed items within a gallery

I am building an Inspection App and I have a gallery items with radio buttons on each on an inspection screen. I want display the number of items that are checked every time an item is checked. Also is there a way to hide the next button until all the items are checked. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: How count the number of completed items within a gallery

You can check the number of items that have a selection in the radio button from the AllItems property in the gallery:

CountRows(Filter(Gallery1.AllItems, !IsBlank(Radio1.Selected))) & " of " & CountRows(Gallery1.AllItems) & " completed"

You can use a similar logic to determine when to enable the Next button:

If(
    CountRows(Filter(Gallery1.AllItems, !IsBlank(Radio1.Selected))) = CountRows(Gallery1.AllItems),
    DisplayMode.Edit,
    DisplayMode.Disabled)

Hope this helps! 

View solution in original post

2 REPLIES 2
Highlighted
Power Apps
Power Apps

Re: How count the number of completed items within a gallery

You can check the number of items that have a selection in the radio button from the AllItems property in the gallery:

CountRows(Filter(Gallery1.AllItems, !IsBlank(Radio1.Selected))) & " of " & CountRows(Gallery1.AllItems) & " completed"

You can use a similar logic to determine when to enable the Next button:

If(
    CountRows(Filter(Gallery1.AllItems, !IsBlank(Radio1.Selected))) = CountRows(Gallery1.AllItems),
    DisplayMode.Edit,
    DisplayMode.Disabled)

Hope this helps! 

View solution in original post

Highlighted
Frequent Visitor

Re: How count the number of completed items within a gallery

Thanks @CarlosFigueira . That is what I am looking for.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,686)