Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Progress Bar Color

Like (0) ShareShare
ReportReport
Posted on 9 Mar 2024 04:11:24 by 46

Hello everyone,

I'm new to PowerApps and would appreciate some guidance. I'm trying to create a progress bar within a gallery that changes color based on a SharePoint choice column (The value of the column is set using the SET() variable). The gallery populates it's items from OnStart Collection, and the items name match the choice column values (e.g., "Initiated," "Test1," "Test2").

My goal is to have the progress bar turn green for the current stage and previous stages, and gray for future stages. For example, if the choice column current value is set to "Test1," the "Initiated" and "Test1" items should be green.

Attached is a screenshot for reference.

Categories:
  • husham86 Profile Picture
    46 on 20 Mar 2024 at 15:32:08
    Re: Progress Bar Color
    Thank You i will make sure add the coding moving forward!
  • Shashank Bhide Profile Picture
    934 Super User 2025 Season 1 on 09 Mar 2024 at 09:39:08
    Re: Progress Bar Color

    Progress bar is a built in component for powerapps, you can give it a try.

     

    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/modern-controls/modern-control-progress-bar

     

  • Verified answer
    WarrenBelz Profile Picture
    146,743 Most Valuable Professional on 09 Mar 2024 at 06:05:34
    Re: Progress Bar Color

    Hi @husham86 ,

    Can you please remember to post your code in Text as it saves re-typing here. It also makes it much easier to read with all in view at the same time. Assuming that is a Gallery with the collection, then you can use

    If(
     ThisItem.IsSelected,
     Color.Green,
     Color.Grey
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started