Using aggregation in xslt to display sum of rows after grouping in CQWP

there is a list in SP which has employee name, project name, and weightage. now there is a requirement to produce a customized view in CQWP where data is grouped by project there must be 2 columns one for projects and other for SUM of percentage of each
row in each project. In header i have a template as no text which hides the text. and in itemstyle.xsl i have made a template as mystyle which makes columns and displays data. i just need to add SUM of each row of a project and display it together with project
and the rows must not be shown.
<xsl:template name="MyStyle" match="Row[@Style='MyStyle']" mode="itemstyle">
<table border='1'>
<tr>
<td><h2>Project</h2></td>
<td><h2>Percentage</h2></td>
</tr>
<tr>
<td colspan="1"><h3><xsl:value-of select="@Project" /></h3></td>
<td>
<xsl:value-of disable-output-escaping="yes" select="@Percentage" />
</td>
</tr>
</table>
</xsl:template>
I am not able to figure out how to aggregate this thing. need help!

thanks again, one more Q.
in XSLT mapping i have written for loop for complete structure.
example : <Details>
                     <node1>
                     <node2>
               </details>
in XSLT mapping
                     <xsl:for-each select="ZMATMAS_01/IDOC/E1MARAM">
     <Details>
     </Details>
     </xsl:for-each>
if i add the field at target side....then i will come under details node and it will be repeated.
how to declare in XSLT mapping.

Similar Messages

  • Display report in horizontal after grouping

    Dear experts,
    I have done a REPORT 1 such as below, but i would like to display as REPORT 2. Is it possible to do it?
    If yes, How to do? Using what tools in crystal report?
    REPORT 1:
    Export (Group)
    Date            DocNo.         Amount                 
    23.3.10       100001           348.00
    23.3.10       100002         3271.00
    Local (Group)
    23.3.10       100003          356.00
    23.3.10       100004         3290.00
    REPORT 2:
    Export (Group)                                       Local (Group)
    Date            DocNo.         Amount           Date             DocNo.         Amount
    23.3.10       100001           348.00           23.3.10       100003          356.00
    23.3.10       100002         3271.00           23.3.10       100004         3290.00
    Your reply is higly appreciated.
    Thanks.
    Regards,
    Danny

    Hi Carl,
    I also get the result as followed your solution. But i facing a problem, i can't get the both total  local and Export display in nicely, it is due to the unbalance for local sales and export sales. e.g.
    Local                                    Export
    Date      Inv#      Amount     Date      Inv#      Amount
    12.3.10   002     345.00       12.3.10   001     345.00
    13.3.10   003    1345.00      12.3.10   001     345.00
    14.3.10   004    1345.00      _____________________
    15.3.10   007    1345.00                                690.00 <- IS IT POSSIBLE MOVE TO SECOND PAGE EVEN THE DATA IS NO FULL?
    16.3.10   008     1345.00                                                To display is nice report.
    17.3.10   010     345.00
    18.3.10   001     345.00
    19.3.10   001     345.00
    23.3.10   001     345.00
    24.3.10   001     345.00
    25.3.10   001     345.00
    25.3.10   001     345.00
    Total                   8140.00 <- THIS WILL MOVE TO SECOND PAGE IF FIRST PAGE IS FULL, IT IS OK.
    The report which i want to display.
    Local                                    Export
    Date      Inv#      Amount     Date      Inv#      Amount
    12.3.10   002     345.00       12.3.10   001     345.00
    13.3.10   003    1345.00      12.3.10   001     345.00
    14.3.10   004    1345.00   
    15.3.10   007    1345.00                         
    17.3.10   010     345.00
    18.3.10   001     345.00
    19.3.10   001     345.00
    23.3.10   001     345.00
    24.3.10   001     345.00
    25.3.10   001     345.00
    25.3.10   001     345.00
    Total                   8140.00     Total                   690.00
    Thanks.
    Regards,
    Danny

  • Displaying sums, in GL account group wise

    Hi ,
    I need to display the sums of actual and planed values, in GL accounts group wise. Ex : F.01 transaction
    Suppose, several accounts for accruals.
    E.g. Accruals bonus, Accruals charges, Accruals other.
    In my report i need to display GL accounts values and their sums in group wise. Couuld any one tell us, where can i find this type information like From GL accout X to Y comes under this group and Grouping text?
    Thank you,
    ABK.

    check FS00 u will get some idea.
    Regards
    Prabhu

  • How to do sum of rows selected in Html_db report

    I want to display sum of rows (based on the values selected in in a particular col)in html_db report

    Hi Tyler;
    Can you please take a look at my post?
    Possible Bug in 1.6 Report Totals?
    I am having some problem with Totals in a report.

  • How to use aggregator with filter  operator

    Hi,
    how can i use aggregation with filter operator. i have a table, form this table i have to calculate this valurs
    1. no of notes
    2. no of open notes where attribute =y (logic for one notes is count(notes) where attribute =y)
    2. no of closed notes where attribute =n
    for this i used like this
    table --> two filter operators 1 is for attribute =y and one is for attribute=n ----> to aggregaror operator. --- i am getting error.
    Regards,
    Jyothy

    Jyothy,
    Try this..
    U can use the below code in the aggregator without filters
    sum(decode(notes,'y',1,0) adn sum(decode(notes,'n',1,0)
    Regards,
    Sivarama

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • How do I use my iPad as the display and input device for my Mac Mini?

    I plan to have the following stereo configuration:
    Integrated amplifier with USB input that supports up to 24/192 audio, the Peachtree Nova 125
    Mac Mini with USB connection to amp, wifi to the Internet, housed in the equipment cabinet with the integrated amp, no other music source.  No display or keyboard connected to the Mac Mini.
    I would like to use my iPad as the display and to control the Mac Mini to run Pandora, iTunes, Spotify, podcasts, etc.
    Anyone have success with this general configuration?

    You need a set of apps (one for iPad and another for computer) like Team viewer or Go to my PC

  • How do I use my Apple Cinema HD Display as my primary workspace with my MacBook Book Pro?

    How do I use my Apple Cinema HD Display as my primary workspace with my MacBook Book Pro?

    In the Arrangement tab of Displays system preference, drag the menu bar to the picture of the other display.

  • How do I use my Macbook pro retina display as a monitor for a PC?

    How do I use my Macbook pro retina display as a monitor for a PC?

    MacQueries wrote:
    How do I use my Macbook pro retina display as a monitor for a PC?
    Unfortunately, that is not possible. The computer only can "output" your display image, it cannot "input" an image from an external computer and display it on your MacBook's retina display.

  • HT204291 My iPad 4 does not show up on my TV screen when in AirPlay mirroring mode using WiFi.  The iPad displays AirPlay set to TV with the Mirroring On (green).  My iPad IOS software is 8.2 and my Apple TV software is at 7.1.  The TV displays the Apple

    My iPad 4 does not show up on my TV screen when in AirPlay mirroring mode using WiFi.  The iPad displays AirPlay set to TV with the Mirroring On (green).
    My iPad IOS software is 8.2 and my Apple TV software is at 7.1.  The TV displays the Apple Menu.  The “Settings” does however displays the General menu allowing me to see:
    Apple software:          7.1 (7003)
    Apple TV:                   Model No. A1464, Part No. MD199B/A
    Signal Strength shows 5 circles.
    It does not display the iPad screen but when I use the BT Sport App I can hear the sound but there is no video.  I have searched the internet for a solution to no avail. The problem first arose when the IOS was at 8.1+ but it worked correctly briefly when I updated to IOS 8.2.  Can you help please?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Restart your mobile device.
    If you are still having problems, the following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Wifi Diagnostic Software (for Mac users)
    You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.
    When making adjustments to your network for better optimisation, you may find some of the points mentioned on this page helpful.

  • I want to use an IPad (w/retina display-newest) in my church hooked up to a projector

    I want to use an IPad (w/retina display-newest) in my church hooked up to a projector and shown on a screen.  I'd like to do it wirelessly as the projector will be installed in the ceiling.  I am not sure exactly what I would need to get this set up. I do not have wifi at church or cellular but would be getting the iPad (not yet purchased) with wifi only.  If I use Apple TV to hook up the projector to, would it need wifi to work if I will only be using the ipad for documents, worksheets (much like what a school/professor would use) or other things that an app could do (draw a line, etc.)  

    Epson projectors have such a feature, so if you're going to buy a new projector, you might start with their units. The app is described here:
    http://www.epson.com/cgi-bin/Store/jsp/Landing/ProjectorApp.do
    and there's a projector compability list linked from the very bottom of the page. There may be other projector manufacturers with similar apps, but I don't know for sure. All will probably also require a local WiFi network set up, though said network should not need Internet access if that's an issue for you.
    Regards.

  • I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV?

    I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV? I have a MiniDisplay Port to VGA adapter, but there are two issues with it: The new display doesn't have a VGA port, and even if it did, I wouldn't want to have my mac constantly attached to the display by a cable. I was looking for a way to use the TV as a display without any wires. Is there some type of bluetooth setup I could use? Please let me know if you have any suggestions.

    As I wrote above, I think you should look into the Apple TV yourself. The best place to find information about what it can and can't do and to ask your own specific questions is probably in the Apple TV forum, here:
    https://discussions.apple.com/community/appletv/appletv

  • Is it possible to use old Apple Flat Panel Display (62 watt power adapter) with MacBookPro 13" Mid-2012 running 10.8.4? Tried mini display to VGA cable

    Is it possible to use old Apple Flat Panel Display (62 watt power adapter) with a MacBookPro 13" Mid-2012 laptop?  Would like to use larger screen when working at home.  I have a mini display port to VGA cable and have tried to hook up the old display but it seems not to work.  When I try to activate the screen on the old display-- a window comes up in the MacBookPro and asks me if I want to shut down the computer.  What little I have read it that the MacBookPro had Thunderbolt and the old display may not be compatible?  Any assistance would be appreciated.

    quax88 wrote:
    11.09.12 22:16:06,148 ClamXavSentry[286]: scan email files
    11.09.12 22:16:06,148 ClamXavSentry[286]: I will quarantine infected files
    This doesn't have anything to do with your problem, but it will likely cause other issues with your e-mail.
    Here's my standard recommendation concerting the use of A-V software to deal with potentially infected messages:
    Never use ClamXav (or any other A-V software) to move (quarantine) or delete e-mail. It will corrupt the mailbox index which could cause loss of other e-mail and other issues with functions such as searching. It may also leave the original e-mail on your ISP's e-mail server and will be re-downloaded to your hard drive the next time you check for new mail.
    So, if you choose to "Scan e-mail content for malware and phishing" in the General Preferences, make sure you do not elect to either Quarantine or Delete infected files.
    When possibly infected e-mail files are found:
    Right-click/Control-click on either the infection or file name in the ClamXav window.
    Select "Reveal In Finder" from the pop-up menu.
    When the window opens, double-click on the file to open the message in your e-mail client application.
    Read the message and if you agree that it is junk/spam/phishing then use the e-mail client's delete button to delete it (this is especially important when the word "Heuristics" appears in the infection name).
    If you disagree and choose to retain the message, return to ClamXav and choose "Exclude From Future Scans" from the pop-up menu.
    If this is a g-mail account and those messages continue to show up after you have deleted them in the above manner, you may need to log in to webmail using your browser, go to the "All Mail" folder, find the message(s) and use the delete button there to permanently delete them from the server.
    To fix the corrupted mailbox index(es), highlight each one that was corrupted and choose Rebuild from the appropriate menu.

  • Using my widescreen tv as display

    using my widescreen as a display , works well but i can t get the top menu bar or the bottom dock options to fit into the screen. i m guessing this is a format problem with my tv but i can t seem to get anything to work with that either. any suggestions about what i can do in my settings to get these to fit????????? thx

    Have you gone into the settings and played around with all the different resolution sizes? I had the same problem but now it fits perfect.
    Most of them wont work, it'll just be a blue screen, but you should find one that works.

  • Can I use my iMac as a 'display' for my MacBook Pro?

    Hi all, I am really hoping someone can help me here.
    I am wondering if I can use my 24" iMac as a display for my MacBook Pro (both running Snow Leopard).
    It's my father's 80th birthday party in about 24 hours time. I am doing up the music and slideshow (thanks Apple - so easy!).
    My plan was to simply take my iMac and use it. However, I managed to drop the wireless keyboard (darn those dogs) and now my keyboard won't work. I have no backup keyboards here (gave the wired one to Dad to use with his Mac mini). I live in a country area with no access to a Mac store and it will take more than 24 hours to get a new one. Went to my local 'other computer' general store last night: I really don't want to buy an ugly black keyboard..... I have just had a great idea:
    Can I network my MacBook Pro and use it as the source for the slide show and simply use the iMac as a display? I have plenty of DVI adaptors but am just not sure how I would go about the software side of things? Or should I simply buy an ugly PC keyboard (and if I do, will the WIndows button work as an Apple button???)
    Any suggestions would be really appreciated.
    Thanks!

    The imac 24 can't be used as a monitor over a DVI connection or the like, Suzanne, but you may be able to achieve what you want to using "Screen Sharing" by networking the two computers. This lets your MBP effectively control what is running on the iMac.
    See HERE for the basic setup. For information about how to access the "shareable" screen from the MBP see HERE.
    One possible problem may be actually getting this set-up on the iMac if it is not already enabled, however, unless you can borrow a keyboard from someone (your password may have to be entered to enable it). You may be able to get around this, if necessary, using the "keyboard viewer" (which you can place in the menubar using System preferences > Keyboard, if you don't already have it there).
    Cheers
    Rod

Maybe you are looking for

  • No of Records in the Alert

    Hi All, Do we have a limitation on no. of records in Alert .As when i run the query alone it showing all the result but when i attache it with alert its not showing all the data Edited by: Ankur Gupta on Jul 10, 2009 9:22 AM

  • Maps on Mavericks

    I have upgrade right now my MacBookPro, and i try to use Maps, it's beautiful, but i can't send the itinerary to my iPhone by the share button. I'm connected to the same WiFi and even via USB. Can Anyonr help me? Thanks

  • Benefit Enrollment Callable Object

    Hi Experts, I am trying to implement Benefits Enrollment through GP process under "My First Days". I have copied the SAP delivered action for benefit enrollment as per note 968360. The action has Input parameters: Enrollment Reason: HIREE (Bold E as

  • How do i remove the instant stroke on all shape tools?

    Hello, I just installed CS6, and I'm having serious problems w/ a few things. Mainly this issue: As you can see, everytime I create an object, a stroke is added to it. And you can also see on the layers path, a small little box is also added. Here's

  • IMovie was removed from my macbook pro after I downloaded OS X Yosemite, I had it before and have used it, but now I can only get it through the app store

    iMovie was removed from my macbook pro after I downloaded OS X Yosemite, I had it before and have used it, but now I can only get it through the app store. I can't pay for it so I would really appreciate the help.