atoti中有按函数分组吗?

问题描述 投票:0回答:0

我想根据我在 postgre 中的查询使用 atoti 进行测量。这是我的查询

select avg(sq.salary) 来自 (select salary, employee_id, time_id, departemen_id from employee 按 employee_id, time_id, salary, departemen_id) 分组为 sq 按 sq.departemen_id 分组

但是,我不知道如何将此查询更改为 atoti,尤其是如何在 atoti 中使用 group by?

我试过这样

cube_employee.measures["MEAN.Salary"] = tt.agg.mean(employee["salary"])

结果是

mean.salary

我期待的是这样的 mean.salary i expected

*ps 抱歉,传感器不好

measure atoti
© www.soinside.com 2019 - 2024. All rights reserved.