Hi,
i have developed a simple report in OBIEE and now i would add a HAVING clause. There is a way to add it to the report? Maybe in Advanced tab?
Thanks
what are you trying to achieve with Having clause.
I want reproduce following query:
SELECT
ABAN8 AS RPAN8;
ABALPH AS RPALPH;
right( trim( ABALKY ); 8 ) AS COLUMN0002;
RPMCU;
right( trim( RPMCU ); 3 ) AS COLUMN0006;
MCDL01;
sum ( CASE
WHEN RPDCT in ( 'RI'; 'RM'; 'U8' ) THEN RPAAP / 100
ELSE 0
END ) AS RPAAP;
WHEN RPDCT = 'IF' THEN RPAAP / 100
END ) AS COLUMN0003;
sum( Case when RPDCT = 'YI' AND RPPYR = '33712631' Then RPAAP / 100 else 0 end ) AS COLUMN0000;
sum( Case when RPDCT = 'YI' AND RPPYR = '33712629' Then RPAAP / 100 else 0 end ) AS COLUMN0000_1;
sum( Case when RPDCT = 'YI' AND RPPYR = '33712628' Then RPAAP / 100 else 0 end ) AS COLUMN0001;
sum( Case when RPDCT = 'YI' AND RPPYR = '33712634' Then RPAAP / 100 else 0 end ) AS COLUMN0001_1;
sum( Case when RPDCT = 'RU' AND RPPYR = RPAN8 Then RPAAP / 100 else 0 end ) AS COLUMN0006_1;
sum( Case when RPDCT = 'AU' Then RPAAP / 100 else 0 end ) AS COLUMN0004;
sum( Case when RPDCT = 'CU' Then RPAAP / 100 else 0 end ) AS COLUMN0005
FROM
IASP01.PDDTA.F03B11 F03B11;
IASP01.PDDTA.F0101 F0101;
IASP01.PDDTA.F0006 F0006;
IASP01.PDDTA.F0010 F0010
WHERE
F03B11.RPAN8 = F0101.ABAN8
AND F03B11.RPMCU = F0006.MCMCU
AND F03B11.RPCO = F0010.CCCO
AND ( ( ( ( RPKCO between '00121' and '00151'
OR RPKCO between '00900' and '00949'))
AND Year( date( CCDFYJ; CYYDDD ) ) = &COLUMN0007
AND CCARPN = &CCARPN1))
GROUP BY
ABAN8;
ABALPH;
right( trim( ABALKY ); 8 );
right( trim( RPMCU ); 3 );
MCDL01
HAVING
END ) <> 0
OR sum ( CASE
OR sum( Case when RPDCT = 'YI' AND RPPYR = '33712631' Then RPAAP / 100 else 0 end ) <> 0
OR sum( Case when RPDCT = 'YI' AND RPPYR = '33712629' Then RPAAP / 100 else 0 end ) <> 0
OR sum( Case when RPDCT = 'YI' AND RPPYR = '33712628' Then RPAAP / 100 else 0 end ) <> 0
OR sum( Case when RPDCT = 'YI' AND RPPYR = '33712634' Then RPAAP / 100 else 0 end ) <> 0
OR sum( Case when RPDCT = 'AU' Then RPAAP / 100 else 0 end ) <> 0
OR sum( Case when RPDCT = 'CU' Then RPAAP / 100 else 0 end ) <> 0
OR sum( Case when RPDCT = 'RU' AND RPPYR = RPAN8 Then RPAAP / 100 else 0 end ) <> 0
instead to use a direct database request, i would use the normal procedure dragging and drop dimensions and measures.
I'm able to drag and drop fields in SELECT list. About the WHERE CLAUSE i can add a filter to the request.
About the GROUP BY clause i know that there's a field in Advanced tab where you can specify GROUP BY clause.
But about HAVING clause i don't know where specify it.
Regards
Your approach should not be to reproduce a query ... ever.
What business question(s) is(are) being asked? - model to answer them. OBIEE is not a query tool - its an analytics tool based on logical business models.
Have you tried just adding the filters on the measure in the criteria filter section? That works for me.
Create an opaque view in RPD and use it in reports.
Wrong wrong wrong approach.
OBIEE works with models and not with queries.
100%
Opaque view to test it out ... but not as a permanent solution ... OVs do not get predicate filtering - with large data volumes these prove very unwise.
Hi Team, We would like to raise an enhancement request for the SSO/SAML configuration guidance for OAS 2026. We have already raised multiple SRs regarding OAS 2026 SSO configuration. However, we are facing difficulties getting the required guidance, as the available documentation does not clearly cover the OAS 2026 SSO…
We are planning to archive the Contract and Lease data currently sourced from the External Source as Contract and Lease accounting functions are being migrated to Oracle's CLM and Lease Accounting modules. At this stage, only active and partially closed records are being converted into Oracle and the remaining historical…
The difference column is a calculation, and I would like to average that row.
We are trying to convert our OAS reports to OAC and one of the parameters in the where clause of the report is what I am trying to make in OAC. I created a calculation as follows and I am trying to put it into a filter . The code validates EVALUATE('GREATEST ( TRUNC ( NVL (%1, TO_DATE (''1/1/2013'', ''mm/dd/yyyy'') ) ),…
Hi , I am calling one parameter in another parameter and it is not working. 1st parameter is showing values, while calling the 1st parameter in second it is not showing any values. Regards, Sree Hari M