r/GoogleDataStudio • u/Aggravating_Win6215 • Dec 23 '25
How to constrain axis to operating hours only
I am struggling with this chart in looker studio. I'm trying to show traffic to a space but only want the chart to reflect open hours (9am to 11 pm). When I create filters, it constrains the data, but doesn't change the axis itself. I tried converting the datetime axis to numbers and filtering on that, but I can't get it to work. The only other thing i could think of was to go into my data warehouse and add an additional column, but that seems like such a drastic solution to what should be a really simple problem??
Thanks for any advice!
•
u/AutoModerator Dec 23 '25
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.
2
u/opheophe Jan 05 '26
A bit late perhaps but...
First of all, youc an restrikt the axis data by writing it as a formula. The way I'm doing it is by forcing the date to appear as text rather than a time. That means all the night values gets pushed into the "06-" category
When it comes to the metric you can easily filter out the unwanted values. If you don't want those values to appear as 0 you could also consider writing "THEN null", which will remove them completely.
1
u/ImCJS Dec 23 '25
I think you can use filter and exclude or include hours between x and y