Forum Discussion

Tris_Beachwood's avatar
Tris_Beachwood
Copper Contributor
Jul 25, 2021
Solved

Count dates by calendar table

Hi All,   Using Excel 365,   I'm hoping to find some help to find a way to count multiple date fields by year and month of my calendar table. The result I'm getting when in create my pivot table ...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Jul 25, 2021

    Tris_Beachwood Thanks! Very helpful.

     

    You can't relate multiple Date columns in the activity table to the Date in the calendar table. I took your table as the source for a Power Query. Cleaned-up a bit and focussed only on the columns you seem to interested in. Then, the key step is to unpivot the table so that you are left with one single date column in the activity table. Then, the rest is a piece of cake.

     

    See attached.

     

Resources