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:
  • Verified answer
    WarrenBelz Profile Picture
    147,161 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

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 250 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 126

#3
stampcoin Profile Picture

stampcoin 110

Overall leaderboard
Loading started
Loading started