简体   繁体   English

Cognos-Query Studio和Report Studio中的值不相同

[英]Cognos - Not same value in Query Studio and Report Studio

In Framework Manager I have a query element which calculates the distinct number of a dimension (count distinct for the aggregation in the properties). 在Framework Manager中,我有一个query元素,该元素计算维的唯一数量(对于属性中的聚合,数量不相同)。 In the database, the total of distinct number is 15720813 (so the good number). 在数据库中,不同数字的总和为15720813(因此为好数字)。

Then when I wanna test this object in Query Studio the number displayed is 15723470 which is the total number of records in the table so that's wrong. 然后,当我想在Query Studio中测试此对象时,显示的数字为15723470,这是表中记录的总数,所以这是错误的。 But in Report Studio the number displayed is 15720813 which is the good number. 但是在Report Studio中显示的数字是15720813,这是一个很好的数字。

Why Query Studio and Report Studio don't display the same number? 为什么Query Studio和Report Studio没有显示相同的数字?

Thanks in advance. 提前致谢。

You can check the aggregate property in query studio of the element you are trying to test. 您可以在查询工作室中检查要测试的元素的聚合属性。 It is available below the menu in query studio. 它可在查询工作室的菜单下面使用。 在此处输入图片说明

It might be you are using different elements. 可能是您在使用不同的元素。 Please check and retry. 请检查并重试。 If not then I would suggest going back and recreating the entire element. 如果不是,那么我建议返回并重新创建整个元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM