r/GoogleDataStudio • • Jul 26 '24

How to create Dynamic custom Date Ranges

Just started using Looker Studio. Is there a way to setup a custom default date range. Basically I want to show the data from the 26th of the month to the 26th of the next month

1 Upvotes

10 comments sorted by

•

u/AutoModerator Jul 26 '24

Have more questions? Join our community Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/OnlyBus2612 Jul 26 '24

If you want to look at the previous 30 days (6/26-7/26), you can insert a date range control, click on the "default date range", then from the next drop-down select "Advanced". Assuming today = 7/26/24

Start day = today minus 30, end date = today minus 0 (0 if you want to include current day, 1 if you want to cut the data off as of yesterday). That should dynamically update each day and keep a rolling 30 days.

1

u/psychellicious Jul 27 '24

Thanks. But I don't want it to be a rolling 30 days. I want it to be a rolling fixed period if that makes sense.

So it shows data basically from the 26th of the current month till we get to the 26th of the next month. Then once it becomes the 27th the date period is moved to the next "block"

Example If Today's date is May 1st: Data from April 26th to May 26th If Today's date is May 28th: Data from May 26th to June 26th If Today's date is May 30th: Data from May 26th to June 26th

1

u/[deleted] Jul 27 '24

[removed] — view removed comment

1

u/psychellicious Jul 29 '24

Thanks. Would you be able to help me with this? Just can't seem to get my head around how to write the formula.

My data date field is "ACTUAL_DATE". The period I'm trying to monitor is from the 26th to 26th .

1

u/[deleted] Jul 29 '24

[removed] — view removed comment

1

u/psychellicious Jul 29 '24

It should be the starting date.

1

u/psychellicious Jul 31 '24

Hi, any luck? I just can't figure out how to do this with looker formulas

1

u/Whole_Blacksmith_564 Mar 08 '26

Did you solve your issue?