有没有办法计算我的应用程序有多少个平板电脑设备?我只找到了所有的设备,但它不能解决我的问题
发布于 2018-08-06 17:34:39
在BigQuery中运行以下查询(将XXX替换为您的服务器配置)
select device.category, count(device.category),
count(device.category) * 100.0 / (select count(*) from `XXX.events_*`) as device_percent
from `XXX.events_*`
group by device.category
编辑:如果要根据另一列过滤重复。使用下面的变量(将XXX替换为您的服务器配置,将device.advertising_id替换为列名)
select device.category, count( DISTINCT device.advertising_id),
count( DISTINCT device.advertising_id ) * 100.0 / (select count(*) from (select DISTINCT device.advertising_id from `XXX.events_*`)) as device_percent
from `XXX.events_*`
group by device.category
发布于 2018-08-06 11:29:19
如果你想拆分不同的设备型号,你可以像图片一样添加滤镜。
通常,需要代码支持这一点。
https://stackoverflow.com/questions/51697503
复制相似问题