I haven't been able to work out how to do in power pivot or normal formulas as it requires using the average of each month and dividing by the occurrences in each month to get an average.
The problem is the start and end dates are random, and days in between can be any number of days between different months and years.
Some rows may be between 1st Sep 2020, and 20th Dec 2020, or just be a week long as an example below. All dates are different and randomn
I would like to get a table of per month calculation for each country in a pivot table format or similar.
Example below raw data
Country Plant Start End Days Volume
Brazil Rio 10/15/2022 12/20/2022 67 50
Brazil Brasilia 02/06/2023 03/07/2023 30 100
Colombia Bogota 11/01/2022 12/05/2022 35 30
The answer should look like below for each plant. And then I can summarize by country. Think pivot tables are impossible and needs formulas or vba?
Any help would be greatly appreciated
The problem is the start and end dates are random, and days in between can be any number of days between different months and years.
Some rows may be between 1st Sep 2020, and 20th Dec 2020, or just be a week long as an example below. All dates are different and randomn
I would like to get a table of per month calculation for each country in a pivot table format or similar.
Example below raw data
Country Plant Start End Days Volume
Brazil Rio 10/15/2022 12/20/2022 67 50
Brazil Brasilia 02/06/2023 03/07/2023 30 100
Colombia Bogota 11/01/2022 12/05/2022 35 30
The answer should look like below for each plant. And then I can summarize by country. Think pivot tables are impossible and needs formulas or vba?
Any help would be greatly appreciated
Brazil | Brazil | Colombia | |
Rio | Brasilia | Bogota | |
Oct-22 | 27.42 | 0.00 | 0.00 |
Nov-22 | 50.00 | 0.00 | 30.00 |
Dec-22 | 32.26 | 0.00 | 4.84 |
Jan-23 | 0.00 | 0.00 | 0.00 |
Feb-23 | 0.00 | 82.14 | 0.00 |
Mar-23 | 0.00 | 22.58 | 0.00 |