Forum Discussion

RanjanThammaiah's avatar
6 years ago
Solved

Conditional Formatting for the customized %

HI All,

 

Can some one help me with the conditional formatting for the customized numbers.

There are 2 columns should be updated with different conditional Formatting.

 

  • v-lid-msft's avatar
    v-lid-msft
    6 years ago

    Hi RanjanThammaiah ,

     

    If you use multi measure as the value, there is no need to create measure as color field (sorry for mislead you)

     

    We can set color for each measure in the value field, Notice the "Based on field", select your measure.

     

     

    BTW, pbix as attached.

     

    Best regards,

    Community Support Team _ Dong Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies

  • v-lid-msft's avatar
    v-lid-msft
    Community Support

    Hi RanjanThammaiah ,

     

    we can create a measure to define color, use the field value feature of matrix.

     

    color = 
    SWITCH (
        SELECTEDVALUE ( 'Table (2)'[Category] ),
        "A", SWITCH (
            TRUE (),
            SUM ( 'Table (2)'[Value] ) > 1, "#00FF00",
            SUM ( 'Table (2)'[Value] ) > 0.85, "#FFFF00",
            "#FF0000"), 
        "B", SWITCH (
            TRUE (),
            SUM ( 'Table (2)'[Value] ) < 0.08, "#00FF00",
            SUM ( 'Table (2)'[Value] ) <= 0.12, "#FFFF00",
            "#FF0000"
        )
    )

     

    If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

     

    BTW, pbix as attached.

     

    Best regards,

    Community Support Team _ Dong Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • RanjanThammaiah's avatar
      RanjanThammaiah
      Helper V

      Thanks for the response.

      I have created hte same way you have explained. but seems to be its not working.

      The column which i has the % value is the Calculated measure that i have created.

      "Global Sales % of Plan Achieved FYTD_MS"

       

      • v-lid-msft's avatar
        v-lid-msft
        Community Support

        Hi RanjanThammaiah ,

         

        If you use multi measure as the value, there is no need to create measure as color field (sorry for mislead you)

         

        We can set color for each measure in the value field, Notice the "Based on field", select your measure.

         

         

        BTW, pbix as attached.

         

        Best regards,

        Community Support Team _ Dong Li
        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.