Creating a tabular report comparing two measures based on accounts

Hi,
I'm trying to create a simple GL report but i'm getting stuck. Using BIP with OBIEE 10.1.3.4.
What i have is some GL data: debit amount (De), credit amount (Cr) and account number (acc). I would like to create a simple tabular report, comparing debit and credit transactions based on accounts, like this:
___________LabelA____________LabelB______________ LabelC_______________ Difference(LabelA - LabelB - LabelC)
Label1___Cr if acc=760___De if acc=400 and 401___De if acc like 30_____________________Calculated value (A-B-C)
Label2___Cr if acc=750___De if acc=410,411,412___De if acc between 31 and 35__________Calculated value (A-B-C)
Total (SUM) for A, B, C and Diff
Sample XML file:
<ROWSET>
<ROW>
<Acc>760</Acc>
<Debit>7.8248741841E8</Debit>
<Credit>8.9404379158E8</Credit>
</ROW>
<ROW>
<Acc>750</Acc>
<Debit>133217.03</Debit>
<Credit>133217.03</Credit>
</ROW>
<ROW>
<Acc>400</Acc>
<Debit>4.096061012E7</Debit>
<Credit>4.094870039E7</Credit>
</ROW>
<ROW>
<Acc>401</Acc>
<Debit>9018837.64</Debit>
<Credit>9018837.64</Credit>
</ROW>
<ROW>
<Acc>410</Acc>
<Debit>1.472907204E7</Debit>
<Credit>2.945814408E7</Credit>
</ROW>
<ROW>
<Acc>411</Acc>
<Debit>1.022005997E7</Debit>
<Credit>1.022005997E7</Credit>
</ROW>
<ROW>
<Acc>412</Acc>
<Debit>4.908581602E7</Debit>
<Credit>6.1676647725E8</Credit>
</ROW>
<ROW>
<Acc>30</Acc>
<Debit>241861.14</Debit>
<Credit>240128.14</Credit>
</ROW>
<ROW>
<Acc>301</Acc>
<Debit>6344057.99</Debit>
<Credit>6344057.99</Credit>
</ROW>
<ROW>
<Acc>310</Acc>
<Debit>1.4462687928E8</Debit>
<Credit>1.4462687928E8</Credit>
</ROW>
<ROW>
<Acc>312</Acc>
<Debit>2.512200946E7</Debit>
<Credit>2.511277993E7</Credit>
</ROW>
<ROW>
<Acc>350</Acc>
<Debit>1.4682048826E8</Debit>
<Credit>1.4682048826E8</Credit>
</ROW>
</ROWSET>
Is that possible? I would appreciate any tips.
Thank you,
Jandi

Hi Luis,
According to your description, you create a Reporting Services report using Analysis Service Tabular Model as the datasource, now what you want is sum the months value on year level, right?
In your scenario, you can add the Month field to column group, add a parent group using Year Field and then add a Total on Month group. In this case, Reporting Services will sum the months value on Year level. I have tested it on my local environment, the
screenshot below is for you reference.
Reference:Lesson 6: Adding Grouping and Totals (Reporting Services)
If this is not what you want, please describe your dataset structure, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Is there is any  way to create a validator to compare two fields (like a pa

    Hi,
    Is there is any way to create a validator to compare two fields (like a password and a retype password ) ?
    please give me any suggestion or any example related this problem!!
    thanks,
    Praveen Soni

    Ugh, do you have taken over the LimitValidator and the JSF example (including the f:validateDoubleRange which is unnecessary in this case) literally without actually reading/interpreting/understanding it? No, then it is indeed not going to work. Basically you just need to define a validator in the one password field and pass the client ID of the another field as attribute along the one password field. In the validator you can retrieve the value of the another field by its client ID and finally just invoke String#equals() on the values of the both fields.

  • Compare two tables based on two columns

    Hi,
    my tables looks like this:
    Desc Table A (account)
    Account1_id
    Account2_id
    name,
    empid
    Table B (Bill )
    BillNo
    Advertiserid
    agencyid
    total vvalue
    I need to pick up total value from table B where the unique combination of advertiser-Agency id is the same as the given account1_id -Account2_id combination in table A for each employee id.
    In other words my output should be like
    Empid | Account_id (should be same as advertiserid)| Account2_id (same as agencyid) | sum(total_value) for this adv-agency combination.....
    objective: Get the total value from table B for each unique account1-account2 combination (advertiser-agency in other words) .
    I am not sure if I should use a coreelated subquery or how to handle the situation....Right now I am just checking the two columns separately like this:
    select.......from a,b
    where b.advertiser_id = a.account1_id and b.agencyid = b.account2id
    Is it correct to do so? I have a feeling that I am missing something if I join them seperately like this......Any advice on this?
    I am using Oracle 10g. Hope I am clear.Please let me know. Thankx in advance.

    Here you go:
    SQL> WITH bill AS
      2  (
      3          SELECT 1000 AS billno, 101 AS advertiserid, 102 AS agencyid, 5000 AS total_value FROM DUAL UNION ALL
      4          SELECT 1001, 101, 103, 5000 FROM DUAL UNION ALL
      5          SELECT 1002, 101, 102, 1000 FROM DUAL
      6  ), account AS
      7  (
      8          SELECT 101 AS account1_id, 102 AS account2_id, 'John' AS name, 50 AS empid FROM DUAL UNION ALL
      9          SELECT 101, 103, 'James', 40 FROM DUAL UNION ALL
    10          SELECT 101, 105, 'Joe', 60 FROM DUAL
    11  )
    12  /* End Sample Data */
    13  SELECT a.name
    14       , a.empid
    15       , a.account1_id
    16       , a.account2_id
    17       , SUM(b.total_value)
    18  FROM   account a
    19  JOIN   bill    b ON  a.account1_id = b.advertiserid
    20                   AND a.account2_id = b.agencyid
    21  GROUP BY a.name
    22         , a.empid
    23         , a.account1_id
    24         , a.account2_id
    25  ;
    NAME                 EMPID          ACCOUNT1_ID          ACCOUNT2_ID   SUM(B.TOTAL_VALUE)
    John                    50                  101                  102                 6000
    James                   40                  101                  103                 5000

  • How can I create a shared review using a web-based mail account?

    I believe I should be able to do this using Acrobat 11 for Windows XP (I have the trial version), but I can't figure out how. We use Google Mail. Help says to:
    (Windows) Double-click Internet Options in the Control Panel. In the Internet Properties dialog box, select the Programs tab, and then select the preferred email application. Restart Acrobat to activate the change. 
    (Windows) Change the MAPI settings in your email application. Acrobat and Reader use the Messaging Application Program Interface (MAPI) to communicate with your email application. Most email applications come with MAPI settings to handle this communication. For more information on configuring your email applications, see the email application’s Help.
    Google Mail doesn't show up in my Internet Properties/Programs/E-mail list, and as far as I can tell, Google Mail doesn't have any MAPI settings to adjust.
    Any tips?
    Thanks.

    In Acrobat XI you can find this setting under Edit > Preferences > Email accounts. You can add your gmail account here. Here is a tutorial on How to use webmail in Acrobat.

  • Validation on Date Field in tabular Report

    Hi All,
    I have manually created the Tabular report and in that I have TWO DATE field
    1)Start Date
    2)End Date
    Now i want to put validation on start date as - Start Date Should Be More than sysdate.
    and validation on End date as - End Date should be More taht Start Date.
    How to put the validation ?

    Manish Jha wrote:
    What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    >What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    Hi manish ,
    I have Used the following code to validate end date should be more less than start date;
    DECLARE
    l_error VARCHAR2 (4000);
    BEGIN
    IF TO_DATE(apex_application.g_f05 (i), 'DD-MON-YYYY ') > TO_DATE (apex_application.g_f04 (i),'DD-MON-YYYY'
    THEN
    l_error :=l_error
    || '</br>'
    || 'Row '
    || i
    ||' ,TEST';
    END IF;
    END LOOP;
    RETURN LTRIM (l_error, '</br>');
    END;
    it's giving the error like :
    ORA-06550: line 16, column 6: PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: begin function pragma procedure The symbol "begin was inserted before "RETURN" to continue. ORA-06550: line 16, column 24: PLS-00103: Encountered the symbol "BEGIN"
    Error ERR-1024 Unable to run "function body returning text" validation.
    What to change in the code?
    Edited by: N.K on Jun 23, 2009 11:43 PM

  • Creating a PDF report from a Form

    Hi all,
    Is it possible to create a PDF REPORT from a table based Form?
    Thanks,
    Maurice Niezen

    You can NOT use FOP and the BI Publisher RTF editor to make templates for PDF output.. You need an XML style sheet editor to format the report layouts..: http://www.java4less.com/fopdesigner/fodesigner.php
    Thank you,
    Tony Miller
    Webster, TX
    Never Surrender Dreams!
    JMS
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Error creating iPad mobile reports

    I have a question specifically on creating mobile reports.  I have searched as many places as I could find for this answer and have found nothing except ipad connection and mobile usage instructions.  I must confess upfront that I am new to working with this system.
    Background:
    We have successfully connected to the iPad and I can see and download my reports.  Per the instructions, the reports are in the Mobile category and show up correctly in the iPad app.  I can open the reports, but that is where the issue starts.  The server setup is BusinessObjects XI 3.1 SP4 and BusinessObjects Mobile SP4. 
    My understanding is that these reports are basic Web Intelligence reports that are sized for the iPad's screen.  I am using InfoView to create these WebI reports through the browser-based Java GUI -- as the instructions suggest.  The instructions suggest many design best-practices and suggest that pie charts and bar charts are available.
    Problem
    I have created the most basic report that contains only a table and a pie chart (I tried the bar chart too).  When viewing this on the iPad, the table shows up formatted nicely but the pie chart has an error message in its place that says "This content is not supported".
    i have taken the "Features Sample" report called "Formatted Report for Drill" and copied into the mobile folder.  I appears on the iPad with tables shown nicely and all graphs replaced with the same "This content is not supported" error.
    Can anyone tell me what I am doing wrong? 
    Thanks.

    After posting the question, I found this document:
    Link: [SAP BusinessObjects Mobile Release Notes|http://help.sap.com/businessobject/product_guides/boexir31SP4/en/400_mobile_for_iPad_rn_en.pdf]
    which describes many unsupported features and partially explains the issues I'm seeing. 
    On some reports I can switch to simpler graphs (basic 2D pie, etc) and the graph will work on the iPad.  But there are others where I cannot get any graph to work.  I'm still working on that...

  • Comparing two PDFs using Compare Documents utility in Acrobat Pro in command line

    I have a need to compare two PDFs based on text, images, annotations, formatting, headers/footers, styles etcetera. The Adobe acrobat pro tool is working very good as per my requirements. I need to call it through Java program or command line. It could be something which takes the two PDFs as argument and compare options as Pro version have - text, images, annotations, formatting, headers/footers and background and generates the list of differences. It could return the differences either in a form of pdf document highlighting the differences or the map which is mapping something like page numbers to the details of differences that are appearing.
    This would be very helpful. Please answer asap.
    Thanks in advance.

    Sounds like you want to do this on a server, but you should know that Adobe Acrobat cannot legally be used on a server.
    For server-based PDF operations you can look at Adobe LiveCycle products or our Adobe PDFLibrary (available in both Java and C++)

  • How to assign apex_user in tabular report

    Hi,
    I have created a tabular report. Under report attributes / Tabular Form Element I have set the Default Type to (PL/SQL Expression of Function) and under Default (:apex_user). It looks like using :apex_user does not give me the username but if I instead of :apex_user say use sysdate it does give me the date.
    thanks so very much
    -ahmadii

    Sorry, it should be :app_user not :apex_user.
    thanks.

  • How can I compare two periods in a report based on parameters

    Hi all,
    I'm wondering how can I create a matrix report which compares the sales of two periods. These periods are variable and coming from the parameter section that the user is using. For example, I have got the following table "Sales". Columns are:
    ID (not visible in report, can be used to lookup)
    Country
    Customer
    Year
    Quarter
    Month
    Gross sales
    The output that I would like to get is the following
    Parameter period 1: 2013 Q1
    Parameter period 2: 2013 Q3
    The report should look something like this:
                                          2013 Q1         
    2013 Q3
    USA                Microsoft         50000          75000
    So in the third column you'll see the sales based on parameter period 1, and the fourth column shows the sales based on parameter period 2.
    Thanks for the help!

    Just to be sure I understand...
    You have 1 primary dataset that returns records that will be displayed in a tablix in your report. The data will include sales information records from various years, quarters, etc. You want your report user to be able to select 2 sets of data for comparison
    based on quarter. Is this correct?
    To do this, start by adding a Matrix to the report. Set the Column Group to group on the expression:
    =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Set this same formula as the group header. Now Set the existing Row Group to group on Customer. Add a parent group above this Row Group and group on Country. In the detail cell set the value to:
    =Sum(Fields!GrossSales.Value)
    You will also need to access the tablix properties and set a filter as follows:
    Expression: =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Operator: In
    Value: @Quarters
    For this filter to work, you will need to create the @Quarters parameter as follows:
    On General tab:
    Name - Quarters
    Prompt - Select Quarters to Compare
    Data type - Text
    Allow multiple values - Checked
    Visible - Selected
    Available Values:
    Get values from query - Selected
    Dataset - dsQuarters
    Value field - YearQuarter
    Label field - YearQuarter
    Default Values:
    No default value - Selected
    Advanced: Leave at default settings
    For the parameter to work you need to create the dsQuarters dataset. This dataset needs to return a single column of distinct values for Year + " " + Quarter based on the same query that you use for your primary dataset. Add the distinct keyword (if using
    TSql) or equivelent and eliminate all of the unnecessary columns. Set it to return Year + " " + Quarter AS YearQuarter.
    Let me know if you have questions or if I missed something.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Comparing two checkboxes in a SQL based report

    Hi,
    I have a SQL report using two apex_item.checkbox and I want to toggle between the two check boxes so only one is checked per row. Any pointers on how to achieve this would be great.
    Using Apex 4.02 on 11.2 DB.
    Regards
    SJC.

    Sounds more like a use case for radio buttons&mdash;where mutual exclusivity is inherent and handled automatically by the browser&mdash;than checkboxes.
    If the report is displaying fewer than 50 rows per page you can use <tt>apex_item.radiogroup</tt> to create the radio buttons, with one radiogroup per row determined by the <tt>p_idx</tt> parameter.

  • 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

  • Compare two dates in a report

    Hi,
    I would like to compare two dates on a report.
    I would like to compare the opportunity created date and the opportunity modified date. I can't use this formula CASE WHEN Opportunity."Last Modified" = Opportunity."Created Date" then 1 else 0
    I think I have to use TIMESTAMPDIFF but I don't know which interval I have to put to analyze the entire date in this format 31/12/1999 16:49:08
    Thanks a lot for your help
    Regards,

    Hi !
    It depends on the interval you need to compare these dates. If you want to know the number of days between these dates, you'll have to use SQL_TSI_DAY as interval. If it's minutes, you'll need SQL_TSI_MINUTE...
    Here are the possible intervals :
    *SQL_TSI_SECOND, SQL_TSI_MINUTE, SQL_TSI_HOUR, SQL_TSI_DAY, SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, or
    SQL_TSI_YEAR*
    Hope this will help, feel free to ask more !
    Max

  • Tabular report, how to split row into two lines per record

    Hi, I have a tabular report based on a collection. The collection has 15 fields and appears horizontally across the screen. I would like to have a break after the 5th column so that each row is on two lines instead of one. Is this possible...any information would be helpful.
    a shortened query is: and I would like the break to be between c028 and c029.
    thanks
    Karen
    Select apex_item.select_list_from_lov_xl
    (28,
    c028,
    'GEARS',
    'style="width:200px;background-color:#FBEC5D; "'
    || 'onchange="f_set_casc_gear(this,f29_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select Gear -',
    'f28_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) gear_code,
    apex_item.select_list_from_query(29,
    c029,
    'select lma_desc e, lma_code r
    from lobster_mgmt_area
    where 1 in (select 1 from gears where gear_code = '
    ||nvl(c028,0)
    ||' AND (type_code in (''005'') and category_code in (''160'')) OR ('
    ||nvl(c028,0)
    ||' in (''130'')) ) order by lma_code ',
    'style="width:75px"',
    'YES',
    '0',
    '- Select -',
    'f29_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO') lma_code,
    apex_item.text
    (30,
    c030,
    6,
    NULL,
    'style="width:50px;background-color:#FBEC5D;"'
    ) gear_quantity
    from collections where collection_name = 'EFFORT_C'

    Hello Karen,
    >> and each field needs to be updateble ( concatenating two fields does not allow for that).
    Did you notice the ‘&lt;br />’ component, as part of the columns concatenations?
    The following example is using the same principle – every two updatable column, from the employees table, are sharing the same tabular form row - http://htmldb.oracle.com/pls/otn/f?p=22710:420 . The report query is:
    select apex_item.text(10,first_name)||'<br />'||apex_item.text(11,last_name) col01,
    apex_item.text(12,phone_number)||'<br />'||apex_item.text(13,email) col02,
    apex_item.text(14,salary)||'<br />'||apex_item.text(15,commission) col03
    from employeesThe same principle is being used to define custom headings.
    Hope this time it will be more clear.
    Regards,
    Arie.

  • WIS 10901 error when creating a webi report based on OLAP unv (SSAS 2005)

    Hi,
    I'm using two VM.
    Machine A is running SSAS 2005. I'm able to create SSAS cube. Everything is ok
    Machine B is runing BO XIR3.1. I'm able to create webi report on relational DB without any problem or opening samples.
    Both VM machines are on the same custom network and I'am able to ping both. SQL managment server studio is installed on both machines. I'm able to manage SSAS from B also and not only from A.
    Creating unv with BO designer on machine B is OK, connexion is runing and universe has been created and published on the BO server
    But when I create a webi report from B, using my OLAP unv based on SSAS located on machne A I recieve following error message :
    Une erreur de base de données s'est produite. Le message d'erreur est le suivant : . (WIS 10901)
    thanks for your help,
    Nicolas

    Hi
    Ya I used SAP authentication - then also get same error.
    Connections are created with username, password to access SAP Source
    Thanks!
    J>M>Raj
    Edited by: John Milton on Jun 25, 2009 10:03 AM

Maybe you are looking for

  • Problem with Java and Firefox?

    After recently updating my firefox, I noticed that Java no longer will run. Everything is up to date and I have cleared internet and Java cache. But I put the disk image for my firefox update back on to my desktop and Java was running again. Any idea

  • Mini DisplayPort to DVI Adapter not being recognized...

    I wanted to run two monitors off my Mac Pro - a Dell S2409W and an LG Flatron L1920P. Forget for a moment the ugliness of this set up, if you will. My problem is whichever monitor I connect to the mini displayport to DVI adapter isn't recognized. Whe

  • Most efficient way to create/start Imovie?  I'm new at this!

    Hello, I am in the porcess of creating a movie for my daughter. I find the system very easy to use, however, I think I am doing things backwards thus making my project more time consuming. Is there a step-by-step process for doing things (photos, tra

  • Is it possible to DUAL BOOT SUN 8 & WINDOWS Server 2k

    I just took SA 239 Intermediate. I have limited resources and need to dual boot my Intel Based Sys with SUN Solaris 8 (what we use at work) and Windows 2000 Server. Is this possible? Keyword Searches for dual boot; dual boot intel etc return nothing.

  • Oracle 10g RAC with ASM upgrade RHEL3 to RHEL4

    Has anyone acheived this or know of any documentation highlighting any pitfalls ?