我遇到一个问题,我需要按另一个组或字段对组进行排序,但遇到了解决问题的问题。
示例数据: [库存号],[销售日期],[售出价格],销售数量
red ball, 10/12/16, $13.33, 4
red ball, 10/11/16, $13.33, 12
red ball, 10/11/16, $12.99, 25
red ball, 10/11/16, $13.33, 2
red ball, 10/15/16, $13.33, 4
green ball, 10/15/16, $12.99, 4
green ball, 10/10/16, $12.99, 1
green ball, 10/10/16, $13.99, 8
green ball, 10/12/16, $12.99, 2
green ball, 10/12/16, $12.99, 3
我将它们按项目分组,但按日期分组并禁止销售任何价格变化,并按价格分组,不按升序日期对它们进行排序。
结果数据应如下所示:
red ball
10/11/16, $13.33, 14
10/11/16, $12.99, 25
10/12/16, $13.33, 4
10/15/16, $13.33, 4
green ball
10/10/16, $12.99, 1
10/10/16, $13.99, 8
10/12/16, $12.99, 5
10/15/16, $12.99, 4
答案 0 :(得分:0)
(无需压制)