BEx Query Formating - Displaying both Sum and Average in the same report

Hi everybody,
I need to create a BW report in the below format,
                      Company Code                                            Total       Total Average
                               0001            0002      0003      0004
Doc Type
    AV                        10               10         10         10            40                 10
    RV                        20               20         20         20            80                 20
Getting the report till the 'Total' column is easy but having the 'Total Average' as a separate column is where I am stuck.
Having the company code in the rows, and not clolumns, would have solved the issue but I need to keep the above format. Also I do not want to
see the Total Average for every Company Code, just that of the 'Total'.
In the Query Designer, in the Column section I have first the 'Company Code' and then the 'Count' in a structure, so whatever I add to this structure,
is displayed for each Company Code, that means 2 columns for each Company code. This changes the format.
I cannot use the Cell Definition method here, as then it would be a static structure and the number of Company Codes are not fixed.
It would be great if somebody could provide some suggestions.
Thank you,
Ajay

Hi Suman,
Thanks for the quick reply.
I have tried this, but again this will change the format. With the way you said, I will only get the report in the below 2 formats,
1. Company code in Free Charac, later drill down to Rows,
Doc Type  Company Code  
    AV                 0001                10
    AV                 0002                10
    AV                 0003                10
    AV                 0004                10
    Total                                      40
    RV                 0001                20
    RV                 0002                20
    RV                 0003                20
    RV                 0004                20
    Total                                      80
or 2. Company code in Free Charac, later drill down to Column,
                  Company Code                                       
                           0001                     0002                     0003                     0004    
                    Total    Total Avg   Total   Total Avg   Total   Total Avg  Total   Total Avg
Doc Type
    AV             10           10             10         10           10         10           10           10
    RV             20           20             20         20           20         20           20           20
Both the above are different from the format that I need.

Similar Messages

  • Can I add a new page to both phone and desktop in the same respective location? Can this only be done manually?

    It appears that once you create your phone site, from that point on, when I add a new page to one layout or the other, the "Page/go to same" command struggles. Can I create a new page and have it automatically create a matching placeholder page on the alternate format/site plan?

    Hi
    To answer your query, I am afraid you cannot add a new page to both phone and desktop in the same respective location. You need to manually do the same.

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • Display both Arabic & English characters in the same BO report or not

    Hi
    Can  we display both Arabic & English characters in the same BO report or not?
    if yes what will be the character settings/changes required.
    thanks and regards
    thomas
    Edited by: yeldhot on Aug 23, 2010 4:04 PM

    Kglad - I'm not sure I follow your instructions for the fix. I assume you want me to set the _visible property to false via Actionscript ( textInvisible._visible = false; ). What is the purpose of this second text field - does it need any specific content in it to function? It doesn't seem to work to fix the problem but maybe I'm misunderstanding.

  • Use one external harddrive on both pc and mac at the same time

    i bought an iomega external harddrive today
    can i use it on both mac and pc at the same times?
    for ex:
    when i plug in both computer
    i could able to read and write on the hdd on both computer
    since i format it into 4 partitions (2 journal and 2 doc)
    so i wish i can use them separately in 2 computers

    Hi Jerry_L and welocme to Discussions,
    using such USB or Firewire connected external harddrives with two computers at the same time is usually not recommended by the manufacturer.
    Doing so might lead to data-loss and the like.
    Check with the manual of that harddisk to verify.
    Using it with one computer at a time with your partitioning should be doable.
    Regards
    Stefan

  • Can we install both PI and CE in the same instance ?

    Hi,
    I have requirement to use EAI and BPM tools in SAP, as i know the tools will be PI and CE, but then to reduce the total cost of the hardware we need to put both PI and CE into the same box. is that possible to install both application in the same instance to reduce total memory used ? because both system also using the same java stack the only different is the installed component.
    Please advise ?
    Thank You and Best Regards
    Fernand Lesmana

    Hi Fernand,
    is that possible to install both application in the same instance to reduce total memory used ?
    Yes, it is possible.
    Please advise ?
    Not advisable to have PI and CE on same instance. Might face problems as cited by Abhishek.
    Regards,
    Neetesh

  • Can I use both iPhoto and Aperture on the same library?

    I like some of the features of iPhoto (like faces and places) but prefer to work in Aperture for its rich tool content. Is there any way I can use both iPhoto and Aperture on the same library? Or, import images from Aperture into iPhoto?
    Thanks much!
    John

    I think you may have answered a question I have with the above, but to be sure here is what I would like to do. I currently have iPhoto09 with about 50,000 pictures in it, which seems too much for it to manage. I would like to use Aperture, which I understand is better for managing a large number of photos, but still have iPhoto available to make slide shows, etc. for our AppleTV. Would the process you described above work for that?
    Thank you

  • HT4818 Can you use both Bootcamp and Parallels with the same Windows 7 installed

    I have Parallels installed with Windows 7.  Can I use both Bootcamp and Parallels on the same machine depending on whether I just want to work in Windows all day (Bootcamp) or alternate during the same session (Parallels)?

    You can, yes. But there is a complication: once you activate windows it will only be activated for one of the two methods you use. So, let's say you install into boot camp and activate windows. You can then install Parallels and it will find your boot camp installation, but when running in Parallels, Windows will report that it is not activated. Or, you can activate it in Parallels and when running in Boot Camp Windows will report that it is not activated. The reason for this is because Windows thinks it is running on different computers depending on how you boot it. This may not be an issue for you if you run Windows a lot one way and just occasionally the other way, so be sure to activate Windows in whichever method you use more often. Hope this helps!

  • Can I setup my P1606dn to eprint both Mac and PC at the same time?

    Can I setup my P1606dn to eprint both Mac and PC at the same time?

    Hi Poindexter65,
    There is no setup involved to ePrint from a computer.  So, the answer is yes.  All you need to do in order to ePrint, is send an email (attaching whatever you wish to print) to the printer's email address.
    Here is a link with more information about ePrint and specifications for attachment types, file sizes, etc.:  https://h30495.www3.hp.com/help#eprint
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided.
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Can I use both cs and cc at the same time?

    Can I use both cs and cc at the same time after upgrade to Adobe Creative Cloud?

    Yep. I have CC and CS installed and they both work. However, I don't see why I should use cs.
    Regards
    Kasper

  • Is it possible to keep both iPhoto and Aperture on the same Mac

    I would like to use both IPhoto (for day by day pictures) and Aperture (for pictures made with my SLR in Raw format).
    Is anybody able to advice me about this opportunity?

    You can keep both Applications (iPhoto and Aperture) on the same computer and separate libraries for iPhoto and Aperture;  images from both libraries will/should be available in other Applications from the Media Browser. In the long run, after you get accustomed to working Aperture, you will find it more convenient to migrate all your images to Aperture. Aperture has the more efficient storage strategy, you need less disk space to store multiple versions of the same image in Aperture than in iPhoto, and Aperture is the more versatile tool.
    It is easy to migrate iPhoto libraries to Aperture, but that is a one way road, if you want to export back to iPhoto, you can export your images, but not all of your library structure.

  • I am trying to use both DaqMx and DaqMxBase on the same (Windows) PC

    Context: I am seeking to build and test the EPICS driver for "National Instruments - Various DAQ cards" - see http://www.aps.anl.gov/epics/modules/manufacturer.php for Windows.
    This depends on NiDaqMxBase because it is built for Linux.
    Consequently, I have installed DaqMxBase 3.7 on my (Window 7 /x64) PC, which already held DaqMx 9.7.5.
    I cannot get DaqMxBase to recognise my pci-6601 counter/timer card.
    It it recognised by DaqMx.
    Should this card be recognised by DaqMxBase on Windows?
    Is it OK to have both driver versions installed on the same PC?

    Hey Peter,
    The USB-6008/9 has it's own article on this that I will link rather than typing it, it shows which operating systems support which drivers. Base and mx are both supported in some instances.
    http://digital.ni.com/public.nsf/allkb/2B1BB86D649297FB86256F96007AC55E
    Interestingly, in this case, Linux seems to only be supported by the Base driver.
    Thanks,
    Justin, Applications Engineer

  • BeX Analyzer Aggregation - display line item and header amounts in same row

    Hi Experts,
    I've a requirement in which I'm looking for help.
    Consider that I've one DSO with line item detail and I wish to display on a report for each line item (in the same row) the value of the header which has to be the sum of all line items for each header.
    Here's an output of what should be displayed:
    PO || Hdr  || PO item Item Amount || PO Amount (Sum All Items/Header)
    1    ||  1    ||  10 u20AC                          || 15 u20AC
    1    ||  2    ||  5 u20AC                            ||15 u20AC
    I've already tried to create a formula/calc key figure, using the KF "Item Amount" aggregated with exception of the "PO Hdr" Char, but it doesn't work.
    I know that i can built this on the data model but I just want to be sure before that there's no way to achieve this requirement through query designer.
    All help will be welcomed!
    Thank you.
    Nuno

    Hi Lakshmipathi Sir,
    Thanks for your reply. Could you please let me know how exactly i need to mention the logic to ABAPer.
    I can see two fields are giving from VBKD table with line item wise it is displaying.
    1. BSTKD
    2. BSTKD_M
    thanks,

  • Delete photos in both iPhoto and Finder at the same time??

    Is there any way I can delete photos in iPhoto AND at the same time delete them permanently in the finder?
    We all take too many pictures with out digital cameras and we can't say for sure which once are good with just looking at the camera... so we have to import ALL of them to iPhoto. When we do that, they also get saved in the Finder. When you delete the bad photos in iPhoto you still sit on the bad photos in Finder...
    Does anyone know an easy way to delete BOTH at the same time?
    Thank you

    I'm not sure I understand your set up:
    And I wanted to let you know that under Preferences the box "copy items to the iPhoto Library" is checked.
    So, all your pics are copied into the iPhoto Library. BUT you also have copies in the Pictures Folder. Why do you have two copies? They don't count as a back up because they aren't on a different volume, all they are doing is wasting disk space.
    If you let iPhoto manage the files then you have no need to access them in the Finder. With iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Unix Style Package File. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    There are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    I'm not sure I understand your problem.
    Regards
    TD

  • Cannot make call from MBP, although both iPhone and MBP share the same ID

    Both my iPhone 6 Plus and MBP with Yosemite have the same Apple ID, iCloud and Face Time details - account  (and the same Wifi). Yet, when I try to dial from MBP contacts, I get this message, I don't understand why.

    Find my friends is designed to locate DIFFERENT Apple ID's.  So if you want to use FMF for this purpose, you would need to create a different apple ID for one of your devices.
    OR, you could use the Find My iPhone App.  Which will display ALL of your devices.
    HTH

Maybe you are looking for