Forum Discussion
Conditional Formatting on Y-Axis Not Responding to Slicer Selection
- 10 months ago
Hi yerketai,
Thank you for reaching out to Microsoft Fabric Community.
Thank you FarhanJeelani for the prompt response.
Power BI currently does not support per tick conditional formatting of axis labels. Axis conditional formatting evaluates as a single value for the visual, so you can set one dynamic color for the whole axis but cannot color individual Y-axis labels based on slicer selection.
The best approach is to color the bars or data labels instead of the axis labels, this evaluates per category and will respond to your disconnected slicer.
Thanks and regards,
Anjan Kumar Chippa
Hi, thanks again for your response!
I tried both the bridge table and TREATAS workaround as you suggested, but unfortunately, I'm still not seeing any change in the conditional formatting on the Y-axis labels when selecting a value from the slicer. The color does not update based on the slicer selection.
Could you please double-check the logic or possibly provide a working sample .pbix file or mock-up that demonstrates this functionality?
Just to recap:
I want all categories to always remain visible on the Y-axis.
I want only the selected category (from a slicer tied to a disconnected ParameterTable) to appear in gray (#505050), and the rest in white.
No relationship exists between the slicer table and the main table.
If there's any tweak I'm missing or an alternative method you can demonstrate, it would be really helpful.
Thanks again for your support!
Hi yerketai,
Thank you for reaching out to Microsoft Fabric Community.
Thank you FarhanJeelani for the prompt response.
Power BI currently does not support per tick conditional formatting of axis labels. Axis conditional formatting evaluates as a single value for the visual, so you can set one dynamic color for the whole axis but cannot color individual Y-axis labels based on slicer selection.
The best approach is to color the bars or data labels instead of the axis labels, this evaluates per category and will respond to your disconnected slicer.
Thanks and regards,
Anjan Kumar Chippa