I am trying to get a count of some active flag for an event at the rpd level, currently I am using SUM as the default aggregation rule, but I wanted to use something like this (
SELECT DISTINCT JOB_NAME, INT_ID, A_CAN,O_NAME, P_NUM FROM WC_XYZ
GROUP BY JOB_NAME, INT_ID, A_CAN,O_NAME, P_NUM
) the reason Is that the source code has changed and modified the grain of the fact table so in order to get a correct count which I am able to do at database level I need to have something like this in the rpd. So that it minimizes my changes to original rpd. any suggestions are welcome.