I am trying to duplicate values for dates when all I have is the start date. It's a SUM of all relevant volume but not cumulative since I don't want to add from the prior month.
I receive a row value showing weekly quantity processed by start date. I also have a standard date table with every date in the range.
Customer Volume Start Date
A 20,000 5/1/2017
B 10,000 5/1/2017
A 5,000 8/1/2017
C 10,000 10/1/2017
I would like the result to be a pivot table showing the total volume for each month
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]2017
[/TD]
[TD]2018
[/TD]
[/TR]
[TR]
[TD]Jan
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Apr
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]May
[/TD]
[TD]30,000
[/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Jun
[/TD]
[TD]30,000
[/TD]
[TD]etc
[/TD]
[/TR]
[TR]
[TD]Jul
[/TD]
[TD]30,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Aug
[/TD]
[TD]35,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sep
[/TD]
[TD]35,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oct
[/TD]
[TD]45,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nov
[/TD]
[TD]45,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dec
[/TD]
[TD]45,000
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
How can I write a DAX measure to provide the numbers? I would also like to have other derived measures (e.g. cost per unit) based on the volume totals.
I receive a row value showing weekly quantity processed by start date. I also have a standard date table with every date in the range.
Customer Volume Start Date
A 20,000 5/1/2017
B 10,000 5/1/2017
A 5,000 8/1/2017
C 10,000 10/1/2017
I would like the result to be a pivot table showing the total volume for each month
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]2017
[/TD]
[TD]2018
[/TD]
[/TR]
[TR]
[TD]Jan
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Feb
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Mar
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Apr
[/TD]
[TD][/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]May
[/TD]
[TD]30,000
[/TD]
[TD]45,000
[/TD]
[/TR]
[TR]
[TD]Jun
[/TD]
[TD]30,000
[/TD]
[TD]etc
[/TD]
[/TR]
[TR]
[TD]Jul
[/TD]
[TD]30,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Aug
[/TD]
[TD]35,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sep
[/TD]
[TD]35,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oct
[/TD]
[TD]45,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nov
[/TD]
[TD]45,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dec
[/TD]
[TD]45,000
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
How can I write a DAX measure to provide the numbers? I would also like to have other derived measures (e.g. cost per unit) based on the volume totals.