Configure Logical Columns for Multicurrency Support
You can configure logical columns to allow users to select the currency that they want to display their visualizations, analyses, and dashboards currencies columns in.
You can set up this feature so that all users see the same static list of currency options, or you can provide a dynamic list of currency options that changes based on a Logical SQL statement you specify.
When you use session variables in an expression, you must use this format: VALUEOF(NQ_SESSION.var_name). Edit any logical columns that display currency values to use the appropriate conversion factor using the PREFERRED_CURRENCY session variable.
See Create an Initialization Block and Create a Session Variable.
The following logical column expression uses the value of the NQ_SESSION.PREFERRED_CURRENCY variable to switch between different currency columns. The currency columns are expected to have the appropriate converted values.
INDEXCOL( CASE VALUEOF(NQ_SESSION.PREFERRED_CURRENCY) WHEN 'gc1' THEN 0 WHEN 'gc2' THEN 1 WHEN 'orgc' THEN 2 WHEN 'lc1' THEN 3 ELSE 4 END, "Paint"."Sales Facts"."USDCurrency", "Paint"."Sales Facts"."DEMCurrency" , "Paint"."Sales Facts"."EuroCurrency" , "Paint"."Sales Facts"."JapCurrency" , "Paint"."Sales Facts"."USDCurrency" )