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.
Where AI meets business outcomes Oracle AI World brings the Oracle community together to explore how AI and other technology innovations are driving real business outcomes across industries. Discover what’s new through: Mainstage keynotes to hear the latest directly from Oracle leadership Product demonstrations Customer…
I creates a parameter "Role Name" and then I put the Role name field in the filter and made a bind to the parameter, When I add the value in the parameter, it works. When I delete it from the parameter it give me <empty> How do I get rid of the <empty>
Hi Team, Has anyone upgrade OAS system from the 2024 to 2026 version? if yes, could you please share the resposne files. Regards, Chand
We need to download a report with the order number as the file name. In the main report, we have a data action (hyperlink) on each order number. When we click an order number, the linked report is downloaded with the corresponding order details. Currently, the file is downloaded using the report name. We need to download…
I tried the following expression and it blows up when I select more that one value in the list see image
We are using Oracle Analytics Server 2026 with WebLogic Server 14.1.2. Our Account Statement report is accessed through '/xmlpserver'. We need to capture the following details in the OAS/Publisher log files whenever a user runs the report: Username Report name and path Report execution timestamp Account Number From Date To…