Dashboard variable — Oracle Analytics

Oracle Analytics Cloud and Server

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

Dashboard variable

Received Response
51
Views
11
Comments
3153063
3153063 Rank 2 - Community Beginner

What am I missing here? This works if I enter one number (e.g., 101), but not a list of numbers. Or is this a limitation of BI?

Thanks!

Ron

union_problem.jpg

«1

Answers

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Have you looked at the physical query this produces? Go have a look.

  • 3153063
    3153063 Rank 2 - Community Beginner

    The physical query? Do you mean the SQL?

    "INCIDENT DETAIL DIMENSION"."INCIDENT_NO" IN ('Numbers')

  • Chris Arnold
    Chris Arnold Rank 5 - Community Champion

    Possibly try using a 'Choice List' for User Input (instead of 'Text Field').

    Be sure to leave the 'Enable user to type values' checkbox checked.

    This will still allow users to enter values, but will also give the added functionality for users to search/select from a list of values -- and hopefully alleviate your problem.

  • Thomas Dodds
    Thomas Dodds Rank 8 - Analytics Strategist

    why semi-colon and not comma separating the values?

  • Chris Arnold
    Chris Arnold Rank 5 - Community Champion

    As far as I know, you always have to use a semicolon to separate your different values in a dashboard prompt.

    As I test it right now (just as a sanity check), that is the case.

    For a 'State' prompt on my dashboard, if I enter:

    NY,CA

    I get no rows

    But if I enter:

    NY;CA

    I get rows for New York and California

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    I was - obviously totally unsuccessfully - trying to make a subtle point of passing a STRING into for an attribute called NUMBER into a column called INCIDENT_NO.

    Pardon the screaming but querying WHERE NOSERIOUSLYTHISISNUMERICAL = "Fish" is somewhat <<enteradjectivehere>>

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Update:

    Logical:

    SET VARIABLE QUERY_SRC_CD='Report',SAW_DASHBOARD='/users/demo1/_portal',SAW_DASHBOARD_PG='page 1',SAW_SRC_PATH='/users/demo1/00002';SELECT  0 s_0,  "PC2"."Time"."Year" s_1,  "PC2"."Payment Metrics"."# of Customers" s_2FROM "PC2"WHERE("Time"."Year" IN ('2013;2014'))ORDER BY 2 ASC NULLS LASTFETCH FIRST 65001 ROWS ONLY

    Physical:

    WITHSAWITH0 AS (select count(distinct T3056."CUST_NUMBER") as c1,  T3067."PER_NAME_YEAR" as c2from  "CLOUD_TIME_SMALL" T3067,  "CLOUD_F_PAID_REV" T3056where ( T3056."TIME_PAID_DT" = T3067."DAY_DT" and T3067."PER_NAME_YEAR" = '2013;2014' )group by T3067."PER_NAME_YEAR")select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select 0 as c1,  D1.c2 as c2,  D1.c1 as c3from  SAWITH0 D1order by c2 ) D1 where rownum <= 65001

    See it now?

    T3067."PER_NAME_YEAR" = '2013;2014'   <--- This doesn't make sense

  • 3153063
    3153063 Rank 2 - Community Beginner

    Chris,

    Technically, the Choice List would work. However, if I had a list of say, 100 numbers, it would tedious to add them in one at a time.

    Any idea why it works at the analysis level, but not in the panel?

    Thanks,

    Ron

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner
    3153063 wrote:Any idea why it works at the analysis level, but not in the panel?

    ???

    Have you at least once looked at the physical statements and tried to understand what's actually happening?

  • Chris Arnold
    Chris Arnold Rank 5 - Community Champion

    You can enter the 100 numbers quite easily. Just click on the 'search' feature of your prompt dropdown.

    Take a look at my screenshots below:

    (1)

    pastedImage_0.png

    (2)

    pastedImage_1.png

    (3) You can paste your values in here (no semicolons between values):

    pastedImage_2.png

    Hopefully this helps!