Ok, I am pulling my hair out on this one and yet have to find a post that helps me.
I have a universe built connecting to a DB2 database on os/390. I am using BO Enterprise XIr2ps1. I have a Measure created that does a count on a Policy #. The SQL in the Select window of designer is(F_UPOLEND2.POLEND_POLICY_ID). I have the Qualification set to Measure with the Function of NONE.
When I run a query in desktop intelligence, I do not have a problem. The SQL generated looks like this and the query runs fine:
SELECT
F_UPOLEND2.POLEND_RATNG_STATE,
F_UPOLEND2.POLEND_PRODUCT_CD,
count(F_UPOLEND2.POLEND_POLICY_ID)
FROM
F.UPOLEND F_UPOLEND2
WHERE
(
F_UPOLEND2.POLEND_PRODUCT_CD = 103
AND F_UPOLEND2.POLEND_RATNG_STATE = 'MI'
)
GROUP BY
F_UPOLEND2.POLEND_RATNG_STATE,
F_UPOLEND2.POLEND_PRODUCT_CD
However, when I try to do the same exact thing in WEBI, it does not work because it does not add the Group By clause. The SQL generated looks like this:
SELECT
F_UPOLEND2.POLEND_RATNG_STATE,
F_UPOLEND2.POLEND_PRODUCT_CD,
count(F_UPOLEND2.POLEND_POLICY_ID)
FROM
F.UPOLEND F_UPOLEND2
WHERE
(
F_UPOLEND2.POLEND_PRODUCT_CD = 103
AND F_UPOLEND2.POLEND_RATNG_STATE = 'MI'
)
Maybe I am missing something but can someone please help!!! Is there a setting that I need to change somewhere in the universe? I do not understand why the two are different. GROUP BY works ok in WEBI when using the sum function (ie. sum(Variable)) Should it not function the same for count?
[Edited, when posting code samples please use the code option for formatting. It will preserve any indenting or formatting that you may have done. Thank you, Andreas.]
dhofman (BOB member since 2006-03-17)