Comparing two report columns in webi
Hi ,
I have as cenario where we need to get unmatched records of 2 reports .
Ex:
Rept1
Name no rev
A 12323 100
B 23431 150
C 45631 200
Rept2
date No sales
1/3/15 123-23 300
3/2/15 234-31 400
4/3/15 356-31 300
final o/p : i need to compare rep1 no with rept 2 no and finally i need to dissplay unmatched records of Rept1 with Rept2.
here in above rept 1 & rept2 unmatched record is 45631 .
Thanks.
then on report level you have to fetch both the report data in different queries
let say query1 contains data for report1
like wise for query2
now,
on report level create an object
New_No =toNumber(Replace(query2.No;"-";""))
Now merge No from query1 & New_No .
Create a formula =[No] Where (isNull(query2.sales) = 1 ), here [No] should be merged dimension.
this will get you result
Similar Messages
-
Bad performance when deleting report column in webi(with "Design – Structure only")
Hi all,
One of our customer has recently upgraded from BO XI to BO4.1. In the new BO 4.1, they encountered a bad performance issue when they were deleting a column in Webi(using "Design – Structure only" mode).
With “Design – Structure only" mode, it took webi about 10 seconds to complete after the customer right-clicked a report column and clicked the "delete". The customer said that they only need to wait for less than 1 second when they did the same in BO XI old version.
The new BO version used is 4.1SP02, installed in Windows Server 2008 R2. (Server with 32 core CPU, 32G memory)
This bad performance happened in both Webi web and Rich Client. (in Webi Rich Client, the performance is a little bit better. The 'delete column' action takes about 8 seconds to complete).
Do anyone know how to tune this performance in webi? Thank you.
Besides, it seems that each time we are making change in the webi report structure in IE or Rich Client, webi need to interact with Server site to upload the changes. Is there any option to change this behavior? Say, do not upload change to Server for when 'deleting report column', only trigger the upload after a set of actions(e.g. trigger when click the "Save" button).
Thank you.
Regards,
Eton.Hi all,
Could anyone help me on this? Thanks!
What customer concerns now is that when they did the same 'column editing' action in BO XI R2 for the same report, they did not need to wait. And they need to wait for at least 7-8 second in the BO 4.1SP02 environment for this action to complete.(data already purged, in structure-only mode)
One more information about the webi report being editing is: there are many sheets in the report(about 6~10 sheets in one report). Customer don't want to separate these sheet into different reports as it will increase the effort of their end users to locate similar report sheets.
Regards,
Eton. -
hi all,
i am using db10g.
my task is to compare two table's data for example
table1 is having
col1 col2 col3
a b c
e f g
table2 is
col4 col5 col6
a e c
e f g
so i have to compare col1 first record and col4 first record.
in otherwords first table first column first item with second table first table first value and so on.
for ex: a= a
b= e
c= c etc
how can i acheive this?
both are database tables.
i cannot use minus function because data types are different for the corresponding column
how can i compare it?
Thanks..
Edited by: user13329002 on Jan 13, 2011 1:09 AMHi,
Try this
select
case
when a.col1 = b.col1 then 'EQUAL' else 'NOT EQUAL' end column1,
case
when a.col2 = b.col2 then 'EQUAL' else 'NOT EQUAL' end column2,
case
when a.col3 = b.col3 then 'EQUAL' else 'NOT EQUAL' end column3
from (select col1,col2,col3,rownum rn from table1) a,
(select col1,col2,col3,rownum rn from table2) b where a.rn = b.rn Try to see how you order the rows of the two tables.
cheers
VT -
Hi to all,
I'm new at Crystal and I have a question.
I have a source table that have the following layout:
NAME DATE SALES_VALUE
aaaaa Jan09 1000
bbbbb Feb09 1111
ccccc Mar09 1010
aaaaa Jan10 1200
I want to create a report that compares the same month on diferent years like the following:
NAME JAN09 JAN10
Of course, the month is not fixed, but it will be a parameter defined by the user...
Can anyone help me?
Thanks,
LuisYou could create a formula, and group off of it.
day()&" "& month()
If you go to details section and check Format with Multiple Columns
you will see a layout tab pop up.
click on it, select the proper width
and across then down
then you will get your two columns.
Something like this
NAME DATE SALES_VALUE NAME DATE SALES_VALUE
aaaaa 01/01/2010 1,000.00 aaaaa 01/01/2011 1,507.50
aaaaa 02/01/2010 1,952.50 aaaaa 02/01/2011 2,397.50
bbbbb 01/10/2010 1,240.50 ccccc 01/10/2011 1,908.00
bbbbb 02/10/2010 2,353.00 ccccc 02/10/2011 2,798.00 -
Is there an easy way to compare two null columns?
I need to compare a significant number of columns between records in two tables for a data conversion. I really need a comparison that will return true if: 1) both columns are null; or 2) both columns are not null and equal. I want it to return false if: 3) one column is null and the other is not; or 4) both columns are not null and are not equal. I am trying to find records which are not exact matches.
I found documentation at oracle-base.com about the SYS_OP_MAP_NONNULL function that would do what I want, but I don't want to use this since it's an undocumented feature and my code will be in production for a period of time.
I would rather not have to use a construct like this for each and every column I'm comparing:
a.col is null
and b.col is null
or (
a.col = b.col
)Also, I know about the NVL function, but I'm comparing columns which are entered by users, and I'm not comfortable substituting any values for null because those values might actually exist in the data.Performance wasn't the issue but they will be about the same anyway. The issue was avoiding the messy syntax needed to do the job.
Which of these looks easier to you if you had to understand and maintain the code or add new columns
>
I would rather not have to use a construct like this for each and every column I'm comparing:
a.col is null
and b.col is null
or (
a.col = b.col
>
or
1 = DECODE (a.col, b.col, 1)So if, like the OP, you had to 'compare a significant number of columns' which syntax would you use? -
Compare two records column by column in same table
Hi All,
I have an address table with ID as the PK but there can be more than one ID. I need to take the latest address record and first see if that same ID has a previous address record and if so, compare each column to see if the data has changed. I only need to compare the latest record with the next latest record.
I cannot figure this out at all. I can of course use the MAX function to get the latest address records but do not know how I can pull the next latest address record that matches the ID and compare each column.
Sample table:
ID street city state zip effective_date
1 123 main chicago IL 60111 3-7-2012
2 34 N 13th new york NY 18374 3-7-2012
3 15 N main Dallas TX 47389 3-7-2012
1 89 N main chicago IL 60111 1-5-2012
1 16 East St columbus OH 47382 12-10-2011
2 34 N 13th new york NY 18374 10-7-2011
2 15 S Elm new york NY 18374 09-1-2011
3 15 N main Dallas TX 47389 10-4-2011
SO...in the table above using today as the latest record date, based of my criteria I would only want to pull record ID 1 and 2 since the next most recent record for those IDs have had at least one of their address data change. ID 3 has exactly the same address data so I would not consider that in my criteria.
Can i do this with SQL only or will i need to create a procedure or function?
Any help is appreciated
BenBen C wrote:
Hi All,
I have an address table with ID as the PK but there can be more than one ID. You mean there can be more than one row with tha same ID, right? (There can be more than one ID, also.)
I need to take the latest address record and first see if that same ID has a previous address record and if so, compare each column to see if the data has changed. I only need to compare the latest record with the next latest record.
... Sample table:Whenever you have a problem, please post CREATE TABLE and INSERT statements for the sample data, and the exact results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using.
Can i do this with SQL only or will i need to create a procedure or function?You don't need PL/SQL, if I understand your requirements. You can do something like this:
WITH got_analytics AS
SELECT id, street, city, state, zip, effective_date
, COUNT (*) OVER ( PARTITION BY id ) AS cnt
, ROW_NUMBER () OVER ( PARTITION BY id
ORDER BY effective_date DESC
) AS r_num
FROM table_x
-- WHERE ... -- If you need any filtering, put it here
SELECT id, street, city, state, zip, effective_date
FROM got_analytics
WHERE cnt > 1
AND r_num <= 2
ORDER BY id
, effective_date
;This will show the most recent 2 rows for each id that has 2 (or more) rows.
You can modify it to only include ids where there was some change in street, city, state or zip between those 2 rows.
WITH got_analytics AS
SELECT id, street, city, state, zip, effective_date
, COUNT (*) OVER ( PARTITION BY id ) AS cnt
, ROW_NUMBER () OVER ( PARTITION BY id
ORDER BY effective_date DESC
) AS r_num
FROM table_x
-- WHERE ... -- If you need any filtering, put it here
, got_unique_cnts AS
SELECT id, street, city, state, zip, effective_date
, COUNT (DISTINCT '~' || street) OVER (PARTITION BY id) AS street_cnt
, COUNT (DISTINCT '~' || city) OVER (PARTITION BY id) AS city_cnt
, COUNT (DISTINCT '~' || state) OVER (PARTITION BY id) AS state_cnt
, COUNT (DISTINCT '~' || zip) OVER (PARTITION BY id) AS zip_cnt
FROM got_analytics
WHERE cnt > 1
AND r_num <= 2
SELECT id, street, city, state, zip, effective_date
FROM got_unique_cnts
WHERE street_cnt > 1
OR city_cnt > 1
OR state_cnt > 1
OR zip_cnt > 1
ORDER BY id
, effective_date
;This assumes that street, city, state and zip are all VARCHAR2s. If any of those columns is NULL on one row, and not NULL on the other row for that ID, that counts as a difference.
Edited by: Frank Kulash on Mar 7, 2012 3:37 PM
Edited by: Frank Kulash on Mar 7, 2012 3:41 PM -
hi,
Does anyone have or can show me the principle of a such kind of function ?see
http://geekswithblogs.net/leonardm/archive/2010/01/14/table-schema-comparison-in-sql-server.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
To compare two different reports
Hi!
Iu2019ve just started in a new work and I have an important task to do. So, I need to know if there is
some method to compare two reports. Let me explain:
We receive reports from Oracle and from SQL Server: two different reports with the same information. I need to compare them in order to know if the information exactly is the same or not.
Does someone know any tool to do that or do I have to revise each one by hand?May beu2026 Business Object u2013 Crystal Reports can explain us how is a report built and how we can find the u201Cdata sourcesu201D. If it can beu2026 I will be able to make a program to compare the u201Cdata fieldsu201D in two, three, four,u2026 reports.
It will be very useful to compare if two reports have the same u201Cdata fieldsu201D or, two directories have the same number of reports and everyone in the first folder have the consequent in the second folder.
Of course, when I talking about folders, Iu2019m want to say two folders who contains reports but each folder have reports linked to different DBMS (Oracle, SQL Server,u2026).
Edited by: Carles Hernández on Jan 13, 2009 5:03 PM
Edited by: Carles Hernández on Jan 13, 2009 5:05 PM -
How to download the output of two reports in WebTemplate into excel sheet?
How to download the output of webtemplate which consists of two reports in one Web Template into same Excel sheet?
hi sunil,
here is the HTML code for 'export to excel'
<!-- Display Export Excel--->
<td class="SAPBEXNavLine"> <SAP_BW_TEXT program="SAPLRRSV" key="T72">" src="Mime/BEx/Icons/S_X_XLS.gif" border=0 ></td>
you can also use BEx download scheduler to download the precalculated webtemplate report to excel sheet.
Check the link below.
https://websmp104.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000401962004E
i think this will help u
regards,
sindhu. -
Is there a way to concatenate two report columns into 1. For example, I have a employee and employee number. Instead of displaying it in two columns I wanted it to look like this in one column:
Employee - Employee Number
Any help would be great. ThanksYou would run this from where you originally had two columns and now want one...
You can create a region defined as an SQL report and run it there as well.. -
Hi All,
What would be the best way in BW to compare two reports? I have data collected from R/3 separately in an ODS & I have existing data in BW Cube, what would be best approach to do this.
This is required as a Part of reconciliation activity. Data needs to be compared of one existing report in BW & an existing report in R3. Requirement is to do it in a automotive way, hence not doing it manually using V-Look up in excel after dumping both the reports. Instead loading the R3 report data in a new ODS & then planning to link the Existing BW data using a new multiprovider.
Please suggest the optimum approach.
Thanks.
Kiron.Hi Kiranmoy,
There is no Standard report comparision as such but we can follow certain steps for comparison,however wanted to know which module you are working on so that we can suggest you accordingly.
If it is related to SD module then we compare BI with VBAP and VBAK tables on a date basis or on a sales order basis.compare one sales order in VBAK/VBAP table to that SO in PSA or DSO or CUBE.
If it is MM we can compare with MB51 or MMBE or MB5B with the data in the report as Invenotory module has non inventory KFs.The comparison is donw with movement type or Material or PO Number or with or combination of all.
If it is FI then there are BSEG ,BSIK,BSID,etc to PSA/DSO/CUBE ...we compare according to the document number or referance number.
Hope this helps !!
Rgds
SVU123 -
Hide/Unhide Columns in WEBI Report output
We have a WEBI report which has 2 columns/measures to display the cost in EUR and USD. User would like to have the flexibility to filter the column so as to display USD or EUR cost column. Is it possible to hide/unhide column in WEBI. Can we have a input control on multiple measures so that user can dynamically select which measures they want to see on report.
Its possible in BEx Analyser using filter option on key figure. Is simillar functionality available in WEBI? We're on BO 3.1 XI. Is thre any other way to achieve this?
Thanks,
Milindhi,
i think it is not possible to hide a column based on condition. but in webi 4.0 u have an option using which, u can hide/ show a table based on the user selection. in ur scenario, create two tables, one with value in USD and other in EU, super impose the table. then right onthe table and select "Format cell". in that u ll have a option to hide the table based on condition. select that and apply the condition.
see the follwoing url for more info : http://bihappyblog.com/2011/11/05/dynamic-visibility-in-webi/
thank u,
Edited by: aady89 on Mar 9, 2012 7:39 AM -
Comparing two dates in a report
Hello,
I am attempting to compare two dates in a report in order to format a column. My code for that portion of the report is as follows:
CASE
WHEN TO_DATE(DATE_DUE,'DD-MON-YYYY') -
TO_DATE(sysdate,'DD-MON-YYYY') <= 5 THEN
'<span class="due">'||DATE_DUE||'</span>'
ELSE
DATE_DUE
END AS DATE_DUE,I'm getting the error message ORA-00932: inconsistent datatypes: expected CHAR got DATE.
I've been trying to fix the condition to get rid of the error with no success.
Thanks
-BrianOne thing I just noticed that may or may not be the problem is that your case statement is returning two different datatypes depending on the condition. In one part, it is returning a character string of the span tags concatenated with the due_date (which in and of itself are incompatible datatypes) and the second part is returning just a date.
Again, not sure if the SQL engine will do automatic conversions for you, but this seems to jive with your "char vs. date" error. -
HI Experts,
Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
Please note below :
Selection criteria is: 1) controlling area
2) Fiscal Year
3) From date and To date
4) Plan Version
5) Order Group.
My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
Out Put fields to Pop up
1) Orders.
2) Budget
3) Actual
4) commitment
5) Alloted
6) Available
These are two additional column
7)Purchase order
8) Delivery date.
Require your help to know which all tables are included to extract above out put fields please help me.
Thanks in Advance.
Regards,
SudeshHi Preeti,
Thanks for reply, can you please let me know is there any other way to show the output fields.
As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
Also one more question,what is the commitment table which is popping up in this, please advise.
Thanks in advance.
Regards,
Sudesh -
How to compare two excel reports and find the difference in BI Publisher
Hi All,
I have a requirement that needs to compare two excel reports in XML Publisher 5.6.2. or BI publisher 10.1.3.4
If anybody has an idea about this pls help us.
Thanks,Since our customer wants to have this comparison only with BI reports....here is the scenario how the comparison should be..
Now,we have a parameters called Customer name and version id. Version id list will be refreshed based on the customer selection.
User can generate the report based on the selected customer name and version id. These data are fetch from the oracle database and we are using Data Template in the BI Publisher.
Now the requirement is customer wants to compare two version id data. for example, v1.2 and v1.3
Now they wanna to see both the reports while generating in the same work sheet, like, v1.2report should display in the left side and the v1.3report has to display in the right hand side of the same work sheet.
Now...If there is any addition happened in v1.3 report,then that cell/data should display as a green color in that report.
If any deletion happened in v1.3report then that should be in the red color.
If any modification happened in v1.3 then that should be in the yellow color.
If there is no difference then that should display as it is.
the thing is that, the both the reports (v1.2 and v1.3)should display side by side in the same worksheet with the format and everything........only the difference should be highlighted.
Template is same for both the reports..
To display the data for both versions i think i can generate the template side by side of both in the same worksheet.
Now, My question is how to find the difference of data in the RTF Template for both the versions
Can anybody assist me?
Thanks,
Edited by: user753355 on Jun 9, 2009 12:03 AM
Edited by: user753355 on Jun 9, 2009 12:06 AM
Edited by: user753355 on Jun 9, 2009 12:16 AM
Edited by: user753355 on Jun 10, 2009 3:59 AM
Maybe you are looking for
-
I've been working on a project in Logic 8 which involves syncing music to video. I converted the video as an mp4 and imported it into Logic and initially it was working fine. However, about halfway into this project and for no apparent reason, the vi
-
E71: no longer able to send via Nokia Email
I just upgraded to 200.21.118 on my e71-2 RM-357 (in spite of all the talk, only this firmware was available). I can no longer very easily send an email through Nokia Email. Before, I was able to select an entry through the Contacts app, choose 'Sen
-
How to accumlate resultsets in ref cursor
Hello I have 3 cursor which query on different tables and return the same columns. I need to accumulate the result set of 3 cursors into a single ref cursor. Is this possible. If so how. regards, Ravi Narala
-
URGENT! Customized email/submit
I need to create a submit button that will send ONLY 5 chosen fields from the completed form. The entire form does not need to be submitted, just the chosen fields for an email verification that an application process has been started. What would be
-
Working with backend (Oracle) from WD Java DC - help to choose an approach
Hello All! I'm developing a WDJ application used Oracle DB as backend. It will be medium application working with few tables. I've read some of blogs, tutorials and forum threads but still can't choose the best way for implementation the access to DB