Hello,
First off, the official disclaimer... I'm new to power pivot, but just finished reading Rob and Avi's book, and have spent the last few weeks learning as much as I can. Apologies if I'm using incorrect terminology or am asking an obvious question, but the solution to the problem that led me to power pivot in the first place continues to evade me. I've made what I feel to be a lot of headway in other areas but this one is killing me, and no amount of forum searching has lead me to an elegant solution. I think I know why this isn't simple, but not sure I can explain it succinctly. Side note: power pivot is AMAZING and I keep finding myself asking where it has been all my life!
The problem:
I'm calculating Days Sales Outstanding (DSO) per month, or AR Balance / Average Daily Sales. I need a dynamic table, where I can modify the filter context numerous times based on need, e.g. by customer, region, state, etc., not just by a single column or filter. From there, I need the monthly average of the results generated by the measures. The table below outlines what I'm looking for, with the Jan-Mar DSO results calculated as:
DIVIDE(sumx('DSO_Base_Data','DSO_Base_Data'[201701 _AR Balance]),(SUMX('DSO_Base_Data','DSO_Base_Data'[201701 Invoice])/92))
Where my source data may be 10-15 lines per customer ID, or per person responsible, etc.
The average column below is just a simple Average() formula bolted on the side for illustrative purposes, but highlights ultimately what I'm trying to get into my pivot table.
[TABLE="width: 394"]
<tbody>[TR]
[TD]CUSTOMERID[/TD]
[TD]Jan DSO[/TD]
[TD]Feb DSO[/TD]
[TD]Mar DSO[/TD]
[TD]Average[/TD]
[/TR]
[TR]
[TD]CID000501[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]106[/TD]
[TD="align: right"]105[/TD]
[TD="align: right"]104[/TD]
[/TR]
[TR]
[TD]CID000636[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD]CID000969[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]281[/TD]
[TD="align: right"]121[/TD]
[/TR]
[TR]
[TD]CID001159[/TD]
[TD="align: right"]146[/TD]
[TD="align: right"]171[/TD]
[TD="align: right"]179[/TD]
[TD="align: right"]165[/TD]
[/TR]
[TR]
[TD]CID001623[/TD]
[TD="align: right"]135[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]108[/TD]
[TD="align: right"]104[/TD]
[/TR]
[TR]
[TD]CID002271[/TD]
[TD="align: right"]135[/TD]
[TD="align: right"]169[/TD]
[TD="align: right"]216[/TD]
[TD="align: right"]173[/TD]
[/TR]
[TR]
[TD]CID003183[/TD]
[TD="align: right"]165[/TD]
[TD="align: right"]220[/TD]
[TD="align: right"]171[/TD]
[TD="align: right"]185[/TD]
[/TR]
[TR]
[TD]CID003222[/TD]
[TD][/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]CID008639[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]69[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]79[/TD]
[/TR]
[TR]
[TD]CID012800[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD]CID017029[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]CID218504[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]71[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]103[/TD]
[TD="align: right"]76[/TD]
[/TR]
</tbody>[/TABLE]
Some of the research I've done leads me to potential use of the summarize() function, but I don't seem to have that in my list of formulas (using 2010).
Any ideas how I might approach this one?
Many thanks in advance for any help provided!
First off, the official disclaimer... I'm new to power pivot, but just finished reading Rob and Avi's book, and have spent the last few weeks learning as much as I can. Apologies if I'm using incorrect terminology or am asking an obvious question, but the solution to the problem that led me to power pivot in the first place continues to evade me. I've made what I feel to be a lot of headway in other areas but this one is killing me, and no amount of forum searching has lead me to an elegant solution. I think I know why this isn't simple, but not sure I can explain it succinctly. Side note: power pivot is AMAZING and I keep finding myself asking where it has been all my life!
The problem:
I'm calculating Days Sales Outstanding (DSO) per month, or AR Balance / Average Daily Sales. I need a dynamic table, where I can modify the filter context numerous times based on need, e.g. by customer, region, state, etc., not just by a single column or filter. From there, I need the monthly average of the results generated by the measures. The table below outlines what I'm looking for, with the Jan-Mar DSO results calculated as:
DIVIDE(sumx('DSO_Base_Data','DSO_Base_Data'[201701 _AR Balance]),(SUMX('DSO_Base_Data','DSO_Base_Data'[201701 Invoice])/92))
Where my source data may be 10-15 lines per customer ID, or per person responsible, etc.
The average column below is just a simple Average() formula bolted on the side for illustrative purposes, but highlights ultimately what I'm trying to get into my pivot table.
[TABLE="width: 394"]
<tbody>[TR]
[TD]CUSTOMERID[/TD]
[TD]Jan DSO[/TD]
[TD]Feb DSO[/TD]
[TD]Mar DSO[/TD]
[TD]Average[/TD]
[/TR]
[TR]
[TD]CID000501[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]106[/TD]
[TD="align: right"]105[/TD]
[TD="align: right"]104[/TD]
[/TR]
[TR]
[TD]CID000636[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD]CID000969[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]281[/TD]
[TD="align: right"]121[/TD]
[/TR]
[TR]
[TD]CID001159[/TD]
[TD="align: right"]146[/TD]
[TD="align: right"]171[/TD]
[TD="align: right"]179[/TD]
[TD="align: right"]165[/TD]
[/TR]
[TR]
[TD]CID001623[/TD]
[TD="align: right"]135[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]108[/TD]
[TD="align: right"]104[/TD]
[/TR]
[TR]
[TD]CID002271[/TD]
[TD="align: right"]135[/TD]
[TD="align: right"]169[/TD]
[TD="align: right"]216[/TD]
[TD="align: right"]173[/TD]
[/TR]
[TR]
[TD]CID003183[/TD]
[TD="align: right"]165[/TD]
[TD="align: right"]220[/TD]
[TD="align: right"]171[/TD]
[TD="align: right"]185[/TD]
[/TR]
[TR]
[TD]CID003222[/TD]
[TD][/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]CID008639[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]69[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]79[/TD]
[/TR]
[TR]
[TD]CID012800[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD]CID017029[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]CID218504[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]71[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]103[/TD]
[TD="align: right"]76[/TD]
[/TR]
</tbody>[/TABLE]
Some of the research I've done leads me to potential use of the summarize() function, but I don't seem to have that in my list of formulas (using 2010).
Any ideas how I might approach this one?
Many thanks in advance for any help provided!