Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
mpraka
Advocate I
Advocate I

Background color logic in a single table

Hi All,

 

I would like to achieve the below scenario of BG Colors and Font color. Please help me to achieve this.

 

I have a numeric value, Percentage values and some text values in a single column called "Values".

for e.g., 98, 78% and No Data

 

My Dataset:

Dataset.JPG

 

I created a Matrix table as per my requirement:

Single Table.JPG

 

Now i want to apply the BG color logic to it.

If it falls in Green logic threshold then the bg color should be green. Similar logics for Yellow and Red if it falls in its respective criteria.

If it doesn't have any logics for e.g., NA then that need to be displayed as Grey bg color
Provided my expected color output below:

 

Single Output.JPG

 

Please let me know how to achieve this when we have numeric values as well as percentage values in single column and how to bring that in a single table. The problem here is we have 2 data types in single column. and another problem is we have different color logics for different subjects. for e.g., even though science and English having same data type (Integer) the threshold limit for English and Science is different for green, yellow and red.

 

please help me to achieve this scenario

 

Thank you in Advance

 

Regards,

Prakash

 

 

1 REPLY 1
MFelix
Super User
Super User

Hi @mpraka ,

 

Taking into account that you the red and Green is above or lower than you Yellow limits you need to add two columns for additional calculations.

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.