Left outer join in presentation layer
Could I do left outer join in presentation layer? I have 2 reports. They both have a common column - "Month". The first report have columns - "Month" and "Measure1" and the second report have columns - "Month" and "Measure2". I would like to put them together so the final report would have "Month", "Measure1" and "Measure2".
Thanks,
Ted
Ted,
It is not clear to me, why you want to do an outer join. If the dimension Month is shared by both "Measure1" and "Measure2", then it will work without any problem (assuming the RPD is configured correctly).
An outer join comes into play if you need to preserve the dimension records. Let's assume you want to run an analysis like "Show me all months were there was no sales". In plain SQL you would to do a left-outer join between the Month dimension table and the sales fact table. If you want to know how this can be achieved in OBIEE you might want to have a look here [Outer join style report - OBIEE 10g|https://forums.oracle.com/forums/message.jspa?messageID=9805768#9805768]. This should be still valid for OBIEE 11g.
Best regards,
Peter
Similar Messages
-
Hi All,
while building the RPD we have to use the join as Left outer join for two tables , we added join condition in BMM layer like evey table we have three tabs like General,Column Maooing and Content.
In General tab we have to sections like map to these tabls and Joins right. In the Join Scetion we add join conditions for two tables as left outer join.
Now i need to move the first table as second table and wise versa , how i can?? move these two tables
Thanks for your help.Hi User,
You will have to remove and add the table as there is no option to reorder the tables.
Rgds,
Dpka -
Left Outer Join in Logical Layer
Dear Gurus,
I have report like this:
Absent
3 31
Month-Name
Jan 1 2
Feb
March
I use Master Date as dimension and Transactional Absent as fact
How if I want to show the date (from 1 to 31) even if there's no transaction?
How to use driving table and join in the business logical?or there is another alternatif?
Please help
Regards
MariaHi,
If you want to show all the transactions for the month, even if there is no transactions then you need to use the outer joins present in the BMM layer. Left, right and full outer joins according to your requirement. Driving tables are used when the number of the data is low to pick up the table.
Hope this helped/ answered.
Regards
MuRam -
Left outer join usage in obiee BMM layer
Hi All,
We lately started using left outer join in our bmm layer , to meet the requirement expectation .
problem : We have two tables Fact A , Dim B . There is an join int_id column to join them . Problem is... in table Dim B , we have 3 millions rows of Int_id and in fact table it is loaded for only data available(1 million rows).
Due to this we are dropping rows in the report ..as it is only getting data where fact.int_id = dim.int_id. So we used left outer join to solve to one particular report .(we know we can do ETl to load dummy int_id and make it null , but it is huge effort ..so we did left outer join)
These days , same kind of reports are in requirement . if i keep on doing same left outer join to meet the requirement in BMM layer ? is there any disadvantages due to this ? any performance degrade due to this ? please throw few lines on left outer join and its usage ?
Thanks,
SriRemodel your tables that might be a partition or any other way and follow in BI as per your new model.
Simply: Go for ETL kind of solution -
Left outer join (business model and mapping layer)
hi, experts!
!http://img693.imageshack.us/img693/9642/joinp.png!
if there are a dimension table and a fact table, I wanna have a left join from dimension to fact (select * from dimension a left outer join fact b on a.key = b.key;)
is the selection for cardinality correct?
And I only change TYPE to "Left Outer" ?
however, I tested on this setting.
if I only select the dimension , 15xx records returned.
if I select the dimension and fact, 14xx records returned.
any wrong setting ?Just to make I'm getting your situation correct, are the following true:
--you've got a total of 15 records in your dimension table
--you want to see every dimension record, regardless if there is any fact records that have that dimension
--if a fact record exists, it must have one of the 15 values in your dimension table.
--a single dimension record can match to multiple fact records
If those statements are true, then you want your dimension cardinality set to 1 and your fact cardinality set to N.
Then you'll want to do the left outer join like you mentioned and you should be set.
-Joe -
Left Outer Join with more than two tables in both CR 8.5 and XIR2
I am trying to create a report and I have tried two versions of Crystal but I ultimately need the report in CR8.5 for compatibility with the client's system. I think I am starting to figure out what might be wrong and it might be my understanding of SQL, but I can't see why someone hasn't needed this in the past. Ultimately I want to see all projects and any journal entry that might be posted for that project.
Database is MySQL 5.0.38 and using MySQL ODBC driver 3.51.19.
Project header table information will be populated. Each line item on a journal entry can be tagged with the project ID. But for me to pull the journal entry date I need also to link to a third table for the journal entry header info.
I want to see all projects, whether a journal entry has been posted or not.
So the links are like this
ProjectHeader --->Left Outer Join ---> JELines ---> Inner Join ---> JEHeader
I think in this scenerio Crystal is treating the LOJ as an IJ.
I created two brand new reports today, one in CR8.5 and one in CR XIR2. Once I edited the automatic CR8.5 SQL statement (which I have been doing for years, usually without problem), they both ran properly. I linked customers to their invoices. Customers without invoices showed properly. But then I linked the invoices to the payments of the invoices and immediately lost customers without orders in both reports.
So apparently only two tables are allowed in Outer Joins. Does this make sense? I checked out the w3schools tutorial on SQL and it doesn't mention this limitation and I can't find anywhere else that it specifically indicates this but all samples of code I have seen only show two tables. I just thought for presentation as a sample that was easiest to understand and we could expand as necessary.
If this is correct, how does one go about accounting for this kind of thing? One solution that goes through my mind is creating a view at the database level for the link between journal entry lines and journal entry headers. Would this be a good solution under normal circumstances?
A second option that I had to implement because of timelines, is to use a subreport linked to the main report through the project ID to pull the information for the journal entries and just pass the totals I need to the main report through a shared variable.
These aren't normal circumstances because I don't have access to the database so I can't create the view. I have come across this concept several times and I have been able to use subreports to solve it but I am trying to find a better solution for the future as sometimes subreports can be slow. So are there any alternatives I have not considered here?
TIA rasincSo after some more work and another post. I was able to get this to work.
Items disappear when linking to another table
My issues were two fold. I was selecting on the tables on the right-side of the original Inner Join. However, I was checking for Nulls. This apparently is correct but you must check for the Nulls first eg. (IsNull (JEHeader.Field1) OR JEHeader.Field1 <= 100). I had my original statement reversed checking for <= 100 before checking for Nulls.
I also did not set all links to be Left Outer Join. I had the Inner Join. I actually have about 6 tables in this report so all the links need to be set Outer Join. So this now seems to be corrected.
Thanks -
Hi,
I Have this database structure:
Artist(IDA,Name,Year_b)
Work(IDW,Title,IDA,IDL)
City(IDL,IName,Nation)
I Want to do a query that retrieve for one Artist all Works availables on database and,if present,the City where each work was realized.
This SQL code is correct?
SELECT Name,Title,IName
FROM Artist a,
Work w LEFT OUTER JOIN City c ON w.IDL=c.IDL
WHERE w.IDA=a.IDA and a.IDA='2';
If it's not correct, what type of correction need it?
Thanks for Help
AndreaIf you asked... The original query works, but it is not "right".
You should use either the old Oracle style of joins, like in the VM's query, or, better, the ANSI join style, recommended by Oracle (not a mix of them, like in your query):
SELECT a.name,
w.title,
c.iname
FROM artist a
JOIN work w
ON w.ida = a.ida
LEFT OUTER JOIN city c
ON w.idl = c.idl
WHERE a.ida = '2' -
Need to specify LEFT OUTER JOIN while using data from logical database BRM?
I'm trying to extract data for external processing using SQVI. The fields required are in tables BKPF (Document Header) and BSEG (document detail) so I'm using logical database BRM. Note: required fields include the SPGR* (blocking reasons) which don't appear to be in BSIS/BSAS/BSID/BSAD/BSIK/BSAK, hence I can't just use a Table Join on any of these but have to use BSEG, hence BRM.
If the document type is an invoice, I also need to include the PO number from table EKKO (PO header), if present, hence I'd like to add this to the list. However, if I do this, it seems that some records are no longer display, e.g. AB documents.
The interesting thing is that not all records are suppressed, so it's not a simple case of the logical database using an effective INNER JOIN, but the effect is similar.
In any event, is there a way to specify that the link to table EKKO should be treated as an effective LEFT OUTER JOIN, i.e. records from BKPF/BSEG should be included irrespective of whether any records from EKKO/EKPO exist or not?
Alternatively, is there some other way to get the SPGR* fields (for example) from BSEG and still join the BKPF? Of course, one solution is to use multiple queries, but I was hoping to avoid this.Thanks for everyone's responses, I know how to work around the problem with sql, I am wanting to see if there is a way to make the outer joins filter go in the join clause instead of the where clause with Crystal Reports standard functionality.
We have some Crystal Reports users that are not sql users, i.e. benefit specialists, payroll specialists and compensation analysts who have Crystal Reports. I was hoping this functionality was available for them. I just made my example a simple one, but often reports have multiple outer joins with maybe 2 or three of the outer joins needing a filter on them that won't make them into an inner join.
Such as
Select person information
outer join address record
outer join email record
outer join tax record (filter for active state record & filter for code = STATE )
outer join pay rates record
outer join phone#s (filter for home phone#)
I thought maybe the functionality may be available, that I just don't know how or where to use it. Maybe it is just not available.
If it is not available, I will probably need to setup some standard views for them to query, rather than expecting them to pull the tables together themselves. -
Hi,
I have two Oracle tables in the physical layer: a fact table and a dimension table.
The fact table (FACT_TBL) like this:
CURR_MTH | PREV_MTH | CURR_GRADE | PREV_GRADE | CITY | VALUE
Jun | May | B | A | X | 5
Jun | May | A | A | Y | 10
Jun | May | C | C | X | 15
Jun | May | D | C | Y | 20
And the dimension table (GRADE_TBL) like this:
GRADE | GRADE_NAME
A | A
B | B
C | C
D | D
I joined those two tables above in the physical layer using GRADE field. Then, I created a business model using those two tables. I want to create a 4x4 matrix report with PREV_GRADE as the first column and the CURR_GRADE accross to the right like this:
CURR_MONTH PROMPT = Jun
PREV_MONTH PROMPT = May
CITY PROMPT = X
PREV_GRADE | A | B | C | D |
A | (null) | 5 | (null) | (null) |
B | (null) | (null) | (null) | (null) |
C | (null) | (null) | 15 | (null) |
D | (null) | (null) | (null) | (null)|
The problem is that I couldn't show all grade (A to D) in the PREV_GRADE column in that table. Every time I filter the CITY in the prompt to X, I always get only A and C. The B and D rows are suppressed. How do I achieve the left outer join that I wanted above? Thanks a lot for the help.hi,
this can be done in BMM layer.
select the required BMM model. Right click and select "Buisness Model Diagram" and "whole diagram" .
now double click on the joining link and specify the type of join here. (assuming you have used "New Complex join" to join these tables). -
Why left outer join is happening between two queries
Hi, I have 2 facts in my request. So 2 queries are getting generated D1 and D2. But OBIEE is doing a D1 left outer join on D2. I am not understanding from where this left outer join is coming. I want an inner join. Can anybody help.
thx,
paragHi Parag,
Can you please check it in your BMM layer column mapping and double click you join here you can find type option. Please change to type inner.
Go--> BMMLayer--> double click column Joins--> Type--> you can change what type you want.
Award Points it is useful.
Thanks,
Satya -
Hello BI people - I'm new in this issue and I need help.
I'd like to do sth like outer join in physical layer between two tables and I can't :(
For example
Table CUSTOMERS and table REGIONS for customers. Table CUSTOMERS has colum: POSTAL_CODE and in table REGIONS I have primary key:POSTAL_CODES. till now everything looks simply PK to FK 1:n relation but sometimes happens that in table customers there are nulls or mistakes in this field (reason: bad written application, dirty data etc)
and when I don't use OUTER JOIN I'll lose some records about customers - I would like to see that records even with cleared region informations. How to do it in BI -use VIEWS ? Can I join two physical tables with outer join?
Thanks for helpOk. You have to resolve this in the logical layer as wel.
When you click on custumers and then on sources.
What do you see there?
Do you only see one source or 2 sources?
If you see 2 sources, then just delete one and double click on the source that is left over. In here you can join with the other table and choose outer join.
Good luck ;) -
BI 7.0 Infoset - Infocube - Left outer join - query
Hi Expert,
A infoset contain Infocube and ODS, linked with left outer join, common fields are PO,PO item. PO account assignment ODS have three keyfields: PO Doc.,Item,account Assignment .
PO Infocube <b>PO Account Assignment ODS</b>
PO PO item Amt<b>PO Doc. Item AccAssignment Cost object</b>
1000 10 230 <b>1000 10 1 CC1</b>
1001 10 250 <b>1002 10 1 CC1</b>
1002 10 150 <b>1002 10 2 CC2</b>
in BEx result are like this:
1000 10 230 1 CC1
1001 10 250 # #
1002 10 150 1 CC1
1002 10 150 2 CC2 ( amount only duplicated)
The issue was that amount gets duplicated. It only occurs if PO has more than one account assignment.
In report, we want show like this
1000 10 230 1 CC1
1001 10 250 # #
1002 10 150 1 CC1
1002 10 # 2 CC2
Any suggestion or input to overcome this issue?
Thanks,
Saran
Message was edited by:
Saravanan KHi,
did you solve your problem? because I have the same issue right now: the left outer join doesn't seem to do its job.
Let me know if you have found a solution, it would be appreciated.
have a nice day,
Dominic -
BI Infoset left outer join (NW04s)
I created an Infoset using a left outer join for infoproviders:
- 0FIGL_O10 (GL transaction figures - DSO )
- 0CCA_C03 (CCA Statistical key figures - CUBE)
DSO 0FIGL_O10 is the left table with joins on:
- 0COSTCENTER
- 0FISCPER
The data set returned by Infoset appears to be based on a SQL using an
inner join.
This appears to be a bug.
We are on BI 700 SP 15.Hi Raynald - I did a demo with few records and it works fine for me. We are on 7, SP14.
-
Left Outer Join Not working in BI 7.0 Infoset
Hi All,
I am working on BI 7.0. I have to create a report where I have to display the Target values from a target DSO against the transactional data (Operational data).
I have a DSO where for a subteam value target has been set up on different KPIs.
In the Info Cube, I have transactional data on daily basis per subteam. I have to show the actual and target values.
I have created an Info Set using Target DSO and Daily operational cube, so that I should able to compare the target and actual values of KPIs, for all the subteam values (From DSO, irrespective of whether the data is available in cube for those sub team).
I have used Outer Left Join in the Info set (DSO on left side), but I am unable to see the desired results. It is working just like an inner join.
Any Idea why the Outer Left Join is not working? The DSO has only one fey field called subteam on which I have set outer left join.
Regards,
AmitHi,
did you solve your problem? because I have the same issue right now: the left outer join doesn't seem to do its job.
Let me know if you have found a solution, it would be appreciated.
have a nice day,
Dominic -
BI 7.0 Left outer join in Infoset
Hi Everybody,
I am using BI 7.0 and have two cubes in my Infoset.
How do we set left outer join option in Infoset.
Thanks
ShilpaLook at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/05/7ce2416149c717e10000000a155106/frameset.htm">this</a> page. Note the text: <i>For performance reasons, you cannot define an InfoCube as the right operand of a left outer join.</i> Hope this helps...
Maybe you are looking for
-
Apple component cable issue audio no video
Just purchased the Component cable to play movies purchased from itunes on my Sharp Aquos TV. Tv does have the correct ports for the component cable. But when I plug the cable in I get sound but no picture. The video out setting on the ipad is correc
-
Varience Key in production order
Dear All, There is varience key field in the control data tab of production order header. Please let me know where to define in customization the default value for this field. I am putting it manually in each order currently. Thanking you in advance.
-
Retrieval of latest purchase order ?
HI, The latest PO has to display when we try to enter the transaction to change or display PO. It's not happening in one of our environment. Appreciate if one of you tell us how the system retains the latest PO in memory? Regards, Ram
-
hi, I am are running sap enterprise portal. I used the Visual Admin to stop some applications (VA -> server -> services -> deploy -> Applications). I also stopped the application IRJ (which is the portal application), which was a big error from me be
-
Hello all, We're using Flash Paper 2 to make some extra documents available in external HTML pages from a flash site. These work fine in all browsers except for Firefox where only the top half of the document is visible - it's all functional, but the