Is it possible to use dynamic dates in conditional formatting?

Mikael Helldén
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 15, 2024

In a chart, I want to use conditional formatting to color the background if the date is before e.g. today's date. I that possible? I've tried different versions of {TODAY}, but it doesn't work.

Hard coding the date (e.g. 2024-06-15) works, but I obviously don't want to change the value every time I look at the chart.

conditional formatting date.png

2 answers

1 accepted

1 vote
Answer accepted
Shashwat Khare
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2024

Hello @Mikael Helldén ,

This is Shashwat from Atlassian Analytics and here to help! :) 

Unfortunately, applying conditional formatting on relative date variables isn't yet supported, however, we have an existing feature request for the same as below:
https://jira.atlassian.com/browse/ANALYTICS-219

I have personally watched the FR and added you, so we help gain more traction on its implementation and also so we receive notifications on it moving forward.

I would recommend that you upvote the same so that you help add more traction to its implementation and so you receive updates in the future as well.


Best,
Shashwat

Mikael Helldén June 17, 2024

Thank you for your reply, @Shashwat Khare! I've voted for the FR. :)

Like Shashwat Khare likes this
0 votes
Tommaso Gionfriddo _Teklada_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2024

Hi @Mikael Helldén

This is a problem I've been tackling for some time. Whilst I have technically been able to solve it, you may not love the solution.

Essentially, if you rename each column to something static ( I like to use an invisible character such as U+200E, with one additional character added for each additional column) you can then apply the conditional formatting to the columns, regardless of what date they are.

Next, for each of these static column titles, add a new text chart over the top, and have the date for that column display in the text chart.

Whilst it can look a tad janky, it's certainly passable in many situations.

I don't have access to any Analytics applications currently, sorry, otherwise I'd provide some visuals. If you would like a more detailed explanation, please let me know and I can see if I can draw some diagrams or get access to an analytics license from someone.

 

Mikael Helldén June 28, 2024

Hi  @Tommaso Gionfriddo _Teklada_ ,
Thank you for your input! Will look into your proposed solution while we're waiting for the feature request to be implemented.
Cheers!

Tommaso Gionfriddo _Teklada_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2024

Awesome! If you get something working, I'd love to see your approach and if it differed at all from mine.

Unfortunately I don't have any of the code snippets from when I did this previously. But I recall finding the explode function incredibly helpful.

I'll try find the code snippets and provide them here if I'm able to get my hands on them. Or once I write them again myself.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events