Oracle Analytics Cloud and Server

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

OAC - Concatenated Code and Description in Prompt, Filter by Code Only

Accepted answer
41
Views
5
Comments
Rank 4 - Community Specialist

Hi everyone,
Is it possible to create a prompt in an analysis that displays a concatenated value of code and description, but allows filtering only on the code? If so, could you please provide some guidance or examples on how to achieve this?
Thank you in advance!

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Answer ✓

    Hi,

    Because you talk about an analysis, I assume you are using "classic" and your source is the RPD (semantic model).

    You could create your concatenated column in there and then assign the "Descriptor ID" to that column being your code. The Description ID on a logical column is meant to handle the case when you have a technical column or a numeric ID (like your code), and a longer more business friendly text description. You want your users to select the readable version while being able to use the ID to filter for your queries to be faster.

Answers

  • Rank 8 - Analytics Strategist

    As @Gianni Ceresa said, you can use the double column descriptor id feature in your rpd/semantic model. If your underlying data source isn't from an rpd/semantic model, you won't be able to use the double column descriptor id column feature. Double Column feature.

  • Rank 6 - Analytics Lead

    If you don't have double columns enabled, you can create a variable prompt based on your concatenation.
    Say your prompt produces a presentation variable "varConcat", with a value like CityCode||' - '||CityName, say "13 - Rome".

    The analysis can be filtered like:
    CityCode=Left('@{varConcat}{xxx}',2)

  • Rank 4 - Community Specialist

    Hi,

    Thank you @Gianni Ceresa for the clarification. Your suggestion will help us ensure the users can select the readable version but while still utilizing the ID for faster queries.

    We'll proceed with this approach.

    Thanks again for your help!

    Best regards

  • Rank 4 - Community Specialist

    Thank you too for your replies @Joel and @Jerry Casey

Welcome!

It looks like you're new here. Sign in or register to get started.