I have a universe measure with the follwoing code in the select
When I parse I get a ORA 00937 error not a single group function.
I think the problem is that @select(Weekly Base Measures\DEMAND_VAL) is an aggregate aware measure.
If I try to build this case statement into the base measure that is aggregate aware I get an error about multiple calls to aggregate awareness.
Can anyone help me with this - maybe I am just doing something really stupid.
TIA
[blue]DBomrrsm[/blue] ![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
Code:
CASE
WHEN CMR_DPP.PRODUCT_DIM.DIVISION = 1 AND CMR_DPP.BRAND_DIM.COMPANY = 'LW'
THEN @Select(Weekly Base Measures\ABORTED_DEMAND_VAL) * 4
WHEN CMR_DPP.PRODUCT_DIM.DIVISION != 1 AND CMR_DPP.BRAND_DIM.COMPANY = 'LW'
THEN @Select(Weekly Base Measures\ABORTED_DEMAND_VAL) * 2
ELSE @Select(Weekly Base Measures\ABORTED_DEMAND_VAL)
END
When I parse I get a ORA 00937 error not a single group function.
I think the problem is that @select(Weekly Base Measures\DEMAND_VAL) is an aggregate aware measure.
If I try to build this case statement into the base measure that is aggregate aware I get an error about multiple calls to aggregate awareness.
Can anyone help me with this - maybe I am just doing something really stupid.
TIA
![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]