Forum Discussion

MarleeBI's avatar
MarleeBI
Regular Visitor
2 years ago
Solved

Format Painter for Field Columns - Is that possible?

Hello PBI Experts,

 

I have a PBI Table with 20+ field Columns (see below for screenshot).

I have applied successfully of - Conditional Formating on 1 of the Column

However, I would like to apply the same Color Formating to - Rest of the other 20+ field Columns.  Is that possible within PBI?

 

I know Format Painter works across two different visuals, but how does within same visual - different field Column work?

Thank you for your help in advance!  Have a beautiful rest of your day 👍

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi MarleeBI ,

    First of all, many thanks to  for your very quick and effective replies.

    Based on the knowledge, it is impossible to apply conditional formatting to all columns directly, you should apply formatting individually for each column.

    Please try the following methods as workaround:

    1.Create the simple table.

    2.Select the conditional formatting for 12 column.

    3.Select the Rules in the Format style and set the Rules.

    Besides, it is also able to create a measure for the column conditional formatting.

    Conditional formatting = 
    var colum_ = SELECTEDVALUE('Table'[13])
    RETURN
    IF(colum_ > 13 && colum_ <= 14, "yellow",
        IF(colum_ > 14 && colum_ <= 100, "green")
    )

    Select the Field value in the Format style for column 13 and choose the formatting measure in the field.

    You can also view the following documents to learn more about column conditional formatting.

    Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

     

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

    • MarleeBI's avatar
      MarleeBI
      Regular Visitor

      You mentioned - "Conditional formatting is applied one field/column at a time"

      If you don't mind, could you provide some more - step-by-step guidence - on how to apply it?

      From the screenshot, How Can I apply Column 12 Color formatting logic - onto Column 13?

      • MarleeBI's avatar
        MarleeBI
        Regular Visitor

        Perhaps - there's XMLA backend code - that can help me apply Column 12 conditional formating - to all my other columns - Column 10-30??

        That would be very helpful.  But I do not know how to do so in XMLA nor Formating Painter...
        Anyone could help?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MarleeBI ,

    First of all, many thanks to  for your very quick and effective replies.

    Based on the knowledge, it is impossible to apply conditional formatting to all columns directly, you should apply formatting individually for each column.

    Please try the following methods as workaround:

    1.Create the simple table.

    2.Select the conditional formatting for 12 column.

    3.Select the Rules in the Format style and set the Rules.

    Besides, it is also able to create a measure for the column conditional formatting.

    Conditional formatting = 
    var colum_ = SELECTEDVALUE('Table'[13])
    RETURN
    IF(colum_ > 13 && colum_ <= 14, "yellow",
        IF(colum_ > 14 && colum_ <= 100, "green")
    )

    Select the Field value in the Format style for column 13 and choose the formatting measure in the field.

    You can also view the following documents to learn more about column conditional formatting.

    Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

     

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.