Forum Discussion
Creating conditional color formatting for date column
- Anonymous3 years ago
Hi masonsmerl17 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a measure as below
Conditional formatting = VAR _selsdate = SELECTEDVALUE ( 'Table'[Latest Start Date] ) RETURN SWITCH ( TRUE (), _selsdate < TODAY (), "Red", DATE ( YEAR ( _selsdate ), MONTH ( _selsdate ), DAY ( _selsdate ) ) = TODAY (), "Green" )2. Configure conditional formatting
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi masonsmerl17 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a measure as below
Conditional formatting =
VAR _selsdate =
SELECTEDVALUE ( 'Table'[Latest Start Date] )
RETURN
SWITCH (
TRUE (),
_selsdate < TODAY (), "Red",
DATE ( YEAR ( _selsdate ), MONTH ( _selsdate ), DAY ( _selsdate ) ) = TODAY (), "Green"
)
2. Configure conditional formatting
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards