cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ShawnPrice
Helper I
Helper I

Change colors based on certain factors

Is is possible to change color on text based on certain factors? As in the example below.

 

Item            Q1       Q2      Q3     Q4

Coat             22       13       54      53

Shovel          30        5         15     25

 

I would like to change the 54 & 30 to bold or a different color to show the person viewing the report which Quarter was the best without really having to look through the row.

6 REPLIES 6
Anonymous
Not applicable

Conditional formatting can (just now) be applied to cell backgrounds in tables only - you can't use conditional formatting on cell text in tables, or on a matrix.

 

Shawn,

Your example looks like a matrix with Items and Quarters as columns, not measures.  You can use conditional formatting  of text in an R visual using geom_text() - see https://community.powerbi.com/t5/R-Script-Showcase/Heatmaps/td-p/68573 for a related example.

ShawnPrice
Helper I
Helper I

I'm wanting to do this in a Matrix, sorry for not mentioning it before.

Greg_Deckler
Super User
Super User

I believe that both Table and Matrix visualizations have cell conditional formatting now, definitely tables. 

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-conditional-table-formatting/

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler

 

Hmm..  I just did the test and It is only supported in Table and not Matrix. 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Ah yes, I remembering seeing it as started here:

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15310341-conditional-formatting-i...

 

Maybe end of this month?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
BhaveshPatel
Community Champion
Community Champion

 

@ShawnPrice

 

You can use conditonal formatting feature but it is only supported in the table visual and with measures only. FYI- Microsoft has considered to make Conditional Formatting more rich and supported in other visuals in future releases.

For this, You need to create 2 measures.

 

Total Coats:=SUM(Table1[Coats]), 

Similarly for Total Shovels.

 

Create a Table Visual and Drag ITEM Field, Total Coats Measure and Total Shovels Measure as shown in the Screenshot.

conditional.PNG

As shown in the Screenshot, Select the drop down arrow of the Total Coats measure, and select conditional formatting.

It will pop up with a new dialog box as shown in the below screenshot.\

Conditional Formatting Dialog BoxConditional Formatting Dialog BoxFinal OutputFinal Output

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors