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 / Progress Bar based on ...
Power Apps
Unanswered

Progress Bar based on toggle list

(0) ShareShare
ReportReport
Posted on by 42

Hello Everyone!

I have a toggle list from Sharepoint and I want to create a progress bar on Power App based on how many toggles have been picked up. 

The lists and the progress bar are on different screen on the application. 

Do you have any suggestion?

 

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

    Hi @mtere, referencing controls is not recommended as it slows performance of the app. So setting a global variable, for each of the toggles on either onchange or the toggle on/off function, to 1 (true) or 0 (false) dependant on selection.

     

    Add a label. The label should have the X, Y, width and Height set. 

    For the progress bar, add a rectangle X, Y and Height should match the label. The maximum width should be 'Label.Width', divide that by the number of toggles E.G. '(Label.Width/4)/6'. Finally sum the variables that are 1 and multiply it by that number.

     

    Its a bit clunky but should work. It will be easier once the modern controls are out of preview as there is a progress bar as default. 

    If you don't like the suggestion above there is the Creator Kit as well which has a progress bar too. Creator Kit - overview (preview) - Power Platform | Microsoft Learn

  • realwillwright Profile Picture
    772 Moderator on at

    Sorry just saw you said SharePoint list, using a similar method above with the rectangle and label, you would need to count all items in the gallery and divide the required width by that and multiply by the selected amount to get the width of the rectabgle. Assuming the SharePoint list is associated to a Gallery

    Label.Width / Gallery1.AllItemsCount

    following this you need to work out which items have been selected to do this you would use a collection and the OnUncheck/OnCheck functions

     

    OnCheck you would add

    Collect(colSelectedToggles, ThisItem)

     

    OnUncheck use

    Remove(colSelectedToggles, ThisItem)

     

    Finally add all the bits together and the width of the rectangle is

    (Label.Width)/Gallery1.AllItemsCount) * CountRows(colSelectedToggles)

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