Forum Discussion
Consistent color mapping across visuals in Power BI reports
Hi SinghArchana ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Hi Anonymous ,
Thank you for your reply.
I tried the suggested solution and it works well in standard scenarios. However, when using a field parameter in the Legend, I’m unable to see the fx (conditional formatting) option for data colors, so I cannot apply colors based on a measure.
Could you please confirm if conditional formatting is supported when a field parameter is used in the Legend, or if there is any recommended workaround for this scenario?
Thanks in advance!
- Anonymous7 months agoNot applicable
Hi SinghArchana
I tested this scenario with a sample setup and observed that the conditional formatting fx - field value option is still available even when a field parameter is used in the Legend. However, since field parameters dynamically switch the underlying column for example, Product vs Region, a color measure written for one specific field does not automatically adapt when the parameter changes. Because of this, the colors may appear inconsistent or incorrect when switching between fields. So while the feature is available, it is not fully reliable for dynamic legend scenarios driven by field parameters.
At the moment, Power BI does not provide a native way to dynamically bind colors to changing dimensions via field parameters. As a workaround, you may consider using separate visuals for each field or adjusting the logic so that the color measure aligns with each possible field in the parameter.
Thank you.