- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

How to setup color code for date value
Thank you first!
I am tracking different milestone dates in a PBI table as below, instead of creating flag columns for each date, is there a simple way if the date is before today, then showing as green font color?
Thanks again!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hello @PioneerZhu
here is the table that might be closer to your table.
do you accept visual like this?
since this is matrix, or else using table visula will be look like this.
if you good with either of those two, the process is same as above (unpivot those date tables)
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you @Chew_WenJie and @Irwan I knew about create new measure, just I need to track lot of columns which are all date value(request date, approval date, start date, complete date, test date, accept date....), I just don't want to create so many measures for each one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hello @PioneerZhu
if you dont want to create multiple measure and multiple color assignment, i would unpivot all those date column and use matrix visual instead of table visual.
1. i assumed you have another column to differentiate those date such as ID
2. unpivot that table so you will have only one date column
3. plot into matrix visual
4. assign color measure to date column (from Cell Elements)
5. the rest is same as above.
Hope this will help.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you thank you @Irwan and appreciate your time. I am with you on the logic. Just my raw data is already in this way as your picture and the "ID" is consisted with multi several columns as 2nd picture.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hello @PioneerZhu
here is the table that might be closer to your table.
do you accept visual like this?
since this is matrix, or else using table visula will be look like this.
if you good with either of those two, the process is same as above (unpivot those date tables)
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hello @PioneerZhu
i am not sure how your table looks like, but it is possible.
here is a simple example i made.
1. create a new measure for defining color (you can change "Green" and using color code to match your preferences)
Color =
IF(
SELECTEDVALUE('Table'[Date])<TODAY(),
"Green"
)
3. choose Field in Format Style and select the measure made before.
Hope this will help.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hihi! 😊 You can create a simple measure like this:
Then, apply conditional formatting to your date column, setting it to show green color based on the measure. You can refer to the example in the image for guidance. 🎨✅
Hope it helps

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
08-14-2023 07:01 AM | |||
05-05-2024 05:14 PM | |||
04-30-2024 04:21 PM | |||
03-08-2023 11:06 AM | |||
05-01-2024 10:50 AM |
User | Count |
---|---|
84 | |
78 | |
52 | |
38 | |
35 |
User | Count |
---|---|
95 | |
72 | |
55 | |
52 | |
46 |