Capt.Ragnar
Board Regular
- Joined
- Jun 6, 2012
- Messages
- 138
I need to count both the total number of locations with the same "Facility Type" in the same "Year". Then I need to count the number of locations with greater cost metrics than each respective location within the same "Facility Type" and "Year".
Sample below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Facility Type[/TD]
[TD]Year[/TD]
[TD]Cost Metric Value[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]2013[/TD]
[TD]15.1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD]2013[/TD]
[TD]16.2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]B[/TD]
[TD]2013[/TD]
[TD]22.1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]C[/TD]
[TD]2013[/TD]
[TD]35.0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]2014[/TD]
[TD]15.7[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD]2014[/TD]
[TD]17.0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]B[/TD]
[TD]2014[/TD]
[TD]19.8[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]C[/TD]
[TD]2014[/TD]
[TD]36.2[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]C[/TD]
[TD]2014[/TD]
[TD]37.3[/TD]
[/TR]
</tbody>[/TABLE]
Sample below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Facility Type[/TD]
[TD]Year[/TD]
[TD]Cost Metric Value[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]2013[/TD]
[TD]15.1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD]2013[/TD]
[TD]16.2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]B[/TD]
[TD]2013[/TD]
[TD]22.1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]C[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