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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
jaji
Frequent Visitor

Dax Color Conditioning not working for all Rows

Hi guys, so I have this conditioning in DAX: 

Task =
SWITCH (TRUE (),
    'Table'[Date] < TODAY (), "#FD625E",
    WEEKNUM ( ''Table'[Date], 2 ) = WEEKNUM ( TODAY (), 2 ), "#FFD86C",
    WEEKNUM ( ''Table'[Date], 2 ) = WEEKNUM ( TODAY (), 2 ) + 1, "#73B761"
)
 
And I apply this Dax to my table in Power Bi Desktop. It worked floorlessly, till an update and now some of the rows don't reflect the condition. The condition is applied to ALL COLUMNS in the table; All, except one column, "Custom" dont seem to reflect everything. The rule should apply Irrespective of what's in that column, since ''Table'[Date] is independent from these columns. The first four columns aligns with what i did expect with the coloring but the 

 

jaji_1-1733323141218.png

Have anyone come across this problem?

1 ACCEPTED SOLUTION
jaji
Frequent Visitor

We realized that when the 'Table'[Date] column defaults to 1/1/1900 due to an error in the date, it breaks the color conditioning (or the color condition don't work properly). The Problem resolved itself the moment that was fixed from the source file. Thanks!

View solution in original post

1 REPLY 1
jaji
Frequent Visitor

We realized that when the 'Table'[Date] column defaults to 1/1/1900 due to an error in the date, it breaks the color conditioning (or the color condition don't work properly). The Problem resolved itself the moment that was fixed from the source file. Thanks!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.