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.
Progress bar is a built in component for powerapps, you can give it a try.
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
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional