Get first value and then remove remaining in query output

hi all,
we have a query where we want to count the number of sales orders and show this count by created on month and salesperson.  trick is that sales orders have multiple line items so the same order can show in multiple months. 
lets say order 1000 has 3 line items.  each item is for month 1,2 and 3 of 2009.  the report is showing as such:
1.2009 1
2.2009 1
3.2009 1
each value represents the same order number.  we only want to see 1.2009 and then 2 and 3 show nothing because the counting of the order should happen 1X.  so the first month it finds an order number in, it counts it for that month and if it finds the same order for a later month then don't count it.
is there a way to accomplish this?
thank you

Hi there,
If you simply want to create count on sales order, then in query designer, just create a calculated key figure in that use option of formula variable,
create one new formula variable of processing type replacement path and assign that sales order number characteristic to reference characteristic.
in next replacement path tab
Replace variable with - Infoobject
Replace with  - Attributes
Attributes - characteristic reference.
For calculated key figure use aggregation after option.
Hope this will help you.
Regards,
Rajdeep.

Similar Messages

  • Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    If they aren't on icloud.com they are no longer in iCloud.  If you don't have another backup, I'm afraid they're gone.

  • I plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    i plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    Try restoring from the backup created at the beginning of the sync process:
    Without connecting your phone, open iTunes, go to Preferences, on the Devices tab check "Prevent...from syncing automatically"
    Connect your phone, right-click on the name of your phone when it appears on the left sidebar in iTunes
    Select Restore from backup, choosing your most recent backup to restore from
    Disconnect your phone and confirm that your photos are back
    Go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • HT2954 My receive function on the email gets just the first email and then stops

    My receive function on the email gets just the first email and then stops, but the wheel keeps turning like it is looking.  What can I do to get it functioning again.  This program has been steady for several years so something in it is tweaked.  Other computers can access the account just fine.  If I shut down the mail program and start it up again it will get the same email and then go into the spinning mode again.  Is there a file I can delete to reset the account.  I have tried to re input the SMTP data but no luck.  Any Ideas?

    Not certain, but this can fix myriad Mail problems...
    Safe Boot from the HD, (holding Shift key down at bootup),  it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move this folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.
    If that doesn't do it and you can afford to redo all your Rules, try these & reboot...
    /Users/YourUserName/Library/Mail/MessageRules.plist
    /Users/YourUserName/Library/Mail/MessageRules.plist.backup
    Note, in 10.5 & up /Users/YourUserName/Library/Caches/Mail/ may or may not exist.

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • Will not share Imovie with Idvd. Gets so far and then a box saying Unable  to prepare project for publishing because an error occured (-41)

    Cannot SHARE project from IMovie to Idvd. Gets so far and then a box with a message saying Unable to prepare project for publishing because an error occured (-41).

    Bengt is as always entirely correct, but another meaning of error -41 is that you have chosen the wrong encoding setting for the length of video you have:
    iDVD encoding settings:
    http://support.apple.com/kb/HT1502?viewlocale=en_US
    Short version:
    Best Performance is for videos of up to 60 minutes
    Best Quality is for videos of up to 120 minutes
    Professional Quality is also for up to 120 minutes but even higher quality (and takes much longer)
    That was for single-layer DVDs. Double these numbers for dual-layer DVDs.
    Professional Quality: The Professional Quality option uses advanced two-pass technology to encode your video (The first pass determines which parts of the movie can be given greater compresson without quality loss and which parts can’t.  The second pass then encodes those different parts accordingly) , resulting in the best quality of video possible on your burned DVD. You can select this option regardless of your project’s duration (up to 2 hours of video for a single-layer disc and 4 hours for a double-layer disc). Because Professional Quality encoding is time-consuming (requiring about twice as much time to encode a project as the High Quality option, for example) choose it only if you are not concerned about the time taken.
    In both cases the maximum length includes titles, transitions and effects etc. Allow about 15 minutes for these.
    You can use the amount of video in your project as a rough determination of which method to choose. If your project has an hour or less of video (for a single-layer disc), choose Best Performance. If it has between 1 and 2 hours of video (for a single-layer disc), choose High Quality. If you want the best possible encoding quality for projects that are up to 2 hours (for a single-layer disc), choose Professional Quality. This option takes about twice as long as the High Quality option, so select it only if time is not an issue for you.
    Use the Capacity meter in the Project Info window (choose Project > Project Info) to determine how many minutes of video your project contains.
    NOTE: With the Best Performance setting, you can turn background encoding off by choosing Advanced > “Encode in Background.” The checkmark is removed to show it’s no longer selected. Turning off background encoding can help performance if your system seems sluggish.
    And whilst checking these settings in iDVD Preferences, make sure that the settings for NTSC/PAL and DV/DV Widescreen are also what you want.
    http://support.apple.com/kb/HT1502?viewlocale=en_US

  • Why does my camera get purple streaks and then freezes

    why does my camera get purple streaks and then freezes

    My friend and I both work in a hospital and we go in out of signal continuously through out the day.  Our problem is so bad that by mid afternoon our phone batteries are down to 20% as the phone is continuously searching for signal.  Im on EE and their only advice was to reset the network settings, thats fine when you only have to do it once but Im doing it up to 20 times in 1 day.  It makes me hate my iphone for the first time in 5 years.

  • Get textfield value and put it session  JSP

    Hi all .
    I have issuse with Session . this the code . file name (order.jsp)
    %>
    <p>Compute</p>
    <table width="354" border="1">
    <tr>
    <td width="36" scope="col"> </td>
    <td width="148" scope="col">Computer Type</td>
    <td width="148" scope="col">Price</td>
    </tr>
    <%
    while (rset.next ()) {
    %>
    <tr>
    <td><input type="text" name="compno" value="<% out.print (rset.getString ("COMPUTERID"));%>"</td>
    <td><input type="text" name="compty" value="<% out.print (rset.getString (2));%>"</td>
    <td><input type="text" name="comppr" value="<% out.print (rset.getString (3));%>"</td>     
    *<td width="61"><a href= "detailorder.jsp?<% session.setAttribute("comp", request.getParameter("compno"));*
    *     String str=(String)session.getAttribute("comp");     *
    *     System.out.println("file name is"+str);%>=">Add <%=str%></a></td>* </tr>
    <%
    rset.close();
    pstmt.close();
    %>
    my problems is that I would to get "COMPUTERID" value and put it in "comp" and save it as session .
    please help
    raid
    Edited by: raid200 on Apr 23, 2008 12:40 PM
    Edited by: raid200 on Apr 23, 2008 12:41 PM

    Copied from a newly opened topic:
    raid200 wrote:
    Hi
    Thanks for your help . I can take one textfield value and send it to another jsp file
    BUT I would to take all textfield in the row that I would use it .
    Code .
    <p>Compute</p>
    <table width="354" border="1">
    <tr>
    <td width="36" scope="col"> </td>
    <td width="148" scope="col">Computer Type</td>
    <td width="148" scope="col">Price</td>
    </tr>
    <%
    while (rset.next ()) {
    %>
    <tr>
    <td><input type="text" name="compno" value="<% out.print (rset.getString ("COMPUTERID"));%>"</td>
    <td><input type="text" name="compty" value="<% out.print (rset.getString (2));%>"</td>
    <td><input type="text" name="comppr" value="<% out.print (rset.getString (3));%>"</td>     
    <td width="61"><a href=" "detailorder.jsp?compno=<%= rset.getString("COMPUTERID")%">>                               <%session.setAttribute("compna",rset.getString(2));
                                  session.setAttribute("comppr",rset.getString(3)); %>"> BUY ME! </a></td>
    </tr>
    In the detailorder.jsp::::::
    String selectedCompId = request.getParameter("compno");
         session.setAttribute("comp", selectedCompId);
    String computerid=(String) session.getAttribute("comp");
    String computername=(String) session.getAttribute("compna");
    String computerprice=(String) session.getAttribute("comppr");
    in the detailorder.jsp ("""""the compna and comppr give the last record in formation""""""")
    Please Help.
    Raid</a>
    You question shows that you still don't understand how JSPs work.
    Try reading [this article|http://www.javaranch.com/journal/200510/Journal200510.jsp#a1].
    You seem to think that the session.setAttribute call is done when you click the link. This is definitely NOT the case.
    All of the java code runs (including all of those session.setAttribute) calls, and produces HTML. So it will store each element into session, overwriting the previous one.
    To get information from one jsp to another you either pass parameters or use session attributes.
    I showed you how to pass the selected id as a parameter, that you could retrieve in the next JSP.
    So you can get the compid.
    You could pass the other values as parameters as well - thats one approach.
    Alternatively you could use the id to look up the data from the database again.
    Alternatively you could store the +entire list+ of computers in the session, se the selected id to determine which one of those was selected, and get the answers like that.
    The full solution to my mind would be to write a bean method that executes the query, and generates a List of java Objects representing your information.
    You can then put that list in the session, and use it to both generate this JSP and get the information once the user selects one line.
    Hope this helps,
    evnafets

  • I would like to change of type of subscription to improve its level. Should I cancel the first one and then take another one ?

    hello
    I would like to change my type of subscription (adobe reader) to improve to get a higher level. Should I cancel the first one and then take another one ?
    thks
    cecile

    Hi Cecile,
    Please Contact Customer Care; an agent will be able to change your subscription from ExportPDF to Adobe PDF Pack, or an Acrobat subscription.
    Best,
    Sara

  • To get first date and end date after entering any month and year

    Hi,
    I need to to get first date and end date of a month and year in yyyyMMdd format. I am reading month and year from a properties file. But I don't know how to get the first date and End date in given format. The properties file gives me just text. But I don't know how to get the date format using this. I need this urgently. Can anyone help me to get code for this?
    I am reading the fields as,
    Properties props = new Properties();
    props.load(new FileInputStream("AnyMonthVolume.properties"));
    String date_month = props.getProperty("date_month");
    String date_year = props.getProperty("date_year");
    Thanks.

    I know this has been posted a while ago but incase someone looking for it, here is the code to get the end of current month date.
    Calendar cal = Calendar.getInstance();
         cal.setTime(new java.util.Date());
         cal.set(Calendar.DATE, 1); //set the date to start of month
         cal.add(Calendar.MONTH,1);
         cal.add(Calendar.DATE,-1);
    System.out.println(cal.getTime());

  • I am using window.print() to print the data of my webpage, it prints only first page and left the remaining while it works fine with IE and Google Chrome, ie print all the pages.

    My Page has data more than one page, it has verticle scroll bar to view all data .
    I used window.print() to print the data of webpage, but it prints only first page and left the remaining information.
    This works fine with Internet Explorer 6+ and Google Chrome.

    Does the entire webpage appear in Print Preview? <br />
    File > Print Preview

  • I have a Macbook Pro that I have just renewed and transferred over my old hard drive (also from a Macbook Pro). Now when I turn on the computer and ITunes opens I get error (-50) and then error 5002 when I try to sign in to ITunes Store - Help!

    I have a Macbook Pro that I have just renewed and transferred over my old hard drive (also from a Macbook Pro). Now when I turn on the computer and ITunes opens I get error (-50) and then error 5002 when I try to sign in to ITunes Store - Help!
    My dealer has tried and failed (twice) to correct this and I have tried deleting the two items in the Itunes folder but no luck!

    were you able to get help on this?  I need help on error 5002 as well.  thank you

  • While installing latest update I lost ability to open Itunes.  Getting "runtime error" and then next box says error 1114.  Tried uninstalling and reinstalling and does not work.  Getting same error.  Very frustrating.

    Cannot open Itunes after trying to install latest update.  Getting runtime error and then error 1114.  Tried uninstalling and reinstalling and still getting same error.  How do I fix this.  Very frustrating!

    Hi there,
    Earlier iTunes (and supporting applications) need to be completely uninstalled before you can install the new version. Here's the complete Apple info on this: http://support.apple.com/kb/HT1923
    Mobile device application will most likely fail to uninstall, so you would need to visit its location(s) and manually delete the files then folder(s). The location of the folders is documented in this link from Apple.
    It's a pain, but it should work.

  • After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    We can't know anything. You have not provided any useful details like system information or the install logs.
    Mylenium

  • Hello, i registered my visa card and then removed and again 3 times. and im realize itunes takes money at every register, so i make little research there says itunes gives back that money back but its already 3rd week and no refunds ? Please help

    hello Apple community i have little problem i didnt know itunes takes 1$ for every register visa card. i registerd and then removed 3 times so its taked 3$ so i make little researchs i found itunes gives back that money but its my 3rd week waiting and no refund pls help.

    The temporary store holding charge that is made when you add or change the card details (to check that the card is valid and active and registered to the same name and address as on your account) should disappear within a few days : http://support.apple.com/kb/HT3702 - it should be your card issuer that removes the hold, so you may need to contact them :
    Authorization holds are removed by your financial institution shortly after your purchase clears. The amount of time it takes to remove authorization requests varies by financial institution.
    If you have questions about the way your financial institution handles authorization requests, contact their customer service department.
    If you want to contact iTunes support then you can do so via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • How can I make my contacts & messages private/confidential?

    How can I make my contacts and messages private?

  • Data Guard questions

    Hello all, I am a newbie to data guard. 1) Unless using the real time apply feature, standby redo logs must be archived before the data can be applied to the standby database. Am I correct in my understanding? 2) Can we keep standby database in highe

  • Accessing SMB/Windows Shares on OS X

    I have an invisible windows share called public$, which I allow anyone to (read-only) access on my network. But to be able to access it on a mac I had to give it a password. Are there anyways around this password problem? On windows machines I am abl

  • I have recently finished up on my contract, paid full month - need refund?

    Hi,  I have recently finished up my contact - bill paid 25th of May at full price for a month in advance - contract ended 7th of June - therefore I believe i'm due a refund of approximately half my bill payment? I received no contact from meteor and

  • 10.4.8 & Belkin UPS

    I've searched the discussions and found some info but nothing that matches what I'm about to ask here. I believe this is OS related rather than hardware hence I've posted here.... I have used a Belkin 650VA Battery Backup UPS for about 8 months now.