Hi
I was going through some sale data which had customer name, item code, item description, cost/unit, quantity and value.
[TABLE="width: 457"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Customer[/TD]
[TD]Item code[/TD]
[TD]Item Desc[/TD]
[TD]Cost/unit[/TD]
[TD]quantity[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD="align: right"]01-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]370[/TD]
[TD="align: right"]5180[/TD]
[/TR]
[TR]
[TD="align: right"]02-02-2013[/TD]
[TD]CAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]157[/TD]
[TD="align: right"]1570[/TD]
[/TR]
[TR]
[TD="align: right"]03-02-2013[/TD]
[TD]DAM[/TD]
[TD]A2[/TD]
[TD]three[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]344[/TD]
[TD="align: right"]4816[/TD]
[/TR]
[TR]
[TD="align: right"]04-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]376[/TD]
[TD="align: right"]4888[/TD]
[/TR]
[TR]
[TD="align: right"]05-02-2013[/TD]
[TD]CAM[/TD]
[TD]A2[/TD]
[TD]three[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]194[/TD]
[TD="align: right"]2328[/TD]
[/TR]
[TR]
[TD="align: right"]06-02-2013[/TD]
[TD]DAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]547[/TD]
[TD="align: right"]5470[/TD]
[/TR]
[TR]
[TD="align: right"]07-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]291[/TD]
[TD="align: right"]1455[/TD]
[/TR]
[TR]
[TD="align: right"]08-02-2013[/TD]
[TD]CAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]1800[/TD]
[/TR]
[TR]
[TD="align: right"]09-02-2013[/TD]
[TD]DAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]1365[/TD]
[/TR]
[TR]
[TD="align: right"]10-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]2886[/TD]
[/TR]
[TR]
[TD="align: right"]11-02-2013[/TD]
[TD]CAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]374[/TD]
[TD="align: right"]4114[/TD]
[/TR]
[TR]
[TD="align: right"]12-02-2013[/TD]
[TD]DAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]277[/TD]
[TD="align: right"]3601[/TD]
[/TR]
[TR]
[TD="align: right"]13-02-2013[/TD]
[TD]CAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]434[/TD]
[TD="align: right"]3906[/TD]
[/TR]
</tbody>[/TABLE]
How do I compare the latest price per item for each customer?
I was going through some sale data which had customer name, item code, item description, cost/unit, quantity and value.
[TABLE="width: 457"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Customer[/TD]
[TD]Item code[/TD]
[TD]Item Desc[/TD]
[TD]Cost/unit[/TD]
[TD]quantity[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD="align: right"]01-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]370[/TD]
[TD="align: right"]5180[/TD]
[/TR]
[TR]
[TD="align: right"]02-02-2013[/TD]
[TD]CAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]157[/TD]
[TD="align: right"]1570[/TD]
[/TR]
[TR]
[TD="align: right"]03-02-2013[/TD]
[TD]DAM[/TD]
[TD]A2[/TD]
[TD]three[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]344[/TD]
[TD="align: right"]4816[/TD]
[/TR]
[TR]
[TD="align: right"]04-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]376[/TD]
[TD="align: right"]4888[/TD]
[/TR]
[TR]
[TD="align: right"]05-02-2013[/TD]
[TD]CAM[/TD]
[TD]A2[/TD]
[TD]three[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]194[/TD]
[TD="align: right"]2328[/TD]
[/TR]
[TR]
[TD="align: right"]06-02-2013[/TD]
[TD]DAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]547[/TD]
[TD="align: right"]5470[/TD]
[/TR]
[TR]
[TD="align: right"]07-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]291[/TD]
[TD="align: right"]1455[/TD]
[/TR]
[TR]
[TD="align: right"]08-02-2013[/TD]
[TD]CAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]1800[/TD]
[/TR]
[TR]
[TD="align: right"]09-02-2013[/TD]
[TD]DAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]1365[/TD]
[/TR]
[TR]
[TD="align: right"]10-02-2013[/TD]
[TD]BAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]2886[/TD]
[/TR]
[TR]
[TD="align: right"]11-02-2013[/TD]
[TD]CAM[/TD]
[TD]A3[/TD]
[TD]three[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]374[/TD]
[TD="align: right"]4114[/TD]
[/TR]
[TR]
[TD="align: right"]12-02-2013[/TD]
[TD]DAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]277[/TD]
[TD="align: right"]3601[/TD]
[/TR]
[TR]
[TD="align: right"]13-02-2013[/TD]
[TD]CAM[/TD]
[TD]A1[/TD]
[TD]one[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]434[/TD]
[TD="align: right"]3906[/TD]
[/TR]
</tbody>[/TABLE]
How do I compare the latest price per item for each customer?