How can I pull info into a report using just the first two characters of that field?

I am trying to pull a total cost based upon locations in a particular area(s). Can I get the formula to just do this based on the first two characters of that field?
Here is what I have so far:
if {PACKED.LOCATIONS.NEXT OPERATION} = ["xx"] THEN {Job.Total_Price}
Packed locations is a table I'm pulling from and the column I want just the first two digits is the the Next operation. Once this meets the "xx" (whatever location) then give me the total price from the Job table.
This works for one or two orders, but then blows up when I do 10 or so.

Hi Steve, assuming that Next Operation is a string field...
Create a new formula and place it in the field where you see the {Job.Total_Price} field (Detail or Group depending on your report) with the formula:
whileprintingrecords;
global numbervar TotalValue;
if len({? Replace me}) <= len({PACKED.LOCATIONS.NEXT OPERATION}) then(
if left(ucase({PACKED.LOCATIONS.NEXT OPERATION}),len({? Replace me})) = ucase({? Replace me}) then
TotalValue := TotalValue + {Job.Total_Price}
TotalValue;
You can go ahead and suppress that field.
Create a new formula to place where you want to view the summary using the formula:
whileprintingrecords;
global numbervar TotalValue;
This method allows for a higher degree of flexibility and you can search for the first x characters of that field instead of only the first 2 characters

Similar Messages

  • When using Microsoft Steady State how can I trick firefox into not thinking it is the first time firefox is being used on this computer? I found a registry key trick to prevent firefox from wanting to import settings from IE, but currently my issue is th

    Most of the detail is in the initial question because I didn't realize we could add on...but I am currently running steady state on a PC in my office and it is rebooted every night with hard disk protection enabled so I start with a fresh slate every morning. I found a regedit trick to prevent firefox from popping up the "would you like to import settings from IE?" thing every time, but my issue now is that every morning I have to re confirm exceptions for sites that I routinely use... Is there a way to get around having to do that every morning when people log into this computer? I am willing to write a batch script if someone could give me direction or mess with the registry if need be....
    == User Agent ==
    Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.5 (like Gecko)

    Most of the detail is in the initial question because I didn't realize we could add on...but I am currently running steady state on a PC in my office and it is rebooted every night with hard disk protection enabled so I start with a fresh slate every morning. I found a regedit trick to prevent firefox from popping up the "would you like to import settings from IE?" thing every time, but my issue now is that every morning I have to re confirm exceptions for sites that I routinely use... Is there a way to get around having to do that every morning when people log into this computer? I am willing to write a batch script if someone could give me direction or mess with the registry if need be....
    == User Agent ==
    Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.5 (like Gecko)

  • Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Gavin Lawrie wrote:
    Once it had been established that the iWork rewrite had resulted in some features being lost and others broken, and once Apple had acknowledged the concerns* and suggested they are working on fixes**, I'm not sure what else there is to achieve.
    You are writing that in the perspective of having read about it here already. Repeated often enough that you encountered it somewhere in the posts.
    Users are flooding in here and don't know any of this. Of course we have to repeat everything endlessly.
    Because I like to give precise, understandable and workable answers to repeated questions, and Apple doesn't allow sticky posts here, I created a separate forum which users can consult to look up real answers, and contribute for themselves if they have something valuable to add:
    http://www.freeforum101.com/iworktipsntrick/
    There is a section purely devoted to Pages 5. Add whatever answers you feel will lighten the problems of Apple's 'upgrades'.
    Peter
    * Where have they acknowledged anything?
    ** They have barely anything listed, compared to the massive list of deleted features, and nothing but an extraordinarily long time frame considering they created the problems here and now. Apple has not said they will do anything at all about fixing the real issues, the biggest of which is that the new iWork apps break virtually all the work of existing users.

  • I can not activate my iphone to be used for the first time, it is blocked. how do i unlock. can someone help me

    I can not activate my iphone to be used for the first time, it is blocked. how do i unlock. can someone help me

    dis the activation server is not available try again later or contact tech support.
    has no sim card installed more already tried with the sim card still not of.
    bought in china.

  • I have windows for apple power point, how can i print a 6 slide handout using ALL the paper?

    I have windows for apple power point, how can i print a 6 slide handout using ALL the paper?
    The slides come out SO small and there is so much paper not used!

    Ah - OK. Ahora entiendo.  Estás en el foro incorrecto.  Aquí tratamos sólo con los productos de Apple, y tu pregunta es sobre un producto de Microsoft.
    Tendrás más suerte en el foro de PowerPoint en el sitio de Microsoft:
    http://answers.microsoft.com/en-us/mac/forum/macpowerpoint
    ¡Suerte!
    M.

  • HT200150 how can i find my iphone if i have just the apple id and not the icloud ?

    Hpw can I find my iphone if I have just the apple id and not the icloud too ?

    Did you enable and install find my iphone prior to losing your phone?
    If you didn't then you won't be able to use it.

  • I have taken pictures of items that are linked to a database that I am building.  How can I bypass importing into iPhoto and simply downloading the images as "files" not "photos" so I can access them with my database?  thanx.

    I have taken pictures with both my Sony camera and my iPhone of items that are linked to a database that I am building, as well as my website.  How can I bypass importing the images into iPhoto and simply downloading the images as "files" not "photos" so I can access them with my database?  thanx.

    If your Sony has a removable memory card you can use a card reader to copy the image files from to a folder on your Desktop and then move them anywhere you'd like.
    Since the iPhone doesn't have a removable memory card you can try using Image Capture to see if you can manually upload the files to a folder on the Desktop. 
    If you have to import the photos, which are image files, into iPhoto you can then export them out of iPhoto to the Desktop and go from there to your database.  Just because they are in iPhoto doesn't prevent you from using them elsewhere.
    OT

  • How can I import contacts into a mailbox and overwrite the previous ones?

    Hey guys, so I am new to powershell. I understand some of the basics and am still trying to teach myself as much as I can.
    So I have been asked to automatically push our company's contacts to everyone's mailbox (around 60-70 contacts to 60-70 mailboxes) We use Office 365.
    They also want the contacts to sync to mobile phones, so I cannot used a shared contact list. It seems only the MAIN contact list can sync to a phone.
    So far I have used this:
    import-contactlist -csv -csvdata ([system.io.file]::readallbytes("PATH TO CSV FILE")) -identity USER
    This works just fine, but if there are any changes to the CSV and I run it again, it just doubles all the contacts instead of overwriting. Is there anyway I can overwrite the contacts?
    I have also tried this:
    Search-Mailbox -identity USER -SearchQuery kind:contacts -deletecontent
    This does delete the contacts I have created in the first place, but if there are any OTHER contacts that users have created, it would delete those as well.
    I feel like im headed in the right direction.. can anyone help?

    Okay I think I figured it out. After I import the contacts with: import-contactlist -csv -csvdata ([system.io.file]::readallbytes("PATH TO CSV")) -identity USER
    I can run this to find and delete each added contact: 
    $tcontacts = get-content PATH TO CSV WITH ONLY NAMES
    $zcontacts = get-content PATH TO CSV WITH NAMES OF MAILBOXES YOU WANT TO REMOVE CONTACTS FROM
    $ccontacts = "null"
    $scontacts = "null"
    $xcontacts = "null"
    foreach ($ccontacts in $tcontacts) {foreach ($scontacts in $zcontacts) {$xcontacts = $scontacts; Search-Mailbox -identity $xcontacts -SearchQuery kind:'contacts', $ccontacts -deletecontent -force}}
    I use xcontacts = scontacts because of pointer issues (i think?) but anyway, using
    $scontacts for the -identity doesnt work.
    This is a pretty rough script, and you guys could probably find a shorter one, but it works! Thanks

  • HT1688 How can I unlock my phone to be used in the middle east?

    I have an I phone 5 without a contract.
    How can I unlock the phone to be used outside the U.S?
    Thank you in advance

    You cannot unlock an iPhone, only the carrier it is locked to can unlock it.  Contact your carrier for assistance with unlocking.

  • How can I get an exported iBook to open on the first page?

    After exporting the latest version of my iBook, when I open it in IBook reader on the iPad, it opens in some random spot in the middle of the book. I've tried doing a final save while on the Intro Media page before exporting but it still opens the first time somewhere in the middle. Any suggestions?

    >What I do <clip>duplicate Version 4 and then rename it as Version 5
    Those are certainly clones. Don't do that.
    See -How do I clone/copy an existing book for reuse to make another?- in iBA Tips and Tricks 01.

  • How can I select properties from dropdown lists using only the keyboard?

    Hi,
    I am using SAP Netweaver Studio and when modifying UI elements in views, I want to select the value for a property from the corresponding dropdown list in the Properties view using only the keyboard.
    When a property row is selected, "Enter" toggles to Edit mode, Alt+ArrowDown expands the list, but ArrowUp or ArrowDown directly selects the previous/next item list and changes to Selected mode.  Which key is used to navigate between the list items without selecting them immediately?
    Thanks a lot. I deal with lots of views and this would save me quite a few massage hours
    Maria
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM

    Thanks Andrew. When creating an external table does it requires an access to SQL*Loader?
    CREATE TABLE dept_external (
       deptno     NUMBER(6),
       dname      VARCHAR2(20),
       loc        VARCHAR2(25)
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY admin
    ACCESS PARAMETERS
    RECORDS DELIMITED BY newline
    BADFILE 'ulcase1.bad'
    DISCARDFILE 'ulcase1.dis'
    LOGFILE 'ulcase1.log'
    SKIP 20
    FIELDS TERMINATED BY ","  OPTIONALLY ENCLOSED BY '"'
    deptno     INTEGER EXTERNAL(6),
    dname      CHAR(20),
    loc        CHAR(25)
    LOCATION ('ulcase1.ctl')
    REJECT LIMIT UNLIMITED;

  • How can I create a sub down menu specific for the first down down menu response

    I want to create a survey that has a drop down menu, for example first listing the state. Based on the answer the next drop down menu will only have the cities in that state selected to choose from

    Hi,
    You may want to use the skip logic rule (available to paid users), https://www.acrobat.com/formscentral/en/library/skip.html
    You will not be able to automatically change the second drop down choices , i.e., show/no show based on previous response, but with skip logic rule you could create multiple drop down fields so that each one of these drop down fields will only show based on the previous response.
    Hope this helps,
    Thanks,
    Lucia

  • I have 3 itunes accounts.  How can I merge them into one?

    I have 3 itunes accounts.  How can I merge them into one?

    Sorry, but the only answer is that you can't.

  • How can I Insert data into my msaccess Database table

    Hello all,
    I am new to Java programming and I have problem that how can i insert name into my database table.
    The code which i have written is following:
    String filename = "d:/test.mdb";
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    database+= filename.trim() + ";DriverID=22;READONLY=true}";
    Connection con = DriverManager.getConnection(database,"","");
    String s = String.valueOf(text.getText());
    int k =10;
    Statement st = con.createStatement();
    st.execute("create table Test123(name text)");
    st.execute("INSERT INTO Test123 values" +s);
    on the INSERT program throws exception???
    can any one help me how to insert data into tabel.
    Thanks

    he INSERT program throws exception???
    can any one help me how to insert data into tabel.I have never used the jdbc driver to access, but what do you think that the flag READONLY=true means? An insert is not a read.
    Kaj

  • Why has iTunes seperated a album which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Why has iTunes seperated a album into indevidual songs, which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Steve MacGuire a.k.a. turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message/9910895)
    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.  If they are not a multiple CD set you still need to make sure the disc number fields are set correctly or all empty.

Maybe you are looking for

  • Tax calculation in R3, msg when creating SC

    Hi All, We are in SRM 4.0 , Extended classic scenario. We have taxwre in R3 and we have configured our SRM system as per the configuration guide. Now While creating SC we are getting a message as " You are not allowed to enter a tax jurisdiction code

  • IPhoto won't launch! And yes I've updated everything.

    iPhoto won't work all of a sudden this week. When I try to launch it, the rainbow wheel just hangs there forever, and the grey and white background of iPhoto (minus all the photos) hangs there uselessly behind it. It worked just last week!  I tried i

  • Please rank in terms of file transfer speed between FW800 external HDs

    Hello, I have two triple interface (FW400/FW800/USB2) 1000GB external hard drives. My 17inch Macbook Pro has 1xFW800 and 1xFW400. Please rank the following in terms of speed of transferring files directly between the external hard discs: 1. Connect o

  • Re: Help in editing website

    Hi, I recently created an ecommerce website with oscommerce and I want to do some drastic graphic desgin and coding improvements via Dreamweaver. How can I do this via the Dreamweaver Interface? If someone could guide me on how I can import it into D

  • Complaining to Mac

    Can anyone let me know how to complain to Mac? I have had a reconditioned Macbook for a month and have had to take it back to the store twice already. The first time i took the machine back the "genius" managed to misdiagnose the issue and so I had t