In looker I can set exact date filters or I can set rough filters.
I want to be able to define a range dynamically. For example the start of the year up to today
would be the goal.
If I select this year I get a bunch of zeros for the months that have not happened yet.
If I set it to the past 7 months (during July) I can see the data I want but as soon as it is the next month then we will be missing the 1st month of the year.
How do I display all months of current year without display months that have not happened yet?
One quick work around to displaying Year to Date
is to combine advanced filter, especially with time dimension_group
.
You can filter on different granularity levels in order to add an AND
clause as the example below:
The double filters would result as below:
Obviously, you can hide the columns that are not needed in the visualization afterwards.
Hope it helps!