Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,138
Community Members
 
Community Events
184
Community Groups

Dynamic filter for dates

I'm using the Table Filter macro in a dashboard to show dated items from tables on other pages.  I want to use the dynamic filter so that the dates of items shown are from two weeks prior to today, through today.  Is it possible to set this up so that the filter doesn't have to be updated manually?

1 answer

1 accepted

2 votes
Answer accepted
Andrey Khaneev _StiltSoft_
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.
Aug 16, 2021

Hi @Erica L,

Here you can find dynamic variables for date filters. In your case, you need to set from -2w to today.

Thank you so much.  I didn't realise that I could type in "today".  

 

Cheers!

@Andrey Khaneev _StiltSoft_ Is there an option for previous month? I checked out the link but didn't see that option.

Andrey Khaneev _StiltSoft_
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.
Mar 17, 2022

Hi @Andrea Conver ,

It is possbile to set -1m. So it is equal to Feb 17 for today. Is it what you need?

Hi @Andrey Khaneev _StiltSoft_ ,

That's close, but I don't want the query to be the last 30 days. I'd like the report to always be 1st day of the month to the last day of the previous month. So if I run the report today, I'd like the query to run 2/1-2/28. Thanks!

Andrey Khaneev _StiltSoft_
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.
Mar 17, 2022

It is not possible to do with the Table Filter macro, but you can use the Table Transformer macro with the following query:

SELECT * FROM T1
WHERE T1.'Date' <= ("monthstart" - "1d") AND T1.'Date' >= (("monthstart" - "1d")::Date->setDate(1))

 Here the Date is the name of column with dates to filter.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events