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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Can we implement multiple colors into one cell using Conditional formatting or suggest any method

Hi All,

 

Here it's my scenario, There would be an absence reason with a list of codes by each employee.

 

Example :

 EmpID - 24563

Absence Reason - Unscheduled

List of codes - 170,195,150

Each of the codes occupied time hours - 170(2.7),195(0.3) and 150(6),

Date - 05/23/2022

 

In the above scenario, one cell occupied the list of codes for the same date. For Each code, we can differentiate the status by colors in one cell.

 

Looking forward your support and help !

 

2 ACCEPTED SOLUTIONS
ThomasWeppler
Impactful Individual
Impactful Individual

Hi FJ83

You can try conditional formatting.
Just enter the build visualization option and pick the colum you want to change.

colors.png

 Next you go to rules option and the format style  

rules.png

After that you pick the meaure you want to base the colors on. In your case it seems to be a status and you pick the color for each of the given statuses.
If only works with numbers so you might need another measure that goes something like
Measure = if(Absence Reason = Unscheduled, 1,
if(Absence Reason = Scheduled, 2,
if(Absence Reason = Done, 3, 4)))

I hope this help you.

 



View solution in original post

Anonymous
Not applicable

4 REPLIES 4
Anonymous
Not applicable

Thanks 

ThomasWeppler
Impactful Individual
Impactful Individual

Hi FJ83

You can try conditional formatting.
Just enter the build visualization option and pick the colum you want to change.

colors.png

 Next you go to rules option and the format style  

rules.png

After that you pick the meaure you want to base the colors on. In your case it seems to be a status and you pick the color for each of the given statuses.
If only works with numbers so you might need another measure that goes something like
Measure = if(Absence Reason = Unscheduled, 1,
if(Absence Reason = Scheduled, 2,
if(Absence Reason = Done, 3, 4)))

I hope this help you.

 



PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

You can only have 1 color in a cell (table, matrix?).  But if you had the codes in separate celsl then you can color each one differently.

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Thanks Phil

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.