Action links - passing presentation variable using Navigate to Web Page - Page 2 — Oracle Analytics

Oracle Analytics Cloud and Server

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

Action links - passing presentation variable using Navigate to Web Page

Received Response
469
Views
29
Comments
2

Answers

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    "CC - Business Unit"."Business Unit - OpCo" IN case when @{PV_SELECTEDOPCO} = 'WhateverTheCombinationIsForAllValues' then "CC - Business Unit"."Business Unit - OpCo"

    else @{PV_SELECTEDOPCO}['@']{A} end

  • aPsikus
    aPsikus Rank 6 - Analytics Lead

    Syntax was not fully correct.

    Below is corrected:

    "CC - Business Unit"."Business Unit - OpCo" IN (CASE '@{PV_SELECTEDOPCO}'

    WHEN '(All Column Values)' THEN '(A,B,C,D)'

    ELSE (@{PV_SELECTEDOPCO}['@']{A})

    END)

    Anyway, if we select All Column Values in the prompt, then it is not filtered at all (not added to the SQL). Not sure if it can be used in CASE statement.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    1. You need to ascertain the explicit value that is being passed for 'All Values', as I said it generates a strange but consistent string combination which you need to use in place of 'All Column Values', as previously advised this can be found by running the analysis and then viewing the physical sql generated via the log file

    2. You have converted the filter to SQL, yes?

  • aPsikus
    aPsikus Rank 6 - Analytics Lead

    2. Yes, it is SQL filter.

    1. I have checked in other reports SQL from Monitor. If in prompt you will select All Column Values for "CC - Business Unit"."Business Unit - OpCo", dimension is not included in SQL send to database, which means that it is not filtered and is asking for all entries.

    Based on That I do not see an option to use it in CASE.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    You can use your default value in the afore mentioned case logic then.

    This has changed from other versions.

  • aPsikus
    aPsikus Rank 6 - Analytics Lead

    What do you mean?

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Sorry, I may be misunderstanding you.

    Are you saying that if the dashboard filter selection is 'All Values' then the entire filter is removed from the analysis when it runs?

    I have not seen this before, are you certain that that is the case?

    What I was suggesting was that your default (value in the second {} ) would be applied if the prompt was unpopulated, so you should use the value that you are defaulting in the case statement to give the column = column result.

  • aPsikus
    aPsikus Rank 6 - Analytics Lead

    Hi,

    Not removed but not filtering the results, asking for all entries.

    Still not sure if I understand your suggestion. How would you like to modify CASE? I do not see option to check Null/Not Null in case.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Hi,

    if your result is null, and this does not cause your default member to be selected then you can use the IfNull function in your case statement to handle it.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Either; -

    "CC - Business Unit"."Business Unit - OpCo" IN case when @{PV_SELECTEDOPCO} is null then "CC - Business Unit"."Business Unit - OpCo"

    when @{PV_SELECTEDOPCO} = 'WhateverTheCombinationIsForAllValues' then "CC - Business Unit"."Business Unit - OpCo"

    else @{PV_SELECTEDOPCO}['@']{A} end

    Or

    "CC - Business Unit"."Business Unit - OpCo" IN case when IfNull(@{PV_SELECTEDOPCO}, "CC - Business Unit"."Business Unit - OpCo") = "CC - Business Unit"."Business Unit - OpCo"

    else @{PV_SELECTEDOPCO}['@']{A} end