Forum Discussion
Vedicine
Jan 26, 2023Copper Contributor
Connecting two timelines from two different pivot tables that have different data sources
Hi I have created two pivot tables from two different data sources. These data sources have one thing in common which is that both have column with date. I want to have one "master" timeline...
Riny_van_Eekelen
Dec 23, 2023Platinum Contributor
Not sure why you need VBA. Attached file contains a very crude data model demonstrating how one time line controls multiple pivot tables.
- NikSatDec 23, 2023Copper ContributorHow did you add the date Hierarchy to the calendar table, and what was the purpose?
- Riny_van_EekelenDec 23, 2023Platinum Contributor
NikSat When I added Table1 and Table2 to the DM, I clicked 'Date Table' on the Design tab in the Calendars group. That automatically created the Calendar table based on the dates found in other tables, including the hierarchy.
And you can update/adjust the date range if you want/need.
But the key is that you create a table containing unique dates that cover all dates in the model, and that you use the date column from the Calendar table when you create pivot tables.
- NikSatDec 23, 2023Copper ContributorDamm Riny, you are an Excel God....... lemme Try this right away