Apply conditional table formatting in Power BI – Power BI

To format cell background or font color, select Conditional formatting for a field, and then select either Background color or Font color from the drop-down menu. The Background color or Font color dialog box opens, with the name of the field you’re formatting in the title. After selecting conditional formatting options, select OK.

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting