MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now Learn More
Quote from: asmfloyd on 09 Oct 2025 10:01:08 PMHello,
I have a list report with a few dimension columns (Year/IndexCode/IndexName) and a measure column. The measure I am calculating inside a variable as below:
IF ( FUND_CODE='AA') THEN (1) ELSE (0) where I am keeping my measure's Detail Aggregation Property as "Total"
My goal is to count the number of fund_codes of value 'AA'
When I check the generated sql, it creates an additional column "FUND_CODE_u" (as below- due to which only one row will have value but others will be null ) and hence the total is not working.
Any inputs why this is occurring and how to fix?
Generated SQL:
"FUND_CODE",
CASE
WHEN
ROW_NUMBER()
OVER(
PARTITION BY
"ACADEMIC_YEAR_DIM0"."ACADEMIC_YEAR",
"IDX_DIM"."IndexCode",
"IDX_DIM"."IndexName",
"FDX_DIM"."FUND_CODE"
ORDER BY
"ACADEMIC_YEAR_DIM0"."ACADEMIC_YEAR" ASC,
"IDX_DIM"."IndexCode" ASC,
"IDX_DIM"."IndexName" ASC,
"FDX_DIM"."FUND_CODE" ASC
) = 1
THEN
"FDX_DIM"."FUND_CODE"
ELSE NULL
END AS "FUND_CODE_u"
Thanks,
BSP Software Documentation |
MetaManager Documentation and Knowledgebase |
Version Control Documentation and Knowledgebase |
BSP Software | Resources | About Us | ||
MetaManager | BSP Software Training | BSP Software | ||
Integrated Control Suite | YouTube Channel | Micro Strategies Inc | ||
Security Migration | IBM Cognos | |||
Integrated Management Suite | ||||