0

我正在尝试根据许多标准在 Cognos 中创建计算。例如,我想计算我的数据集中具有以下条件的所有记录:

Data_Level = "Aggregate"
Problem_Area = "Request"
IsResearch = "No" Substate_ID =
"Incomplete - Cancelled"

然后我想将此值称为:“汇总数据 - 非研究”

提前感谢您的反馈。与其他 BI 工具相比,我正在对 Cognos 进行可行性测试,因此我试图跨工具复制相同的报告以衡量它们的可用性。到目前为止,我发现 Cognos 是最难找到的资源。

问候,杰森

4

2 回答 2

0

我将创建一个 if then else 字段,如果满足条件,则为 1,如果不满足,则为 0,然后总计。

总计(如果([Data_Level] = "Aggregate" and [Problem_Area] = "Request" and [IsResearch] = "No" and [Substate_ID] = "Incomplete - Cancelled")那么 (1) else (0))

于 2020-02-25T20:49:03.363 回答
0

尝试函数total定义范围

例如,创建一个数据项“聚合数据 - 非研究”

表达:

    If ([Data_Level] = "Aggregate" and [Problem_Area] = "Request" 
and [IsResearch] = "No" and [
Substate_ID] = "Incomplete - Cancelled") 
then (1) else (0)

然后,您可以使用 total 函数添加另一个数据项,并使用定义范围的表达式:

Total([Aggregated Data - Non Research] for Company, Year, Month)
于 2020-02-26T16:03:30.767 回答