Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
In a table I have a column with a REFRESH-DATE and another COLOR column whose value is calculated with a DAX formula.
The COLOR column depends on whether the DATE-REFRESH column is equal to TODAY or not:
COLOR = IF(UltimoDato[Fecha]=TODAY(),"black","red")
What's the matter? The formula is not calculated if I do not do a REFRESH.
You might think "If you don't do a REFREESH the data doesn't change, why recalculate a formula then if you don't do a REFREESH?". Very easy, if in the formula we put a value that changes over time, such as TODAY(), the result of the formula can change without having to do a REFRESH. The result changes if the TODAY() value changes, which happens every day as we all know 🙂
Example:
What do I want to achieve with this?
When I consult data from a database I also update a REFRESH-DATE, so I always know if the automatic refresh is working. If I look at the report and see that the REFRESH-DATE is not today's then I know that something has gone wrong and that the data are old.
In order to better detect that case, I would like the background of the card where I show DATE-REFRESH to change to RED, but since the formula is not recalculated if REFRESH is not done, the color does not change.
Any ideas?
Thank you
Amadeo
Hello!
Worked!!!
Thanks a lot!
You could create a measure like
Refresh date colour =
IF ( MAX ( 'Table'[Date Refresh] ) = TODAY (), "black", "red" )
and use that in conditional formatting on the card. As it is a measure it will be calculated dynamically
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.