Oracle Transactional Business Intelligence

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Oracle Cloud Fusion Multi Select Parameters Errors Out When two or more items are selected

Accepted answer
206
Views
13
Comments

I'm using Oracle Cloud Fusion to build a data model to feed a report.

I'm trying to create a multi-select parameter. When making the parameter on my data model choose the option selecting all will return NULL. I do this because when I select return all values every option shows up on my report parameters making it unreadable.

So I'm trying to make it so that if null is provided by selecting 'All' it will return all results. Selecting all works fine.

If I select one parameter option the query below works fine.

If I select two or more parameters it always returns ORA-00920: invalid relational operator

SELECT DISTINCT    
G.CERTIFICATION_NAMEFROM     
GRC_ACN_CERTIFICATION_VIEW G
WHERE G.CERTIFICATION_NAME IN (    
CASE        
WHEN :cert_name_p IS NULL THEN G.CERTIFICATION_NAME        
WHEN :cert_name_p IS NOT NULL THEN :cert_name_p    
END )

I have tried to display the results using

SELECT:cert_name_pFROM DUAL

This also errors the same way when I select more than 1.

No matter what I do I can't get it to display or filter two parameter selections.

Best Answer

«1

Answers