cancel
Showing results for 
Search instead for 
Did you mean: 

Creating user defined object

former_member672670
Participant
0 Kudos

Hi Guys,

I have 3 derived tables in my universe - A, B & C. Table A represents "Local projects" & Table B represents "Foreign Projects".

Table C is the union of A & B. All 3 tables have their own classes. Also, Project ID is the common dimension in all 3 tables.


Now, I want to create an object called "Project Type" in Class C which will give me "Local projects" if the project is from Table A and "Foreign Projects" if it is from Table B.

Basically, I want to have a filter in my Webi Report for "Project Type" in which if I select "Local Projects" I get contents from Table A and if I select "Foreign projects", then I get contents from Table B.


Is this possible ? Any help is appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When you say C is a union of A and B, how is it created?

Is it a physical table, mainted by ETL?

Is it a view?

Is it a derived table?

Is it something else?

Whichever it is, I'd recommend amending it and adding a column to it as project type, e.g.:

select

col1, col2, col3, 'L' as ProjectType from A

union

select

col1, col2, col3, 'F' from B

That way, you'll only need table C in your universe and can create predefined conditions for Local and Foreign projects as required.

former_member672670
Participant
0 Kudos

Thanks. That was easy.

Answers (1)

Answers (1)

former_member4998
Active Contributor
0 Kudos

Hi

If you have union of data in the C table …why are you using the A and B tables?


Can you specify ….where do you want to use the project type filter? Before running the webi Report or after running the webi Report?


If Before running

Use only C tables, in the webI query filter’s place the project type. So while running the report it will ask project type. Form LOV’s you can able to select Local project or foreign projects.

former_member672670
Participant
0 Kudos

To answer your first question, I am using tables A & B because I cannot generate separate reports for them in Webi using Table C as it does not have an object (Project Type) to distinguish between "Local" & "Foreign" Projects.

For your second question, I want to use the project type filter before running the Webi report,. However, I need to create it first in the Universe. My question is - how can I create the "Project Type" object in the Universe which will have values - Local projects (Table A) & Foreign projects (Table B).

former_member4998
Active Contributor
0 Kudos

Hi

Follow the below steps.


Click on the parameters and list of values tab. and select the LVO's based on custom SQL.

1. Then you can create (Project Type LOV’s) LOV’s based on custom SQL.


          Select Distinct Project Type

          From Table A

          Union All

          Select Distinct Project Type

          From Table B

2. Create Project Type dimension in the BL and

    • Select associated list of values and click on the list of values button.
    • Then select the Project Type LOV’s and press OK, and Save
    • To test click on the show values. Project Type" object in the Universe which will            have values - Local projects (Table A) & Foreign projects (Table B).