Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I have a table thats used each month to show a task is due on a certain day of the month, we input a number 3 if its still to be done 2 if its in progress and 3 when complete, I want to colour these red, orange and green but I cant see how to do it without going into each day individually and setting the conditional formatting, is there a way to do this?
Solved! Go to Solution.
Hi @Belle2015,
The issue here is likely because the Day values in the DayTable not exactly matching the Day values in the unpivoted table.
Once these are done the task statuses should appear correctly under their respective days.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Thank you @v-achippa I have got it sorted now and as I am using the day from the new day table I dont need to do add the sort column, I just changed it so as the dates dont have the "th" after them and just appear as the number.
Thanks for all your help with this 🙂
Hi @Belle2015
First right click on a table in the Data pane and choose New Measure:
Go to Cell elements and turn the background colour on:
Click the Fx symbol and change from Gradianet to FIeld value and then select your measure:
Enjoy the fruits of your labour:
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi,
Thanks for your response.
My issue is that the value comes in under the day it falls on so for this I would have to do the measure for each day so it would be creating 31 measures and this is what i was wanting to see if I can avoid, was just hoping there may be a way around this.
Hi @Belle2015,
Thank you for reaching out to Microsoft Fabric Community.
Here the power bi requires separate conditional formatting setup per column. So we cannot use one measure to color multiple individual columns because formatting rules are basically column specific. Please follow below steps:
TaskStatusColor =
SWITCH(
TRUE(),
SELECTEDVALUE('YourTable'[TaskStatus]) = 3, "#FF0000",
SELECTEDVALUE('YourTable'[TaskStatus]) = 2, "#FFA500",
SELECTEDVALUE('YourTable'[TaskStatus]) = 1, "#008000"
)
Use this single measure as a Field Value in conditional formatting for the matrix.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi @v-achippa ,
This works great thanks,
The only thing I would like the days to be in order and I cant see how to do this?
I would also like it to show days even when there is no task?
I selected the show items with no data but they still do not show
Any help is great appreciated 🙂
Hi @Belle2015,
After unpivoting power bi sorts the Day column alphabetically so to sort it properly, in Power Query Editor after unpivoting select the Day column and go to Add Column --> Custom Column and enter the below formula to extract the day number:
= Number.FromText(Text.Select([Day], {"0".."9"}))
Name this new column as DaySort and click Close & Apply.
Now in power bi go to Table view, select the Day column, go to the Column tools --> Sort by column and select DaySort. Now the days will be sorted from 1st to 31st correctly in the matrix visual.
For showing all days, go to Modeling --> New Table and paste this below code:
DayTable =
ADDCOLUMNS (
CALENDAR (DATE(2025, 1, 1), DATE(2025, 1, 31)),
"Day", FORMAT([Date], "d") & "th"
)
Create a relationship between DayTable[Day] and your unpivoted table’s Day column.
In the Matrix visual use DayTable[Day] in the Columns field and ensure Show items with no data is enabled.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi @v-achippa ,
The sort part of this works perfectly thanks.
The only thing is when I have set up the table and used the Day in the column it is not bringing in the task status under the day, it just has them under a blank column at the begining.
Thanks for your help with this 🙂
Hi @Belle2015,
The issue here is likely because the Day values in the DayTable not exactly matching the Day values in the unpivoted table.
Once these are done the task statuses should appear correctly under their respective days.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 37 | |
| 31 | |
| 27 |