Convert a sales value to the reference currency with the exchange rate of a specific date

Hi Friends,
I Have 2 Dimensions: Time and Currency
I also have to fact tables, exchange rate and sales
Both fact tables have references to Time and Currency Dimension.
The user want to select using excel the sales in the local currency and the correspondent conversion in the reference currency (the reference currency is fixed) in the selected date.
To obtain the desired exchange date I need a date and a currency. The user select in excel a specific date but the currency must be the current currency in the sales table. I achived something like this in the query editor:
with
MEMBER [Measures].[Current Rate To Euro] AS (
([ISO Currencies].[ISO Curr Code].CurrentMember, [Time].[Date Id].CurrentMember, [Measures].[Exchange Rate To Euro]))
MEMBER [Measures].[Net Sales Euro] AS (
[Measures].[OOH Net Sales Dom Snapshot]/[Measures].[Current Rate To Euro]
SET NE_measures as {[measures].[Net Sales Value Domestic], [Measures].[Exchange Rate To Euro]}
member m_NonEmptyCheck as
Generate
NE_measures
,{Iif([Measures].CurrentMember, [Measures].CurrentMember, NULL)}
).Count = NE_measures.Count
,NON_EMPTY_BEHAVIOR =
{[measures].[Net Sales Value Domestic], [Measures].[Exchange Rate To Euro]}
select {[Measures].[Net Sales Euro], [Measures].[OOH Net Sales Dom Snapshot],[Measures].[Current Rate To Euro]} on 0,
Filter(
{[ISO Currencies].[ISO Curr Code].[ISO Curr Code]}*{[Time].[Date Id].&[2581]*[Customers].[PDU Description].[PDU Description]}
,m_NonEmptyCheck
) on 1
from [DM ISR DEV];
But I don't know how to translate the last select in a calculated measures in order to let the customer only to select this measures in the values area and the time in the filters.
Any comment would be appreciated
Kind Regards

Was not so difficult as I thought, however, it took me several hours to understand how could it work:
with
MEMBER [Measures].[Current Rate To Euro] AS (
([ISO Currencies].[ISO Curr Code].CurrentMember,[Time].[Date Id].CurrentMember, [Measures].[Exchange Rate To Euro]))
MEMBER [Measures].[Net Sales Euro] AS (
SUM([ISO Currencies].[ISO Curr Code].[ISO Curr Code],([Measures].[OOH Net Sales Dom Snapshot]/[Measures].[Current Rate To Euro]))
select {[Measures].[Net Sales Euro], [Measures].[OOH Net Sales Dom Snapshot],[Measures].[Current Rate To Euro]} on 0,
non empty {[Time].[Date Id].&[2580]} -- specific datatime, in my db is the 23 Jan. 2014
*{[Customers].[PDU Description].[PDU Description]} on 1 -- An attribute of the customer hier.
from [DM ISR DEV]
I think all of my confusions come from my Sql background. A calculated member is a member that is resolved by calculating an MDX expression to return a value, not a set, for this reason the key to solve my problem was the SUM function.

Similar Messages

  • Currency Translation with dynamic exchange rates

    Hi Gurus,
    i want to know if its possible to translate currencies
    with dynamic exchange rates. If so how ?
    Example :
    By selecting values from February to April the exchange
    rates should be :
    exRate Feb + exRate Mar + exRate Apr / 3
    corresponding exchange rates for every month / number of month.
    Does anyone have an idea ?
    Thanks alot in advance.
    Ali

    Hi Deepu,
    could you explain in more detail how to do it. The paper
    is not really enough for me
    regards
    ali

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • How to make the Reference field in the in Accounting Tab a required field.

    Hi,
    Can i make the REference field in the Accounting tab required. I want to enter contract number from RE in that field.
    Thank you.
    Rachelle

    Hi,
    Goto t.code OVA2 select A-sales header and then click on procedures in the left--> select the procedure in which you want to incolude this field and new entries the table name is VBAK and field is XBLNR for the reference field in the accouting tab and accordingly assign the status 01 or 02 as per your requirement.
    Then you need to assign the incompletion procedure to the sales document type in VOV8.
    Regards,
    Gopal.

  • I need to populate the Document Currency in the COPA analysis. At the movem

    I need to populate the Document Currency in the COPA analysis. At the movement Overhead reporting is Profitability Analysis Cube in BW. Now they want to Include the document currency in the reporting and they want add the field document currency and currency key. Can any one tell how to create the Document currency in COPA Analysis please. Thank you

    Hi,
    CO-PA will only store values in either operating concern currency or company code currency (if active). The fields FRWAE and KURSF are just for the line item display in transaction KE24 when pressing 'entry/op currency'.  COPA does not store values in the document ccy.
    The 'foreign currency' in the PA line item always contains the currency that was used for the conversion, but does not contain the document currency of the original document. So only in case the document currency was used for the translation of the PA values the foreign currency will  be equal document currency.
    In case of SD documents, CO-PA always uses the document currency as base of the conversion in order to transfer values of statistic condition types consistently.
    In case of FI/MM documents system uses the company code ccy as the base for conversion into operating concern ccy (foreign ccy).
    regards
    Waman

  • Default the opportunity currency at the time of  opportunity creation

    Hello,
    How to default the opportunity currency at the time of opportunity creation. At the time lead conversion it is defaulted according to lead currency but when creating a new lead it is not working fine.
    Thanks
    Subbu

    Hi CRMWise,
    You can use the JoinField Value function for this.
    To default it with the user currency, you can pick the currency from User level.
    For new record creation you can put the validation ion the default value and check the post default check box so once you save the record it will be automatically defaulted.
    For modified record, you can have a workflow with an update action which can again use the Join Field value function, once you will modify the record this workflow will trigger and update the currency field.
    Syntx for JoinFieldValue is
    JoinFieldValue('<User>',[<OwnerId>],'<EMailAddr>')
    Hope you get the point.
    Thanks,
    Mayank

  • Why in September when I purchased a through the Edge program with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended), is no longer valid?!  2 months after getting the Edge device, I go to make a c

    Where is the insurance and original Edge Agreement from September?  No one in Verizon knows. I purchased (rented) a Galaxy S4 through the Edge program, with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended),which is no longer valid!  2 months after getting the Edge device, I go to make a claim and Asurion will not honor it because I am not covered; however, all the order confirmation receipts emailed and physically sent with the device show the addition of insurance when I signed up for the Edge program.  According to Verizon (via live chat with 'Nicole'), this $5 protection plan no longer exists and the order numbers I have on my paperwork (multiple documents) are invalid in the Verizon system.  For over a week, I have spent more than 10 hours on the phone, live chat and in the store trying to get some sort of resolution and the customer service reps just put me on hold or promise to "call me back within 30 minutes after they speak to a supervisor" and (surprise!) they never return my call.  Or they send me to the store to show proof of my documents, but then those associates cannot help either.  Also, the 'Edge Agreement' in my profile has the wrong device (and serial #), wrong payment amounts and no mention of the 'consumer protection plan'  on it, which is listed on the order confirmation sent via email and with the actual Edge device on September 23.  Obviously, there was some sort of glitch or mistake on Verizon's part, but NO ONE WILL EVEN TRY TO ACCEPT THAT FACT!  WHY WON'T ANYONE GET BACK TO ME WITH SOME SORT OF EXPLANATION FOR ANY OF THIS?!  Is it typical for Verizon to do away with a service (i.e., $5.00/month protection) and not inform the customer of this?  And is it company policy to be as unhelpful as possible to a paying customer who needs assistance when there is cleary something wrong on your end?  And finally, am I really suppose to believe that Verizon customer service has no email addresses or fax machines so a customer can send you proof of what is on the receipt you sent and that I have to take more of my time to go to the actual store?!  Finally, does anyone at Verizon even read these messages or even give a F@#k about the customer as long as they keep making money?! 

    RLites22,
    I can understand your concern about the insurance you have on the line. I want to make sure that I put a fresh pair of eyes on your account to find out exactly what is going on. I did send you a Direct Message. Can you please respond back to me in the direct message so we can go over the account specifics. I really hope to hear back from you soon.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • Indicating the reference document inside the main document.

    Hi,
    We have a requirement that indicating the reference document inside the main document.  for.e.g: Indicating the sub manuals inside the main manual. Is this possible in SAP DMS. Please suggest me.
    Thanks & Regards,
    Prasad
    Edited by: RPrasad on Jan 4, 2011 5:59 PM

    Hi Prasad,
    For this you have two options :
    1. Use the field Superior document , here you can assign a superior document to sub-document. Configure in DC10 to document
        type.
    2. Or use Environmrnt -> Document Structure -> Create  , here you can create a docuemnt structure means if user is displaying a docuement or using a document for various business activities then user has to refer a document which is assigned in document structure. When someone uses a document if it has a document structure means must refer the assigned document.
    Hope this will help.
    Regards,
    Ravindra

  • Currency Conversion for Exchange rate type "AS02"

    Hi Experts,
    I am gonna post the most challenging problem (regarding currency conversion) I ever faced in my 1 year of BW Carrier.Kindly provide a solution.
    There are three types of currency to be used in the query for Key Figure 0NET_VALUE (so total 3 Key Figures to be created)
       1.Document currency (may be any currency)
       2.Local Currency (must be EURO)
       3.Global Currency (must be USD)
    From Document currency to Local Currency(EURO) we are using Exchange rate Type "M" (in Conversion Type created in Trans RRC1) [There is no problem in this conversion]
    Problem starts now--->
    From Local Currency(EURO) to Global Currency(USD) we have to use Exchange rate type "AS02" (in conversion type to be created in RRC1)
    but there is a Business requirement  that currency rate should be as per the last day of the entered period;and this logic should work for the range of periods also.
    Example :
    we are executing query for the period 006/2006 (posting Period)
    Last day of this period is 06/30/2006,
    Currency rate would be as per 06/30/2006
    And this currency rate should be same throughout the period 006/2006 in query
    The example was for single period,but logic must be incorporated for the range of the periods.

    Hi..
    There is no corresponding source key figure in the InfoSource for the target key figureof the InfoCube.
    a. A source key figure of the same type can be assigned to the target key figure
    (for example, sales revenue instead of sales quantity revenue).
    If the currencies of both of the key figures are the same, no currency
    translation can take place.
    If the currencies are different, a translation can take place either using a
    currency translation type or by simply assigning a currency.
    The following table provides an overview of possible combinations with different
    currencies in the source and target key figures:
    if Source key figure currency  is fixed , Target key figure currency is variable  then Currency translation (CT)  No CT
    if Source key figure currency  is fixed , Target key figure currency is fixed  then Currency translation (CT)   CT
    if Source key figure currency  is variable , Target key figure currency is fixed then Currency translation (CT)   CT
    if Source key figure currency  is variable  , Target key figure currency is variable  then Currency translation (CT)  CT or assignment
    b. If there is no corresponding source key figure of the same type, then you have
    to fill the key figure for the data target from a routine.
    If the target key figure has a fixed currency, no currency translation is
    carried out. This means that if translation is required, you have to execute
    it in the routine.
    If the target key figure has a variable currency, you also have to assign
    a variable source currency to the routine. Using the F4 help you can
    select a currency from the variable currencies in the communication
    structure. You have two options:
    – You can select a variable currency and assign it.
    – You select a currency translation type and a currency into which you
    wish to translate (‘To’ currency).
    The ‘To’ currency is, by default, the target currency if it is included in the
    communication structure.
    Creating a Routine for Currency Translation:
    If you want to translate currencies in the update even though the currency translation is not
    available for one of the above reasons, you can create a routine. Choose Routine, set the
    Unit Calculation in the Routine and choose Create Routine. In the routine editor you get
    the additional return parameter UNIT, the value of which is used to determine the target
    1.  save the query  and it under role
       see to it is in   :  Restricted and calculated key figures --->   properties of k.f
    2. exeute the query
    3. the currency translation --> by target currency  usd  choose  OK
    conversion type :  MEANTODAY Fixed target currency current date (MT)
    4.  Go back to the query definition by chossing chage query ( global definiton)
    5.  in the context menu for % share sales vouume of incoming orders,  choose properties --> formula collision -->  result form this formula choose OK
    Note that -
      your should alos set the currency translation in the  properties for the  two key figures sales voule EUR , choose properties ---> currency  conversion key :  fixed target currency ,  currrent date ( MT) -->  target currency  : American Dollar .  choose   OK
    <b>The translation key is a combination of different parameters that establish how the exchange rate for the translation is executed.
    The parameters that determine the exchange rate are the source and the target currency, the exchange rate type and the time reference for the translation.</b>
    The source currency is determined from the data record or dynamically from the master data of the specified InfoObject (currency attribute)
    The target currency can either be fixed in the translation key or selected at the time of translation.
    You can also use an InfoObject (currency attribute) to determine the target currency.
    The exchange rate type distinguishes exchange rates that are valid in the same time frame next to each other, for example, the bid rate, ask rate or middle rate. The exchange rate types are stored and can be maintained in a central table (TCURV).
    The time reference for the currency translation can be either fixed or variable
    The fixed time reference can either be a fixed key date that is stored in the translation type, or be determined using the system date when executing the currency translation.
    If the time reference is variable, then the point in time for the exchange rate determination comes from the value of a time characteristic (InfoObject). The reference can, for example, be the end or the start of a fiscal year or a calendar year, a period and a month – or even to the exact day. It can also be determined using a customer-specific InfoObject (for example, trading day).
    Currency translation in the BEx
    When selecting a translation key with a fixed target currency     this currency will be added automatically to the query definition
    Also, you can use translation keys selecting their target currency at the time of translation. These can be applied in two different ways:
    Selection of a specific target currency in the query definition (1)
    Entry by variable (2)
    Dynamic translation keys require input from the InfoCube !
    InfoObject value will be read during query execution
    Examples:
    dynamic time reference (p.eg. 0CALDAY)
          time characteristic
    target currency determined by InfoObject (currency attribute)
         characteristic which contains currency in its attribute table
    the corresponding InfoObject has to be part of the InfoCube
    1.Define the currency attribute in the InfoObject maintenance
    The currency attribute has to be a unit InfoObject of type currency
    The unit InfoObject must be an attribute of the characteristic
    The currency attribute should be filled in the master data table of the corresponding InfoObject (manual maintenance or upload via InfoSource)
    2.Enter the InfoObject in the translation key maintenance
    Only InfoObjects with a currency attribute can be used in translation keys (p.eg. 0COMP_CODE)
    At the time of currency translation the value for the source currency / target currency is then derived for every record from the master data table of the specified InfoObject
    All values for a query are translated ad hoc (after having executed the query) using a translation key
    Depending on the translation key a fixed target currency will be used for translation or you will be able to select the target currency
    The ad hoc currency translation offers only restricted functionality (selection of translation key and target currency) compared to the currency translation in the query definition
    Do not forget to create your translation keys before starting your work in the Business Explorer Analyzer
    Example:
    You load the following record to your InfoCube:
    Company Code:                1000
    Amount in Source Currency:      500,-
    Source Currency:                FRF
    Target Currency:               ?
    In the Update rules, you are now using a translation key which derives the target currency from the InfoObject 0COMP_CODE. During the Update Process the target currency will then be read for Company Code 1000 from the master date table of 0COMP_CODE.
    With the currency translation in the Business Explorer, the source currency can currently only be determined from the data record.
    Only translation keys with a fixed exchange rate type can be used in the BEx
    Translation keys with a dynamic time reference (from an InfoObject) can only be used in the query definition. It is not possible to fill the InfoObject by a variable !
    Translation keys getting their target currency from a currency attribute can only be selected in the query definition
    When getting the dynamic reference from an InfoObject (p.eg. 0CALDAY) the currency translation will apply to each record read from the database. That means it will use the date in this record for the currency translation.
    When using a variable you will restrict the output of your query to a certain amount of data. For example, you would translate all invoices of March 11 with the translation date March 11
    This means, the requirement “show me all invoices in my cube in group currency, conversion date: 14.07.2001” could not be solved by a variable input for 0CALDAY
    I hope this would help...
    with regards,
    hari

  • Currency Coversion and Exchange Rate Issue

    Hi,
    I have a scenario in query which is related to currency conversion and exchange rates.
    Company Code     Matter Code      Invoice          Invoice date     Amount     
                        Number          (DD/MM/YYYY)
    1001          1111          INV101          01/01/2011     $100
    1001          2222          INV202          05/01/2011     $150     
    1001          3333          INV303          10/01/2011     $200     
    1001          4444          INV404          15/01/2011     $250
    Here , Amount field is in GBP currency by default.
    User gives choice as USD on selection screen and the amount field is converted to USD in output.
    Now, I wonder which day's exchange rate is applied for same ??
    And what steps should I do if I want to apply a particular day's exchange rate ??
    i.e.
    Consider that there are different exchange rates maintained on daily basis.
    For each invoice number (INV101 , INV202.....) There is an invoice date (01/01/2011, 05/01/2011...).
    The corasponding output amount should take that particular date's exchange rate for conversion of currency.
    How to achive same ??
    I have gone through t-code RSCUR for same. Nothing helpful found.
    I have even gone through some documents for currency conversion., but unable to find out such scenario.
    Please help me for same.
    Edited by: Sachdev_Nirav on Aug 5, 2011 11:53 AM

    Sachdev-
    Currency translations are a very complex issue for BW developers. What you need to do is manage a currency translation that is based on the exact 0CALDAY of the transaction. Here are some helpful hints
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/dc43c445-0d01-0010-23a1-ca348ff5f975?quicklink=index&overridelayout=true
    The standard SAP business content includes some standard translations as shown in the article, like these:
    0MEANTODAY Average rate using actual date (0SY-DATUM)
    u2022 0MEANDAILY Average rate using 0CALDAY of the data record
    u2022 0TRA_DATE Average rate using 0TRANS_DATE of the data record
    u2022 0PSTNG_DAT Average rate using 0PSTNG_DATE of the data record
    u2022 0DOC_DATE Average rate using 0DOC_DATE of the data record
    However, you MUST have a translation available in the main SAP Currency translation table (Transaction oB08 ) for the period in question, and you MUST report in the appropriate date. If, for example, you wish to report in an aggregate by 0CALMONTH, for example, the currency translation will need to be associated with 0CALMONTH, and the exchange rate will not calculate on a day by day basis, but on the standard that you set for the month. So, to your users, the data will be 'wrong'.
    A more robust method involves adding a value field to your data soiurce that uses the currency exchange rate in effect as of the day of the transaction. We do this in our data models, to with:
    Mexico Data source:
    Each value field will be available in the document currency(whatever), the company code currency(MXP), and in the corporate currency (USD).
    Good luck ! Most users don't understand the whole issue, and we spend a bit of time explaining it to them.

  • Update the FI document with the PO customer number

    Hi,
    Is it possible to update a header field or item line field of customer of the FI document with the PO customer number or sales document of PO (VBAK-VBELN) at the billing moment. I cannot do by standard substitution because the original field is not saved in the table BSEG or BKPF. 
    Thanks,
    Cecilia

    It can be done via substitution with exit.
    You can configure your exit and then ABAPer can define the code for that exit in the copy of the program RGGBS000 assigned to the substitution in view V_T80D (Transaction SM30)
    In ABAP code you can fetch the values from various tables.
    Regards,
    Gaurav

  • I have a macbook and when I power it on and then select myself as a user...It won't power up. It stays in the white screen with the apple logo. I am online currently under 'guest user'. Is there anything I can do from the keyboard to fix this??? Help!!!

    I have a macbook and when I power it on and then select myself as a user...It won't power up. It stays in the white screen with the apple logo. I am online currently under 'guest user'. Is there anything I can do from the keyboard to fix this??? Help!!!

    Could you specify the model of MacBook and the OS X it's running, please? Some of the advice or references vary along with the system, so this could be helpful to formulate a reply. I've never used a Guest User selection, but do have more than one User.
    If the computer does not have an optical drive, you may be able to boot it into a recovery disk mode or something; in an attempt to see what is wrong and maybe fix it.
    Good luck & happy computing!

  • Please help. I recently upgraded to IOS 8.2 and i realised that all my downloaded videos from itunes have somewhat vanished. I see the cloud sign with the downward arrow. However they won't play, i am being required to DOWNLOAD them again.

    Please help. I recently upgraded to IOS 8.2 and i realised
    that all my downloaded videos from itunes have somewhat vanished. I see the
    cloud sign with the downward arrow. However they won’t play, i am being
    required to DOWNLOAD them again. This is both in my iPhone and Ipad. Is there
    any other way to go around this? As I do not want to download a second time,
    that would cost me more money.

    Hello ogojohn,
    Thank you for using Apple Support Communities.
    The   icon indicates an item that is available for download. This is usually because it has been downloaded previously by the account you are logged in under and will not be charge again for the download. See the following article, while it references iTunes for Mac and not iOS, it is the same. 
    iTunes 12 for Mac: Download previous purchases from the iTunes Store
    Regards,
    Jeff D. 

  • Replace the Glossy Screen with the Matte Screen on a 2008 Macbook Pro?

    Can you replace the Glossy Screen with the Matte Screen on a 2008 Macbook Pro?
    Where would I get a Matte Screen for a reasonable price if I could change it?

    There are a number of issues you should consider before embarking on this project.
    1. If you have a late-2008 unibody MBP, you are undoubtedly aware that there was never any anti-glare option offered for that machine. So there is no anti-glare display that was made to work with it.
    2. If you choose to replace only the LCD panel and not the entire display assembly — which is probably feasible but involves a great deal of painstaking work — you will also need to buy (separately) the aluminum bezel that takes the place of the glossy cover glass panel in models that came equipped with the nonglare screen. The bezel covers and protects the edges of the LCD and the delicate electronic connections there, and hides all that from view.
    3. If you go that route, you will have to make sure that the cabling related to the display you are installing is identical to the cabling related to your original display. This means checking to make sure the cable lengths, connectors and routing both within the display assembly and hinge cover and within the lower case of the computer are all the same.
    4. If you choose to replace the entire display assembly with one that contains a nonglare LCD, you will have the entire, intact glossy display assembly available to sell afterward. If you replace only the LCD panel, the LCD and glass cover panel that you remove will have much less resale value and are likely to be much harder to sell at all, because you won't practically be able to offer any warranty with them and because there are probably far fewer people willing to tackle the fussy, risky display disassembly process than are willing to replace the whole assembly as a unit.
    5. Even if you choose to replace the entire assembly, you will need to verify that the cables dangling from the replacement display assembly are the right lengths and have the right connectors to tie into your lower case properly. Because the assembly will have come from a later MBP model than yours, cable routing and connectors may have changed from one to the other.
    If this all sounds more daunting than you were expecting, you may want to consider just applying a nonglare film to the glass covering your present screen. If you aren't happy with the results, you can fall back on the replacement option.

  • AD user script to populate the IPPHONE attribute with the last 4 digits of the Telephonenumber attribute

    Good Afternoon Scripting Guys. I have a script that I have been working with pretty much all day today and just cant quite get it to play nice. Our objective is to search AD for specific users (say filtering them out with a username that starts with a "T")
    and User account is "Enabled" then grab the last four digits of their phone number (phone number is set up as follows: (800) 123 456 ) then populate the IPPHONE attribute with the last four digits of their phone number. I have read a ton of online
    blogs with users successfully making this happen but it appears that they are all using Quest (as the commands are all Get-qaduser and Set-qaduser). I need something that runs strictly in native Active Directory Module PowerShell on a Windows Server 2008r2
    Domain Controller.  I am also trying to keep it as simple as possible by using a Get command, then piping a Set command.  I have saved the script into a .ps1 file with the logic as follows:
    $SelUsers = Get-ADUser -filter {(SamAccountName -like "t*")} -Properties ipphone,telephonenumber -searchbase "OU=Test Users,OU=Temporary Org,OU=Test_Domain Users,DC=mydomain,DC=com" | where {($_.enabled -eq $True)}
    foreach ($user in $SelUsers)
     {$user.ipphone = $user.telephonenumber(4,$User.telephonenumber.length-4)
     set-aduser -instance $user}
    What is happening is kind of funny, but aggravating at the same time.  When we run the script, it completes with no errors.  When I pull up the properties of a user in the OU, the IP Phone field is populated with the number 8.  If the User
    account did not have a telephone number, the IP Phone field is populated with a -4.  So, apparently, the script is somehow subtracting the "-4" from the number of all of the Telephone Number field's characters.  Basically 12-4 is 8. 
    If there is no telephone number, then 0-4 is -4.  I have run the Get-ADUser portion of the script independently so I know its getting the correct users.  I also know it is populating the IPPHONE attribute but not with the last 4 digits of the telephone
    number.  Can you guys help out and maybe get this to work correctly?  Also, can you add logic to it to the script to delete any value in the IPPHONE field first, then replace it with the last 4 digits of the telephone.
    Any help would be GREATLY appreciated!!!!!  Thanks Guys...
    Lee

    First thing I would do is modify your filtering. This will remove the unneeded piping to the Where-Object cmdlet and also allow us to only return users who already have something in the telephoneNumber field. It is possible this could return all of your
    users, but if you have service accounts, etc. that do not have a telephoneNumber then they will not be included in your results. It's just a little cleaner.
    $SelUsers = Get-ADUser -filter {(SamAccountName -like 't*' -and Enabled -eq $True -and TelephoneNumber -like '*')}
    I suspect you may have a made a mistake when you entered what your phone numbers looks like. I assume that you forgot a final digit. If this is correct, and you have a space in the phone number between the three digits and the final four then you can use
    the split method to grab the last four digits.
    Foreach ($User in $SelUsers) {
    $Number = $User.telephoneNumber.split(' ')[-1]
    Set-ADUser -Identity $User -Replace @{ipPhone=$Number}
    There's no reason to delete what's in the field first because that's part of what the -Replace parameter will do anyway. This should help get you started!

Maybe you are looking for