Hi,
I have a huge data set in Powerpivot in the structure below:
[TABLE="width: 348"]
<TBODY>[TR]
[TD]Contract</SPAN>[/TD]
[TD]Reporting Month</SPAN>[/TD]
[TD]Established</SPAN>[/TD]
[/TR]
[TR]
[TD]AAA</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]No</SPAN>[/TD]
[/TR]
[TR]
[TD]AAA</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]BBB</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]BBB</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]CCC</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]DDD</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]No</SPAN>[/TD]
[/TR]
[TR]
[TD]DDD</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]EEE</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]No</SPAN>[/TD]
[/TR]
[TR]
[TD]FFF</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>[/TABLE]
I need to calculate how many contracts:
- Existed in the previous month
- Had an Established reason of 'No' in the previous month
- Has an Established reason of 'Yes' this month
Based on the sample data set above and from the perspective of the reporting month 31/10/2012:
Answer = 2 (AAA and DDD)
Anyone any ideas?
Thanks
I have a huge data set in Powerpivot in the structure below:
[TABLE="width: 348"]
<TBODY>[TR]
[TD]Contract</SPAN>[/TD]
[TD]Reporting Month</SPAN>[/TD]
[TD]Established</SPAN>[/TD]
[/TR]
[TR]
[TD]AAA</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]No</SPAN>[/TD]
[/TR]
[TR]
[TD]AAA</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]BBB</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]BBB</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]CCC</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]DDD</SPAN>[/TD]
[TD="align: right"]30/09/2012</SPAN>[/TD]
[TD]No</SPAN>[/TD]
[/TR]
[TR]
[TD]DDD</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
[TR]
[TD]EEE</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]No</SPAN>[/TD]
[/TR]
[TR]
[TD]FFF</SPAN>[/TD]
[TD="align: right"]31/10/2012</SPAN>[/TD]
[TD]Yes</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>[/TABLE]
I need to calculate how many contracts:
- Existed in the previous month
- Had an Established reason of 'No' in the previous month
- Has an Established reason of 'Yes' this month
Based on the sample data set above and from the perspective of the reporting month 31/10/2012:
Answer = 2 (AAA and DDD)
Anyone any ideas?
Thanks