Skip to main content

Power BI

Needs Votes

Conditional Formatting throughout

Vote (737) Share
Tom Andrews's profile image

Tom Andrews on 02 Sep 2015 16:45:54

It would be great if you could do conditional formatting throughout all of Power BI Desktop. e.g. text boxes have conditional formatting based on your data. It would be great if conditional formatting also worked with the different bars in bar charts etc.

Comments (50)
Tom Andrews's profile image Profile Picture

80b17214 27f8-41dc-b6a3-29ed045e934b on 05 Jul 2020 23:26:24

RE: Conditional Formatting throughout

This is pretty easy to conditional format text if your using IMPORT or SQL, this doesn't work on DIRECT connections.

First create additional NEW COLUMN in your table

The following query will populate the NEW COLUMN based on the test string you defined, in the example ive used planet names

StatusColour = If('table'[table.value]="mars",0) & if('table''[table.value]="sun",1) & if('table'[table.value]="earth",2)

You can then apply conditional formatting to your TEXT column either background colour or font colour or both (example below)

Based on Field = NEW COLUMN (SUM)
IF value is 0 then
IF value is 1 then
IF value is 2 then

shame about pie charts, hope that comes soon!

Tom Andrews's profile image Profile Picture

2826746b 8215-4a3d-9ec2-66c1eaa6166e on 05 Jul 2020 23:26:19

RE: Conditional Formatting throughout

I have a clustered column chart showing sales for this year vs. equivalent period last year.

I'l like to be able to highlight the current month this year in a different colour.

We basically need the conditional format by formula ability we have in Excel.

Tom Andrews's profile image Profile Picture

736f763c f7db-47b5-8514-29e8fa9855d4 on 05 Jul 2020 23:20:38

RE: Conditional Formatting throughout

The current possibilities of formatting in Power BI are too basic.

Why can I not color a whole line of my table regarding the text of a certain column in 2018 ?

(a matrix that I cannot rotate by the way)

Tom Andrews's profile image Profile Picture

65386cf3 4bd8-48fa-8a23-ba7a4f535dca on 05 Jul 2020 23:19:16

RE: Conditional Formatting throughout

I was most disappointed yesterday to find that I could only use conditional formatting on a field that has had an aggregate function applied.
I could use AVERAGE in the one column I need, but then I end up with decimal places I don't want to see. Either need
1) conditional formatting similar to EXCEL
2) ability to specify the output format for numbers in a table
3) ability to turn off totals line for a given field in a table

Tom Andrews's profile image Profile Picture

9188c416 ffdd-4b7a-9464-206cc72a1df7 on 05 Jul 2020 23:18:26

RE: Conditional Formatting throughout

I cant believe this request is still going. I've just completed a large Power BI project and the lack of decent conditional formatting has held us back massively. In fact, if it weren't for the fact we get access to Power BI via our corporate E5 licence we'd probably have been off to Tableau or Qlik because of this limitation. As a minimum Power BI desperately needs conditional formatting on text and on the totals in tables.

Tom Andrews's profile image Profile Picture

4b2e8665 699c-400c-b2b6-46a658f6f212 on 05 Jul 2020 23:16:52

RE: Conditional Formatting throughout

I agree this should be available through out Power BI, including:

* available for market place visualization developers to use
* ALL value types, not just numeric

Tom Andrews's profile image Profile Picture

d93a6ab7 d3d1-4daf-ab44-0376f7da4f7f on 05 Jul 2020 23:15:39

RE: Conditional Formatting throughout

this was in Qlikview version 9!! and is one of the most requested features by clients

Tom Andrews's profile image Profile Picture

f2e161f1 a8fe-41a6-ab67-bae320391279 on 05 Jul 2020 23:12:40

RE: Conditional Formatting throughout

You should be able to write a proper expression to control the format. In fact you should be able to write an expression behind every single property, just like in SSRS.

Tom Andrews's profile image Profile Picture

a3345e58 908c-4239-8677-08c27695fb63 on 05 Jul 2020 23:10:34

RE: Conditional Formatting throughout

It would be great to have conditional formatting allow for color formatting based on TRUE/FALSE results.

Tom Andrews's profile image Profile Picture

c5b33d0e ee4f-40fa-bdf7-e6d76859de51 on 05 Jul 2020 23:03:07

RE: Conditional Formatting throughout

Conditional Color formatting should exist.