【发布时间】:2021-07-29 21:22:57
【问题描述】:
我有 2 个来自同一数据源、相同列的表,其中一个已被过滤。使用COUNT_DISTINCT(another_field) 度量来计算总计数。百分比计算为COUNT_DISTINCT(another_field) 并使用Percent of total 比较函数。标题就是维度。
| Title | Total count | Percentage |
|---|---|---|
| title1 | 1,734 | 47.36% |
| Title | Total count(filtered) | Percentage(filtered) |
|---|---|---|
| title1 | 1,639 | 45.69% |
哪些是正确的数字。现在在混合这两个由 Title 连接的表之后,我得到了。
| Title | Total count | Percentage | Total count(filtered) | Percentage(filtered) |
|---|---|---|---|---|
| title1 | 1,734 | 6.18% | 1,639 | 9.97% |
现在百分比发生了什么变化?他们为什么变了?以及如何使用与分开的数字相同的数字来完成这个连接表。
【问题讨论】: