You are on page 1of 5

If you want to change the display column in the report as per the prompt selected,you have to follow

these steps

Create a column with the following formula.

INDEXCOL( CASE '@{psv_ind}{fin de mois}' WHEN 'fin de mois' THEN 0 ELSE 1 END , "HR"."Effectif fin de
mois","HR"."Headcount Average")

That means if user select 'fin de mois’ in the prompt "HR"."Effectif fin de mois" should be displayed in
the report. other wise it will display "HR"."Headcount Average" column. HR"."Effectif fin de mois"

By default it will display “HR"."Effectif fin de mois" column.


Senarios2:

created a invoice amount column :

logic is like this.

CASE WHEN "Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_XACT_TYPE_D_Financials"."W_XACT_SUBTYPE_CODE" =


'INVOICE' THEN
INDEXCOL
(
CASE VALUEOF(NQ_SESSION."PREFERRED_CURRENCY")
WHEN 'Local Currency' THEN 0
WHEN 'Global Currency 1' THEN 1
WHEN 'Global Currency 2' THEN 2
WHEN 'Global Currency 3' THEN 3
ELSE 4 END ,
"Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."AP_LOC_AMT",
"Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."AP_DOC_AMT" * "Oracle Data
Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."GLOBAL1_EXCHANGE_RATE",
"Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."AP_DOC_AMT" * "Oracle Data
Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."GLOBAL2_EXCHANGE_RATE",
"Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."AP_DOC_AMT" * "Oracle Data
Warehouse"."Catalog"."dbo"."Fact_W_AP_XACT_F"."GLOBAL3_EXCHANGE_RATE",
CAST(NULL as DOUBLE)
) * -(1) ELSE 0 END
By seeing the cofig file we can observe 'Global Currency 3'=USD, 'Global Currency 2'=’EUR’

Create the session variable like this:


Dual Currency initiliozation block is like this:

You might also like