Forum Discussion

RDF25087's avatar
RDF25087
Helper I
3 years ago

Date Conditional Formatting

Hello!

 

I have a data table with UK post code areas and a date of the last sale in that area, for example:

 

Post Code AreaLast Sale
AB[NULL]
AL04/04/2023
B23/02/2023
BA[NULL]
BB11/11/2022
BD27/03/2023
BH01/02/2023
BL28/01/2023
BN[NULL]
BR

01/04/2023

 

What I'd like to do is plot these post codes on a map but colour code them.

 

So, on the basis today is 05/04/2023 I'd like to colour code the plots as such:

 

1. If Last Sale is Null/Blank then BLUE

2. If Last Sale is less than a month ago then GREEN

3. If Last Sale is between a month and three months ago then YELLOW

4. If Last Sale is greater than three months ago then RED

 

Is this possible? I was presuming I might need to create four separate measures?

 

Thanks for any help you could provide.

RDF

3 Replies