Forum Discussion

pattaninlua's avatar
pattaninlua
New Member
7 months ago
Solved

Conditional Formatting on Count %RT

Hi,    There was a request to add conditional formatting to the following Matrix (Cropped to remove confidential name features) to highlight when values are above 50%      The percentages ...
  • v-tejrama's avatar
    v-tejrama
    7 months ago

    HI pattaninlua ,
    To resolve the issue, first create a measure to calculate the count of the relevant field. Then, build a separate percentage measure based on that count, ensuring it reflects the proportion of each category within the selected context and is formatted as a percentage. Next, create a color measure that assigns different colors depending on the percentage thresholds, making sure totals or grand totals are excluded if needed. In your matrix visual, replace the existing percentage field with the new percentage measure, and apply conditional formatting using your color measure. To do this, choose background color formatting, set the format style to 'Field value', apply it to values only, and select the color measure as the field to base the formatting on. This approach ensures that conditional formatting correctly reflects the percentage measure rather than raw counts.

    Find the below attached .pbix file for your reference.

    Thank you.