Compare CSV - exclude if changed from this to that

I am using the Compare-object command to compare a CSV file.  I am successfully using this to find the difference between two csv files: 
compare-object $yesterdays $todays -Property EMPLID,GROUP_NAME -PassThru|?{$_.SideIndicator -eq '=>'}|
?{$_.GROUP_Name -eq 'FacStaffStudents14Spring' -or $_.GROUP_Name -eq 'Students14Spring'} | select * -ExcludeProperty MIDDLE_INITIAL,SideIndicator| Export-Csv $getquota -NoTypeInformation
How would I also exclude entries if they got changed from group name FacStaffStudent14Spring to Students14Spring or vice versa?

This question was actually answerable.  I was able to get it figured out on another forum.
compare-object $yesterdays $todays -Property EMPLID,GROUP_NAME -PassThru | Group EmplId |
Foreach {
New-Object PSObject -Property @{
New = $_.Group | ?{ $_.SideIndicator -eq '=>' }| ?{$_.GROUP_Name -eq $FacStaffStudents -or $_.GROUP_Name -eq $Students}
Old = $_.Group | ?{ $_.SideIndicator -eq '<=' }| ?{$_.GROUP_Name -eq $FacStaffStudents -or $_.GROUP_Name -eq $Students}
} |
Where {
$hasChangedFromFacultyToStudent = $_.Old.Group_Name -eq $FacStaffStudents -and $_.New.Group_Name -eq $Students
$hasChangedFromStudentToFaculty = $_.Old.Group_Name -eq $Students -and $_.New.Group_Name -eq $FacStaffStudents
return -Not($hasChangedFromFacultyToStudent -or $hasChangedFromStudentToFaculty)
} |
Select -ExpandProperty New | ForEach-Object { $_.PURSE = "5"; $_ }|
Select * -ExcludeProperty MIDDLE_INITIAL,SideIndicator | Export-Csv $give -NoTypeInformation

Similar Messages

  • ADG is not picking up changes from this getter

    My ADG is not picking up changes from this getter, is it because the whole class needs to implement IEventDispatcher ?
    <mx:AdvancedDataGridColumn headerText="Delete" dataField="reviewDate" visible="{userModel.loggedInUser.deleteReview}" id="deleteColumn">
    UserModel.as
        [Bindable(event="propertyChange")]
            public function get loggedInUser():User
                return _LoggedInUser;
        public function set loggedInUser(value:User):void
                _LoggedInUser = value;
                //loggedInUserModified.dispatch();
                eventDispatcher.dispatchEvent (new Event ("propertyChange"));

    Hi ,
    This is due to the query cache not getting updated for portal
    view this problem can be solved by only refreshing the query
    and u can get the help of basis people if there are anyother
    way for this .
    Assigning points is the way of saying thanks in SDN
    Regards ,
    Subash Balakrishnan

  • Hello.  I just upgraded to Lion OS X 10.7.3.  I was previously running 10.5.7 which included the ENTOURAGE application.  how do I retrieve needed information from this application that no longer runs on this new system?

    Hello.  I just upgraded to Lion OS X 10.7.3.  I was previously running 10.5.7 which included the ENTOURAGE application.  how do I retrieve needed information from this application that no longer runs on this new system?

    The file you'll be looking for that has most of what you're looking for - messages, address book, etc. is the Entourage Database.  The verison of Microsoft Office I run (on Lion) is Office 2008.  By default the Entourage Database for this verison is at user/Documents/Microsoft User Data/Office 2008 Identities/Main Identity/Database.  That folder (Main Identitty) also has your rules, signatures, and such.  You'll have to recover this file from whatever backup you have.  If you have a different version of Entourage, the file location will be a little diffferent.
    Good luck
    srb

  • My event is saying background activities are running even though they aren't- it wont let me import clips to that event or make a multicam clip.  what should i do? ( i had deleted some clips from this event that were elsewhere)

    Some clips somehow showed up in one of my events that belonged elsewhere.  I deleted them from this event.  Now it says background activities are running and wont let me import a file to start a multicam clip.
    Thanks

    Some clips somehow showed up in one of my events that belonged elsewhere.  I deleted them from this event.  Now it says background activities are running and wont let me import a file to start a multicam clip.
    Thanks

  • How can I change my rating from "this helped me" to "this solved my problem"

    how can I change my rating from "this helped me" to "this solved my problem"

    You can't change from "this helped me" to "this solved my problem". Once you make the selection, it is written in stone - in a manner of speaking. There is no way to edit it.

  • Exclude QI stocks from MRP

    Dear Experts,
    We have a change requirement where we want to exclude QI stocks from MRP.  That is, exclude QI as available stocks at all areas.  There are a lot of existing stocks for a lot of materials already that are in QI.  Is there any way we can configure MRP to exclude QI stocks?
    Thanks All!

    Manoj,
    The only kind of stocks that can be excluded by config from being considered by MRP are
    Stock in Transfer
    Blocked stock
    Restricted use stock (batches)
    You can select/deselect these in OPPI
    Unfortunately, none of these automatically have a 1 to 1 link with QI stock.  If you performed a transaction to change your QI stocks to one of the above categories, then it could be excluded from MRP.  You also could have some additional options if you are using MRP areas, and all the QI stock is in its own MRP area.
    Quality stock can also be excluded from ATP processing, in OVZ9.  However, this has no impact on MRP.
    It is generally considered unwise to exclude QI stock from MRP processing unless you know the parts will be rejected as unsuitable.  Any other inspection results will cause MRP to become unstable over time.  Consider the following scenario:
    Open PO 100, open SO 100.  MRP is balanced.
    Receive the PO into QI stock.  If this stock were made to be unavailable, then you have 0 stock available, and 100 pc open SO.  Next MRP run will determine a shortage, and will generate another purchase req.  Someone may actually convert the PR to a PO and submit to a vendor.
    Now, the Quality dept completes their inspection, and the QI stock is transferred to unrestricted and available.  Now we have 100 pcs stock, 100 pcs open PR or PO, and 100 pc rqment for SO.  Next MRP run will determine an overcoverage and will suggest cancellation of the PR/PO.
    Rgds,
    DB49

  • Change from regular license to student license

    Dear Community, dear Adobe!
    Last year, I got invited by Adobe to the "Random Acts of Creativity". that Invitation included a free 3-month license for the creative cloud.
    When I now check my Adobe ID, the account owner is "Peter Griffith" (which is obviously not me) and he holds the license for my creative cloud.
    This license is running out in 2 days and what I want to do is change from this regulart license (which is 70 € a month) to a students license, as I am a student. Where and how can I change this?
    I know, it's a kind of specialized problem but I couldn't find it in the support area and there's also no option to ask directly in a chat or give a call so I'm goona try it here!
    Thanks for your help,
    Daniel

    Cancel what you have
    -cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    Then start fresh with education
    Adobe Education... Start here https://creative.adobe.com/join/edu
    Education Plan https://creative.adobe.com/plans?plan=edu
    One Year Intro Price http://forums.adobe.com/thread/1448933?tstart=0
    http://www.adobe.com/products/creativecloud/students.edu.html
    http://www.adobe.com/education/students/student-eligibility-guide.edu.html
    ID Proof http://www.adobe.com/store/au_edu/academic_id.html

  • Exclude individual computers from a GPO using WMI Filter

    I understand I can use security settings to Deny Apply Group Policy to certain users thus excluding them from a GPO, but I'm wondering if I can use a WMI filter to exclude certain computers from a GPO that contains only Computer Configuration policies.
    Root\CimV2; select Name from Win32_ComputerSystem where (Name <> "COMPNAME")
    This would evaluate to True on all except the COMPNAME computer and therefore should exclude the COMPNAME computer.  Could this be expanded to exclude a second computer with: Or Name <> "COMP2" ?
    Is this correct?  Has anyone else gotten this to work?

    Am 16.09.2014 um 21:20 schrieb john1519:
    > Root\CimV2; select Name from Win32_ComputerSystem where (Name <> "COMPNAME")
    select Name from Win32_ComputerSystem where (Name <> "COMPNAME1" and
    Name <> "COMPNAME2" [...])
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Changing From /faces/*

    I would like to change the url pattern for defining what pages are javaserver faces. I would like to use:
    <url-pattern>*.jsf</url-pattern>
    I changed from /faces/* to that in my web.xml but when I try to access my page it says dx.jsp not found. I restarted the server and the name of the file is changed to dx.jsf.
    Anyone know what else I need to change or what I did wrong?
    Thanks

    The problem that I was having was that I changed the actual file to mypage.jsf, with the <url-pattern>*.jsf</url-pattern>. This pattern actually maps the url with mypage.jsf -> mypage.jsp.

  • Excluding Shared members from calculations

    Hi,How can I exclude shared members from calculations so that shared members are not calculated twice?Regards

    Hi Mayank,
    Try *SELECT
    *SELECT(%H%,"[ID]",HR_ACCOUNT,"[ID]<>Shift,Education_Assist")
    *XDIM_MEMBERSET HR_ACCOUNT=%H%
    Vadim
    P.S. Or:
    *SELECT(%H%,"[ID]",HR_ACCOUNT,"[ID]<>Shift AND [ID]<>Education_Assist")
    Both will work
    Message was edited by: Vadim Kalinin - P.S. Added

  • How to Change the PDF's that are generated once the Payment run completes

    Hello All,
    After the Payment run completes, it creates a bank file, and check registry etc.  Our system also creates a PDF which is sent out to the vendors via email.  I need to make some changes to this PDF that is being generated.  Where can I do this?  The pdf sits in the Business Workplace.   Any ideas?
    Thanks,
    Rashad

    It is not possible to change the PDF manually.
    You need to change the form assigned for payment advice in FBZP settings.
    However, these settings are uniform and across all the vendors.
    You cannot put different rules for different vendors.
    Regards,
    Ravi

  • How to suppress compiler errors without excluding database objects from the "Schema Compare" tool (using VS2013/SSDT)

    Hi,
    In short: How to suppress compiler errors without excluding the object from the "Schema Compare" tool ??
    A bit longer:
    We have a SQL Server 2008 project in Visual Studio 2013 running SQL Server Data Tool.
    An old database, with a lot of history in, has been imported into SSDT and there are many syntax errors preventing the project from compiling/running. An typical error is: "SQL70001: This statement is not recognized in this context".
    Running the "faulty" scripts on the server, executes just fine. I understand that there are syntax errors and they should be rewritten, but it's not gonna happen just like that - it is a slow process over a long period of time.
    I know it is possible to change Build Action to None, but that also exclude the object from appearing in the Schema Compare function/window.
    So - how to ignore some compiler errors and still having the objects to appear when doing "Schema Compare" ??
    Thank you in advance.

    Hi Steven,
    Thanks for your comments.
    Well, it sure does help in the future, but right now i would prefer the other way - to suppress some errors and still allow the scripts to build.
    The thing is that if we "rewrite" the objects into create scripts, then we have a huge test job ahead of us + the database environments (PROD vs DEV and UAT) does not share the same AD or DB users and therefore grants is lost if dropping/creating
    objects, right!
    If you drop a object before creating it, the drop will also drop the roles and grants and since they don't share user table, the create will not be able to add the permissions again. There might be a solution to that, but it is going to be very complicated
    for some newbies like us. We need something we can trust.
    BR
    Peter

  • Changing from ODBC .csv datasource to another ODBC datasource?

    I have 64 reports that I wish to change from using .csv as a datasource to using ODBC to hit our proprietary database.  I can get the ODBC working with our database and create new reports, but it's been less than obvious as to how to reset the datasource without losing all the fields in the report. It's key that these reports retain their precise position for some of the data, so I can't just re-create them (nor do I have time to do so).  What order do I need to do things in to make this work such that I can map the new fields to the old field names without losing the fields positions in the reports?

    Thank you - I've tried that and have worked a lot with Set Datasource Location when the field names map one to one, but this is not the case.
    My goal is to use logicals to pass the database locations and I can do that if I can use this proprietary ODBC driver; it's just not working when I re-map - I'm getting an error. I'm continuing to work on this; if I come up with an answer to my own question I'll post it.

  • When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?

    When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?
    I need to be able to send it to a PC in order to print it.

    Hard to say what is happening without examining the file.
    If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
    Peter
    ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version.

  • Hi Apple Team, I would like to change the iCloud account on my iPhone, however it says I must 'delete the account' before doing so? Does this mean that I delete the entire existing account, or just delete it from my phone specifically?

    Hi Apple Team, I would like to change the iCloud account on my iPhone, however it says I must 'delete the account' before doing so? Does this mean that I delete the entire existing account, or just delete it from my phone specifically?

    From the iPhone only.

Maybe you are looking for

  • App upgrade or download gives me error.

    I have a Blackberry 8520 Curve, it worked fine for me for more than a year now. But now everything sucks because no app works anymore after i download or upgrade. I get a "App verify error" on all the apps i've upgraded and/or downloaded. Firstly i r

  • Is it possible to Manage Sun Fire v60 without using Red Hat?

    I've been trying to enable a console connection via an Avocent dongle connected to the serial port using these directions: http://download.oracle.com/docs/cd/E19088-01/v65x.srvr/817-2025-13/chap2.html All I've been able to view is the BIOS output, an

  • Change Log for Production Order

    Hello Gurus, I have a requirement where the production order scheduled finish date should not be changed in the BW reporting though it changes in the R/3. For the same. I need to know if there is any way i can get to know if there were any changes to

  • FW CS3 vs. PS CS3

    I have used FW & DW for years & I have found FW to be a great easy way to work with web graphics. Several years ago I bought PS CS just to learn what it was about. I found the Image Ready software to be very difficult to learn & a very poor alternati

  • HT3805 Aperture crashes Mac on import

    Every time I import photos to Aperture the programme locks up my Mac completely and I have to restart. I have tried repairing permissions, deleting the plist files, repairing the library and rebuilding the library - no difference. I am using the late