GroupFilter and sum(); filtered records should not be included in the sum()

Hi All,
I am working on a report that has the following requirement.
1. Query records from the database (multiple queries)
2. Filter records based on a certain criteria.
3. Sum() the rows.
4. Cannot use where clause because of the complexity of the report.
I have achieved the above requirement using data-template with one exception where my sum() is including all the filtered rows in the summation. I DO NOT want the filtered rows to be included in the sum(). I know I could do sum() in layout-template using xslt.
Is there a way to do this in data-template?
My data-template looks something like
<group name="g_dept" source="q_dept">
    <element name="dname" value="dname"/>
    <element name="d_salary" value="g_emp.salary" function="sum()"/>
    <group name="g_emp" source="q_emp" groupFilter="filterEmployees(:empno)">
       <element name="ename" value="ename"/>
       <element name="empno" value="empno"/>
       <element name="salary" value="salary"/>
    </group>
</group>
My data looks like
10    Scott1    7865    $100
10    Scott2    6875    $200
10    Scott3    5678    $300
10    Scott4    8657    $500 <-- filtered with pl/sql package
My output should look like
Dept: 10
Scott1    7865    $100
Scott2    6875    $200
Scott3    5678    $300
Total for 10: $600
instead my output looks like
Total for 10: $1100 <-- including filtered row Steve.
Is this a feature or a bug in the data-template? not sure the order of events querying, filtering & summation. If anyone could answer, I really appreciate it.
Thanks

Was there ever an answer the original question with the groupfilter and sum()?
I have a GL Report (bi pub 5.6.3 with ebusiness suite 11.5.10.2) that uses the oracle.apps.fnd.flex.kff.select (with security as the output type). In my lowest group (lines) i have a group filter that eliminates the row if the security is Y (to eliminate it from the XML and report). However, the sums that I'm doing are including all rows, not just the ones included in the data file.
I too have the same issue as Kalagara, where I can't use the where clause to exclude the rows.
Thanks - Jennifer

Similar Messages

  • After creation of PO system should not allow to change the price in PO

    Hi There,
    In my scenario once PO is created then after send to vendor PO print document,Users are changing the price in PO.so system should not allow to change the price in PO once PO got saved.
    So please advice.

    Hi,
    you could set in customizing for field selection keys the net price      
    to display for ME22N so that changes can not be made         
    (transaction OLME -> purchase order -> Define Screen Layout at Document Level).
    Please check that you have set all the relevant field selection      
    groups to display: AKTV, ME22, ME22N... (read and apply note 30316)                                                                               
    Other workaround is try to do by yourself with the badi                      
    ME_PROCESS_PO_CUST and send your own error message.    
    Regards,
    Edit

  • "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?

    I don't know what's wrong with my Mac Mozilla Firefox, version 3.6.8, but today, it started alerting me about an error message on the "Error Console". In every website I visit, it tells me: "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?
    I saw a pop-up which did not allow me to click it when I scatter the windows on my Mac. I was using Private Browsing, with pop-ups disabled, but one pop-up managed to get passed my settings, and open in another window. It would not allow me to select it, so all I did was to close Firefox, and start a new session. So far, everything has been normal, I also deleted the cookies it installed.
    But, I still keep seeing that "Error Console" notice under my "Tools" on the Menu Bar, and when I clicked on it, it listed errors (such as what I listed above).
    Would someone explain this to me?
    Thanks for your help!

    The messages you see in the Error Console are mostly to assist the web site's author in resolving compatibility problems. Some of them can assist you in determining why a web site doesn't work as intended. The one you mentioned doesn't sound that suspicious, except that it occurs on many sites. Perhaps one of your add-ons is trying to monitor what you type?
    To diagnose whether this is caused by an add-on or one of your settings, you could try the following:
    First, make a backup of your computer for safekeeping. To back up Firefox, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that resolve the errors? If so, then an add-on usually is the culprit. If not, try creating a new (blank) profile: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    If the new profile works correctly, you can choose between further research on your old profile or moving key settings like bookmarks from your old profile to the new one. [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

  • Purchase Req Should not be created if the order is Delivery blocked

    Hello All,
    I have a requirement in third party sales where the Purchase requistion should not be created if the sales order is delivery Blocked, as and when the delivery block is removed then only the PR should be created.
    Please help to fulfill the requirement
    Regards
    kiran

    Hi,
    Please check the field purchase req with delivery scheduling in scheduling line configuration.
    thanks
    Kuntla

  • HT1296 I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    You copy them from your old computer or your backup copy of your old computer.
    The iphone is not a backup/storage device.

  • I tried the Aperture trial and liked it but did not buy it when the trial finished. a few weeks later I purchased Snow lepord and purchased Aperture Via the app store. i have not been able to use it because every time I open i get the spinning wheel of de

    I tried the Aperature trial and liked it, but did not purchase it when the trial ended. A few weeks later, i purchased snow lepord and purchased aperture via the app store. I have had not been able to use it since. Each time i open it , afer a few seconds i get the spinning wheel of death and Aperture is frozen. I have to force quit Aperture to shot down mycomputer. I have re-installed Aperture 3 times with th e same result. I have iphoto on my computer as well is this causing the problem? I want my money back!!! Can anyone help?

    You need to delete the trial & then reinstall from the boxed DVD or the Mac App Store. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user.
    Yvan Koenig has written an AppleScript that removes the files. You can find it on his box.com account in for_iWork'09 > other_iWork'09 items > uninstall iWork '09.zip.

  • USER EXIT/ BADI (The price should not be changed in the billing document)

    Hi all,
    We have given manual entry provision for pricing in Sales order level. But as per the company requirement, the price should not be changed in the billing document. Also the point to be considered is, it is a delivery based billing. 
    Kindly help me for finding USER EXIT/ BADI to achieve my requirement.
    Thanks.

    Hi,
    Please refer to OSS notes:
    105621 - Authorization check for the condition screen - you can use following user-exit includes for changing the condition tab to display only:
        USEREXIT_FIELD_MODIFICATION
        USEREXIT_PRICING_CHECK
        USEREXIT_FIELD_MODIFIC_LEER
        USEREXIT_FIELD_MODIFIC_KZWI
        USEREXIT_FIELD_MODIFIC_KOPF
    1165078 - Authorization check for conditions or subtotals - from ECC6.0 EHP4 there is a dedicated BAdI for authorization check, however if the user is not aurhorized to change the conditions, the conditions are not visible for the user as well.
    Regards,
    Marcin

  • I'm trying to record audio into my iPad2 using GarageBand and an iRig, but I can't monitor my tracks at the same time as recording, meaning if I lay down a drum track and attempt to record guitar, I can't hear the drums while recording. Thoughts?

    I'm trying to record audio into my iPad2 using GarageBand and an iRig, but I can't monitor my tracks at the same time as recording, meaning if I lay down a drum track and attempt to record guitar, I can't hear the drums while recording. Thoughts?

    Hi, I have this exact same problem. I haven't been using an iRig, just a cheap USB-jack cable. I managed to do this with the first cable I bought, but since it broke I've been unable to find a replacement that allows me to hear the drums while recording. DId you manage to get over this issue? If so I would really like to know how. Thanks and best wishes.

  • I just recently upgraded to the new itunes and getting this, ADAdPolicyEngine_DidEnterStation, could not be located in the dynamic link library C:|programsFiles(x86|itunes.dll, itunes.exe Entry point not found itunes Error 7 windows 127

    I just recently upgraded to the new itunes and getting this, ADAdPolicyEngine_DidEnterStation, could not be located in the dynamic link library C:|programsFiles(x86|itunes.dll, itunes.exe Entry point not found itunes Error 7 windows errors127

    See iTunes launch errors caused by iAdCore.dll.
    Review the rest of the user tip if required.
    tt2

  • Hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP!!!

    hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP!
    does anybody know how to solve this problem? thx!

    If you want to try to clear even more disk space see https://discussions.apple.com/thread/5872318?tstart=0

  • System should not allow to do the changes in PO once the ID created.

    Hi All,
    Once the Inbound Delivery is Created based on the Purchse Order, System should not allow to do the changes in the Purchase Order like Deletion of Item, etc..
    Any Configuration Changes is avaliable. ?
    Regards,
    Sudhakar

    Dear,
    Please check the staus in order
    Current order status xxxx does not allow goods receipt (Message no. C6009)? is this the message?
    This will not allow you to do GR for production order when you activate status profile "SAT1" in the production order. After that when you confirm order it will automatically assign next user status i.e. "SAT2" (if not assign it manually in CO02) it will allow you to do GR for that production order.
    Regards,
    R.Brahmankar

  • I have a macbook pro with OSX Mavericks 10.9.5 and some keys that are not working. Specifically, the enter/return button, the "p", "0", ";", and all the function keys.  What's really weird is that happens randomly.  I've never spilled anything on it

    I have a macbook pro with OSX Mavericks 10.9.5 and some keys randomly are not working. Specifically, the enter/return button, the "p", "0", ";", and all the function keys.  What's really weird is that happens randomly.  I've never spilled anything on it, and I can't for the life of me figure out how to fix this.  Can anyone help?  of course this happened after my warranty expired.

    **update**
    I don't know if this will help someone but I am posting this for that purpose.  In the past when I first had this problem, I'd read a post somewhere (sorry, long ago, don't have the link) where an individual was having the same problem and they stated that when the MBP got heated, that's when the keys would stop working, and they went into the MBP and jiggle some stuff around (a specific wire, I'm not electronically inclined so I know NOT of what they spake!).  Well I didn't want to do that but it always stuck in the back of my mind.  I had given up, really, and was planning to take my MBP to the apple store.  But by chance one night I left my MBP on the floor where it's cool, and when I turned it on, the problem went - poof! It seems there was some validity to the post that spoke about heat, because my problems started when I would stream foreign dramas on my MBP for hours at night, and I would hear the fan going off all the time, and in the mornings, my "p", "enter", "0", ";", and all the function keys would stop working. 
    So, maybe try keeping the MBP in a cool place when it's off.  Since I've started doing this overnight every night (keeping it on the cool floor, out of reach of any big feet), I have not had a single problem with my keyboard.
    Hopefully this might help someone.

  • I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?

    I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?

    Do I understand correctly that I have to buy the new version for $149.00?
    You can upgrade for $79.
    Products

  • [svn:fx-trunk] 13687: Add in osmf and flash-integration localized files not picked up in the previous commit  (13686)

    Revision: 13687
    Revision: 13687
    Author:   [email protected]
    Date:     2010-01-21 07:25:58 -0800 (Thu, 21 Jan 2010)
    Log Message:
    Add in osmf and flash-integration localized files not picked up in the previous commit (13686)
    Added Paths:
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/de_DE/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/de_DE/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/de_DE/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/fr_FR/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/fr_FR/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/fr_FR/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ja_JP/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ja_JP/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ja_JP/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ru_RU/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ru_RU/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ru_RU/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/zh_CN/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/zh_CN/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/zh_CN/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/packages.dita

  • Premiere was working very well...and this week it will not even get off the boot up screen. Help?

    Premiere was working very well...and this week it will not even get off the boot up screen. Help?  I can log in on my laptop and it works fine but now it will not boot up on my desktop

    Moving this discussion to the Premiere Pro forum.
    The Coach what version of Premiere are you using?  Which operating system are you using?   Do you receive any specific errors when you try to open Premiere?

Maybe you are looking for