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 / Gallery Completion Pro...
Power Apps
Answered

Gallery Completion Progress Bar

(0) ShareShare
ReportReport
Posted on by 440

I have a gallery of checks in an audit and in that I have a choice column of the check status. In this column there are 4 choices Pass, Fail, N/A and Untested. I seem to be able to find similar answers which apply to a form but I want the whole list counted.

 

I am wanting to show a progress bar, including a text label, showing the percentage of the checks which have been completed. ie a;; tasks that <>Untested.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @nshaw75 - to display the percentage on a Label control, you can use either:

     

    With(
     {
     _passed: Filter(
     'Your Data',
     'Your Choice Column'.Value = "Pass"
     )
     },
     Text(
     CountRows(_passed) / Gallery1.AllItemsCount * 100,
     "#%"
     )
    )
    

     

    Same is above but looking at the data source directly:

     

    With(
     {
     _passed: Filter(
     'Your Data Data',
     'Your Choice Column'.Value = "Pass"
     )
     },
     Text(
     CountRows(_passed) / CountRows('Your Data') * 100,
     "#%"
     )
    )
    

     

    For the progress indicator, there are many creative methods you can find online together with the Progress Bar control (in preview).

     

    https://www.youtube.com/watch?v=GGIP_hQ3uv8 

     

    https://www.youtube.com/watch?v=r-bTu1srBkY 

  • nshaw75 Profile Picture
    440 on at

    Thanks @Amik 

  • nshaw75 Profile Picture
    440 on at

    Thanks @Amik 

    I have watched the YouTube videos and like the look of the "Button" progress bar in DamoBird's video 

    nshaw75_0-1713090540564.png

    I have managed to successfully copy the example, although this uses a collection of data. In the text property it  uses the code :

     

    Button1.Width/CountRows(colstages)*CountIf(colstages,Completed=true)
     
    colstages being the collection being referred to. When I want to use this I have tried replacing colstages with gallery1 or mySPlist. I have tried using commas and semi colons. I am obviously getting the syntax wrong.
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @nshaw75 - you're going to need to incorporate your solution into his solution using math. If your percentage value is 60% for example, you will need to identify what 60% is of the Button width:

     

    With(
     {
     _passed: Filter(
     'Your Data',
     'Your Choice Column'.Value = "Pass"
     )
     },
     ((CountRows(_passed) / Gallery1.AllItemsCount) / 100 * Button1.Width) * 100
    )
  • nshaw75 Profile Picture
    440 on at

    Fantastic @Amik ,

    You are a genius 🙂

     

    Thanks you very very much

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard