Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Conditional formatting - copy and paste

Hello

Is there a way to copy & paste conditional formatting in the matrix visual? Like do a format painter for conditional formatting from 1 Values field to another? or some other way out? I have like 30-35 fields where I need to do same kind of conditional formatting.

 

Regards

20 Replies

    • raymond's avatar
      raymond
      Post Patron

      same here. This is a huge waste of time and super expensive if an powerbi expert is working on that. 

  • There really is only one solution, try and talk with your company to transfer away from PowerBI. After using this for over 3 years I can tell you PowerBI will try their hardest to not fix these issues. 

  • Still looking for a Solution. Really time consuming to enter the Same rules for a lot of measures within the same table...

  • 3 years later and still this isn't working? Seems like the longer I do this (over 20 years now), the software tools get worse and worse. Can we blame it on agile methods? You don't ask for it, you don't get it? Any feature not specifically requested gets removed. Anyone try Control-Z in Power BI Desktop?

    • MrMatsson's avatar
      MrMatsson
      Frequent Visitor

      Make that 6 years and it's still not fixed 😶

  • Anonymous's avatar
    Anonymous
    Not applicable

    All the workarounds in this post may situationally solve the problem.

    However, the very fact users need to workaround an appalling UX flaw is NOT a solution.

    To reiterate (to the clearly 0 PowerBI devs who give a **bleep**). When I have the following recently created Conditional Formatted colors:

    If I now save/reopen conditional formatting and try to change one, this is what recent colours looks like:

    Not only are my VERY recently declared colours not there, but there are also colours here I literally do not use in my report (which I assume are just theme defaults).


    Now if I go and say change a Values Text Color font, the next time I change it I can see the update to Recent colours next time I select Text Color. But going back to Conditional Formatting rule? nada.

  • v-xicai's avatar
    v-xicai
    Community Support

    Hi Anonymous ,

     

    You can implement your demand following steps below.

     

    1. Select the visual that already has the desired formatting options settings.
    2. Click the “Format Painter” button under the Home
    3. Click the visual which you’d like to assign the same formatting options.

     

    Best Regards,

    Amy

     

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      v-xicai 

      Any update on this?

      This will really save time for reports where we heavily use matrix and tables.

       

      Regards

      • ROGI's avatar
        ROGI
        Regular Visitor

        Now you can set a value field in the conditional formatting options.

         

        Just create a measure with the rules and conditions in DAX and assign it to each field.

         

        Revenue KPI Color = SWITCH(
             TRUE()
             ,SUM('Sales'[Revenue]) < 50000000, "#f44242"
             ,SUM('Sales'[Revenue]) < 1000000000, "#f4f142"
             ,SUM('Sales'[Revenue]) > 1000000000, "#5ff442",
             "#f44242"
        )

         

        Source

        https://www.blue-granite.com/blog/controlling-conditional-formatting-using-dax

    • OU812's avatar
      OU812
      Advocate I

      That seems like a solution for copying from one visual to another. What about copying to multiple columns in the same table? I think that is the original question and still unanswererd.

    • Anonymous's avatar
      Anonymous
      Not applicable

      v-xicai 

      Actually, I don't want to copy the formatting from one visual to another.

      Rather, I need to do it within the same visual -> from one value field to another.

       

      Regards

      • sam_xyz's avatar
        sam_xyz
        Advocate I

        I'm having the same problem.

        A solution would be highly appreciated

  • woony's avatar
    woony
    Frequent Visitor

    Also looking for a solution.

    When having a large table with a lot of columns with same types of values, or even booleans, it is very time consuming to copy this to all columns...

  • YemenKing's avatar
    YemenKing
    Regular Visitor

    This solution worked for me.

     

    1. Create a new matrix.

    2. Copy paste the format (from the table with the conditional formatting) to the new matrix using Format Painter

    3. Add the measure with the conditional formatting to the new matrix. The trick is to add the measure first before anything else. You will see that the conditional formatting of the initial matrix is copied. Then you can add other rows/columns.

     

    I hope it helps.