Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Is there a way to change the color of the columns (PD_QTY) based on the date? I'm looking to change the color for values in the future. When I click on the function button for the column color, I only get an option to count the date field, not based upon what the date it.
Solved! Go to Solution.
Hi @davisaj2 ,
According to your description, modify your formula to:
Change Qty Color =
VAR PDDate =
MAX ( 'PD Hist'[DATE] )
RETURN
IF ( PDDate < TODAY (), "#FF0000", IF ( PDDATE >= TODAY (), "#008000" ) )
In the visualization formatting pane>Columns>Colors, click the fx button.
Select the measure in the based on field.
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @davisaj2 ,
According to your description, modify your formula to:
Change Qty Color =
VAR PDDate =
MAX ( 'PD Hist'[DATE] )
RETURN
IF ( PDDate < TODAY (), "#FF0000", IF ( PDDATE >= TODAY (), "#008000" ) )
In the visualization formatting pane>Columns>Colors, click the fx button.
Select the measure in the based on field.
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This worked! Thank you so much!
Apply conditional formatting by field value, i.e. use a DAX expression to set conditions and the corresponding colors:
https://powerbidocs.com/2020/11/02/conditional-formatting-by-field-value-in-power-bi/
Thank you for the link recommendation. I tried to replication the measure using a date instead of a number and Power BI didn't like the date field. Any suggestions?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 43 | |
| 35 | |
| 30 |