I have multiple spreadsheets loading in to a Power Query, then back to Excel for Power Pivots. The attached is a small sample. I want my pivot table to show as follows; Rows will show Year, Column 1 - count of individual employees each year, Column 2 a count of how many employees started that year. Column 1 is easy enough using Distinct Count. Column 2 should show 1 for 2013, 2015 and 2016, 0 for the other years. I imagine there is a Measure (or two) that can be written for this, but I can't figure it out. Any help would be greatly appreciated.
Name | Pay Date | Amount | Start Date |
Joe Smith | 2015 | 1,200.00 | 2015 |
Joe Smith | 2016 | 1,200.00 | 2015 |
Joe Smith | 2017 | 1,200.00 | 2015 |
Joe Smith | 2018 | 1,200.00 | 2015 |
Joe Smith | 2019 | 1,200.00 | 2015 |
Joe Smith | 2020 | 1,200.00 | 2015 |
Joe Smith | 2021 | 1,200.00 | 2015 |
Jane Doe | 2013 | 1,500.00 | 2013 |
Jane Doe | 2014 | 1,500.00 | 2013 |
Jane Doe | 2015 | 1,500.00 | 2013 |
Jane Doe | 2016 | 1,500.00 | 2013 |
Jane Doe | 2017 | 1,500.00 | 2013 |
Jane Doe | 2018 | 1,500.00 | 2013 |
Jane Doe | 2019 | 1,500.00 | 2013 |
Jane Doe | 2020 | 1,500.00 | 2013 |
John Deere | 2016 | 980.00 | 2016 |
John Deere | 2017 | 980.00 | 2016 |
John Deere | 2018 | 980.00 | 2016 |
John Deere | 2019 | 980.00 | 2016 |
John Deere | 2020 | 980.00 | 2016 |
John Deere | 2021 | 980.00 | 2016 |