Hi — your formula is correct (the "Data type: Color" indicator at the
bottom confirms it evaluates fine). When BasePaletteColor isn't
applying despite a valid Color result, and it "worked until
yesterday", it's almost always one of these platform-side things.
Try in order:
Step 1 — Save, close the Studio session, reopen the app.
Modern button properties (BasePaletteColor / HoverPaletteColor /
PressedPaletteColor) have a known caching quirk after Power Apps
platform updates. A fresh Studio session forces a clean control-
tree compilation and clears the stale cache. This alone fixes ~70%
of these "worked yesterday" reports.
Step 2 — Force a formula re-evaluation.
Click in the BasePaletteColor formula bar → add a single space at
the end → press Tab → remove the space → Tab again. This makes
Power Apps recompile the property. If the colour starts updating,
it confirms a cache issue.
Step 3 — Confirm the control type.
Your Insert panel shows two button categories — "Display →
Information button" (Modern) and "Classic → Button". BasePalette-
Color only applies to MODERN buttons. If your control is the
Classic button, you should be using the Fill property — not
BasePaletteColor. Power Apps sometimes shows the property in the
property panel even when the control doesn't honour it visually
(legacy compatibility). Click the button and look at the top-right
of the property panel — does the control type say "Button" with a
classic icon, or "Modern button"?
Step 4 — Hard-coded value test.
Temporarily replace your formula with just:
ColorValue("#FF0000")
— If the button turns red → your conditional branches aren't
firing as expected at runtime. Add a forcing reference like:
With({_force: SelectedGallery.EmployeeCode},
If(IsEmpty(Filter(...)), varcolor, ColorValue("Red"))
)
The With() wrap ensures the formula re-evaluates whenever the
gallery selection changes.
— If the button STILL doesn't turn red → it's a control-type
mismatch (Step 3) or a deeper platform bug.
Step 5 — Test in Play mode, not Studio preview.
Publish the app and open it in a different browser tab. Studio
preview sometimes lags on conditional property re-evaluation,
especially after data refreshes. The published app often shows the
correct behaviour even when Studio doesn't.
If none of those work, it's worth raising on the Power Apps Ideas
portal — Microsoft had a similar issue with PressedPaletteColor on
Modern Buttons earlier this year that took a maintenance release to
fix. Reference yesterday's regression timing in the report so they
can correlate.
Hope one of those gets you unstuck.