【发布时间】:2013-09-22 23:15:18
【问题描述】:
我需要在 OBIEE 中创建以下“数字分布”报告:
item name,
count(distinct item_id by item_name),
count(distinct item_id by item_name)/count(distinct item_id)
(第三列应该是按项目名称区分的计数百分比/按总数区分的计数) 如何获得不同的总数?我被困住了,我将不胜感激。
结果应该是:
Item 1 , 10, 50%
Item 2 , 20, 100%
客户总数为 20,其中 10 人购买 Item_1,其中 20 人购买 Item_2
【问题讨论】:
标签: oracle count distinct obiee