Hi all,
I have created a progress bar within a gallery via a variation of the method listed here. However, instead of a slider, I utilize my underlying data in order to get the rectangle values. There are two rectangles: denoted "goal" and "dynamic". Attached below are their parameters.
Goal:
X : 61
Y: 60
Width: 256
Height: 38
Fill:
If(
(ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) >= 0 && (ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) <= 0.50, RGBA(48, 234, 20, 1),
(ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) > 0.50 && (ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) <= 0.75, RGBA(242, 246, 13, 1),
(ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) > 0.75 && (ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) <= 1.0, RGBA(172, 16, 16, 1),(ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value)) > 1.0, ColorFade(RGBA(172, 16, 16, 1), -0.25),
Black
)
Dynamic:
X : 'OrderProgress Goal'.X + 256 - 'OrderProgress Dynamic'.Width
Y: 60
Width:
If(
ThisItem.TotalPlanMin <= (435 * OperatorRec.Selected.Value),
(1 - (ThisItem.TotalPlanMin / (435 * OperatorRec.Selected.Value))) * 'OrderProgress Goal'.Width,
0)
Height: 38
Fill: RGBA(255, 255, 255, 1)
The progress bars fill as a result of that item's "total planned build minutes" divided by the total capacity of the number of operators at that specific item (workstation). However, when I add new data into the source and refresh the set, I get this weird glitch in my progress bars:

As you can see, some of the bars are elongated (S030, for example) and some of the fill values are not corrected added to the bar (S120, for example).
When I change the operator value, it updates and fixes itself like nothing was wrong, but upon adding data or upon app start, a few of them are usually messed up. I have tried to drop and recreate these bars, but to no avail. Anybody know what the issue may be or if there is something similar I can use in this scenario that won't have this bug?
Thanks,
Farhan