I am having a difficult time finding an answer to my needs online, so I was hoping someone in this community could be of help.
I have a raw data table that I will be using to build a report in Excel. I will be building a graph from my PowerPivot table, and using slicers to create a dynamic view of various business metrics.
Each row in my table will contain details for an individual for each month that is being reported on. I am trying to find a way to sum the values in a field for the month, but that total needs to be dynamic so that the slicer tool can be applied to the variables contained in other fields. A stripped down version of the table I will be using is below. Once I've got the syntax down I'll be able to run on my own.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Team[/TD]
[TD]Salesperson[/TD]
[TD]Assets[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]A[/TD]
[TD]John[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]B[/TD]
[TD]Sue[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]A[/TD]
[TD]Patty[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]B[/TD]
[TD]Raymond[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]A[/TD]
[TD]John[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]A[/TD]
[TD]Sue[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]B[/TD]
[TD]Patty[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]B[/TD]
[TD]Raymond[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]B[/TD]
[TD]John[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]A[/TD]
[TD]Sue[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]A[/TD]
[TD]Patty[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]B[/TD]
[TD]Raymond[/TD]
[TD]3000[/TD]
[/TR]
</tbody>[/TABLE]
As you can tell from the graph above the month will always be in the format MM/DD/YYYY.
The idea is that the additional column I am trying to create should show a sum of the assets for all salespeople for each individual month. I would like for this sum to change when a filter is applied. In the standard view the sum for 1/1/2013 would appear as 10,000. When I apply the slicer feature and narrow to team A it should show a sum of 3000 for 1/1/2013.
I'm new to DAX, and have been banging my head against the wall trying to figure this out. Any help you can provide would be GREATLY appreciated.
Thanks
I have a raw data table that I will be using to build a report in Excel. I will be building a graph from my PowerPivot table, and using slicers to create a dynamic view of various business metrics.
Each row in my table will contain details for an individual for each month that is being reported on. I am trying to find a way to sum the values in a field for the month, but that total needs to be dynamic so that the slicer tool can be applied to the variables contained in other fields. A stripped down version of the table I will be using is below. Once I've got the syntax down I'll be able to run on my own.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Team[/TD]
[TD]Salesperson[/TD]
[TD]Assets[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]A[/TD]
[TD]John[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]B[/TD]
[TD]Sue[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]A[/TD]
[TD]Patty[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]B[/TD]
[TD]Raymond[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]A[/TD]
[TD]John[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]A[/TD]
[TD]Sue[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]B[/TD]
[TD]Patty[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]B[/TD]
[TD]Raymond[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]B[/TD]
[TD]John[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]A[/TD]
[TD]Sue[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]A[/TD]
[TD]Patty[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]3/1/2013[/TD]
[TD]B[/TD]
[TD]Raymond[/TD]
[TD]3000[/TD]
[/TR]
</tbody>[/TABLE]
As you can tell from the graph above the month will always be in the format MM/DD/YYYY.
The idea is that the additional column I am trying to create should show a sum of the assets for all salespeople for each individual month. I would like for this sum to change when a filter is applied. In the standard view the sum for 1/1/2013 would appear as 10,000. When I apply the slicer feature and narrow to team A it should show a sum of 3000 for 1/1/2013.
I'm new to DAX, and have been banging my head against the wall trying to figure this out. Any help you can provide would be GREATLY appreciated.
Thanks