Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Data Colors Advanced Controls, November 2018 release

Hi there,   In the November 2018 release at - https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-2018-feature-summary/#conditionalFormatting - MS have introduced an Advanced Control...
  • TomMartens's avatar
    7 years ago

    Hey,

     

    please excuse, but I do not fully understand what you are asking for.

     

    If you wonder how to activate this advanced control for a simple column chart, this may help:

    The next screenshot shows a column chart, without any conditional formatting

     

     

    1. Mark the column chart
    2. From the formatting section, activate the Advanced control from the Data colors band
       
    3. Select a formatting "rule", in my example I select "Format by: Field value ..." and select a measure that returns the name of a color:

    This leads to this column chart:

    This is the DAX for the measure:

    vis aid - fill color - mark category b = 
    IF(HASONEVALUE(Table1[A])
        ,IF(FIRSTNONBLANK('Table1'[A],0) = "B"
            ,"darkred"
            ,"darkgrey"
        )
        ,BLANK()
    )

    If this does not answer your question, please excuse, and please rephrase your question, that I will be able to provide more guidance if not an answer.

     

    Regards,

    Tom