taylorswiftfan
taylorswiftfan

Reputation: 1517

PowerBI - Conditional formatting of specific cells

This is what I have created on Excel: Excel

I am trying to publish it on Power BI. I am struggling to find a setting to color specific cells according to what I have created in Excel. PowerBI

The conditional formatting guide (https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-conditional-table-formatting/) suggests coloring the cells based on the value, but I want the colors to be static regardless of the values.

Question: How can I choose to color the cells according to my specific requirement?

Upvotes: 0

Views: 3327

Answers (4)

Eugene
Eugene

Reputation: 1264

For each cell you need to do the following:

  1. extract
    • column name, and
    • value in 1st column (HI/CoF ($)) of current row,
  2. take the last symbol from both,
  3. convert it to number and
  4. check resulting values in conditional formatting to determine color.

As an option, you may add both numbers and assign color according to the sum: 2 is green, 14 is red, other colors between. However, it probably wouldn't result in exactly same color matrix as is in your example.

Upvotes: 0

taylorswiftfan
taylorswiftfan

Reputation: 1517

Thank you Foxan and user5226582. I am not sure if this answer is appropriate to SO's requirement for an answer, but in the end I did a hacky way of taking a screenshot of the colour without the values from Excel and inserted it as a background image to the table on PowerBI.

Upvotes: 0

user5226582
user5226582

Reputation: 1986

How can I choose to color the cells according to my specific requirement?

There is an option to develop a custom visual with this behaviour.

There's a table visual template you can use as a start.

Upvotes: 0

Foxan Ng
Foxan Ng

Reputation: 7151

What you're looking for is called Column Formatting in Power BI. You can find it in the format pane in Table or Matrix visualizations.

column formatting

However, the best you can do is formatting per column level (and header / total), for font color and background color. Per cell level is not available in Power BI yet. You may consider submit a feature request to Power BI if you want to.

Upvotes: -1

Related Questions