Reputation: 639
I have multiple tables in a Google Data Studio report:
Table 1 (Input):
Name | Date |
---|---|
Sally | Jan 14, 2022 |
Mike | Jan 11, 2021 |
Bob | Jan 12, 2022 |
Table 2 (Input):
Name | One Year From Date |
---|---|
Sally | Jan 14, 2023 |
Mike | Jan 11, 2022 |
Bob | Jan 12, 2023 |
Note: One Year From Date
is a calculated field based on the Date
field: datetime_add(Date, interval 1 year)
When I add a date range control, it filters based on the date that all the calculated fields are based on (Date
field). For example, if the date range control is from Jan 1, 2022 to Jan 31, 2022, the results are:
Table 1 (current output):
Name | Date |
---|---|
Sally | Jan 14, 2022 |
Bob | Jan 12, 2022 |
Table 2 (current output):
Name | One Year From Date |
---|---|
Sally | Jan 14, 2023 |
Bob | Jan 12, 2023 |
with the desired outcome being:
Table 1 (expected output):
Name | Date |
---|---|
Sally | Jan 14, 2022 |
Bob | Jan 12, 2022 |
Table 2 (expected output):
Name | One Year From Date |
---|---|
Mike | Jan 11, 2022 |
How do I get the filter to filter based on the actual date rather than the calculated field original date?
Upvotes: 2
Views: 2395
Reputation: 6471
It can be achieved by matching the date range dimension field of each table with the respective date field in each table:
Date
Name
Date
One Year From Date
Name
One Year From Date
Editable Google Data Studio Report (Embedded Google Sheets Data Source) and a GIF to elaborate:
Upvotes: 0