Forum Discussion

ctiago's avatar
ctiago
Frequent Visitor
1 year ago
Solved

Applying a formatting rule to multiple charts

Hi,   I have multiple (stacked) column charts. Under Columns-->Color I create a rule to have slightly different column colors based on the  value of an X-axis variable.   My question is simply wh...
  • dharmendars007's avatar
    1 year ago

    Hello ctiago , 

    In Power BI, there isn’t a direct method to apply the same conditional formatting or rules across multiple visuals automatically. However, here are some approaches that can make this process more efficient.

    1. Format Painter - Use the Format Painter to quickly copy visual formatting from one chart to another.

    Go to the Format tab >> Click on Format Painter >> Select the target visual to apply the copied formatting.

    This works for most formatting, but it does not always replicate data-specific conditional rules.

     

    2. Create a DAX measure for color logic, like

    ColumnColor =
    SWITCH(TRUE(),
    [X-Axis Value] = "Condition1", "#FF0000",
    [X-Axis Value] = "Condition2", "#00FF00",
    "#CCCCCC" // Default)

     

    If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

     

    Thank You

    Dharmendar S

    LinkedIN