Dates of Price Changes per Article

Hi,
I have a table with the following columns:
Date
ArticleID
OriginalPrice
NowPrice
PriceReduction
I'd like to create calculated columns as follows:
the date of last/first price reduction per ArticleID
the date of lowest/highest NowPrice per ArticleID
the number of price changes (i.e. different price reductions) per ArticleID
I could create calculated columns to calculate lowest/highest NowPrice per ArticleID. But I don't know how to solve the questions above.
I enclose a dropbox link to an example Excel 2013 file:
PP_PriceChange.xlsx
Thank you for any advice!
Chiemo

Hello Greg2178,
thank you for your advice and for providing the updated workbook. The allexcept() function is indeed very interesting and helpful.
I am still a newbie with powerpivot and learn day by day and challenge by challenge.
I checked the measures and some are unfortunately not working as expected.
In order to make it more obvious what I am looking for I repeat the core table columns of table1:
Date      ArticleID   OriginalPrice   NowPrice  PriceReduction
11/1      1001         100              
50              -50%
11/26    1001         100               50              -50%
11/27    1001         100               50              -50%
11/29    1001         100               50              -50%
11/1      1002          50                40             
-20%
11/26    1002          50                30             
-40%
11/27    1002          50                20             
-60%
11/29    1002          50                25             
-50%
11/1      1003          20               
30              +50%
11/26    1003          20                20                 
0%
11/27    1003          20                10              
-50%
11/29    1003          20                20                 
0%
Let me concentrate on the biggest challenges for me:
Number of Price Changes (compared to original or previous price) per ArticleID:
the correct answer for article 1001 would be = 1, for 1002 = 4, for 1003 = 4
formula provided in your workbook gives 4 price changes for any article
I would think to solve this by 3 different steps, i.e. calculated columns:
Step1: Calculate the previous price reduction. Unfortunately the following formula does not work (I think because of the Max() function; see column "FormerPriceReduction" in  updated model):
=CALCULATE(MAX(Table1[PriceReduction]);FILTER(Table1; EARLIER(Table1[ArticleID])=Table1[ArticleID] && EARLIER(Table1[Date])>Table1[Date]))
Step2: Check if current price reduction differs from previous price reduction; if yes = 1, if no = 0; formula:
=IF([PriceReduction]-[FormerPriceReduction]<>0;1;0)
Step3: Sum of all changes under Step2 = number of price changes. Formula:
=CALCULATE(SUM([PriceChange=1]);FILTER(Table1;Table1[ArticleID]=EARLIER(Table1[ArticleID])))
Please see updated excel workbook : https://www.dropbox.com/s/g075xhhbo7jyttw/PP_PriceChangeUpdate.xlsx?dl=0
Date of Last Price Reduction (i.e. date of last price change) per ArticleID:
The correct answer would be for article 1001 = 11/01, for 1002 = 11/29, for 1003 = 11/29
The formula provided delivers for 1001 = 11/29, for 1002 = 11/29 and for 1003 = 11/27
I would think that the use of the correct formula from Step1 above could be a starting point for getting the correct answer
(First) Date of Lowest Price:
The correct answer would be for article 1001 = 11/01, for 1002 = 11/27, for 1003 = 11/27
I think the formula provided gets the wrong results because it relates to the column „MinNowPrice“ which lists for each date the all time lowest price
Do you have any ideas to solve this problem?
Sorry that I cannot contribute much to the solution. I hope you can give me some more hints.
Thank you very much
Chiemo

Similar Messages

  • How can i get the pulish data for Price change?

    From the rpm-1205-og.pdf document, the RegularPriceChangePublishBatch Batch can formats and stages output of regular price change price events.
    but I can't get data from rpm_price_publish_stage table after I run the batch.
    if I want generate data into rpm_price_publish_stage, how can I do?
    Please help me. thanks.
    Daniel

    Message was edited by:
    user616568

  • Mass price change for articles using VKP5

    Hi All,
    I have came across a requirement where I need to create price calculation for articles in mass using VKP5 transaction. What are the ways I can achieve this? e.g. BDC, LSMW , BAPI etc.
    Thanks
    Ashutosh

    Hi Jay,
    Thanks a lot for your valuable reply, let me give you an overview of the requirement, we have around 16K articles for which we need to create price calculation using VKP5 which usually created the pricing document. is this BAPI can be used for the same functionality? do you have an idea how to implement this BAPI if it serves the required purpose.
    Thanks for your inputs
    Ashutosh

  • Price change report

    Hi!
    Do we have any standard report on sales price and purchase price change in article mater?
    regards
    archana

    Dear ,
    I thnk it is for MR21/MR22.
    Not for the Sales Price Chnages..
    Regards
    Biswajit

  • Is there any User Exit or BADI- Where LTAP-WDATU is as change parameter ,So during or after Transfer order creation GR date would be as per given logic not as current date

    Dear All,
    There is a requirement in which when the material (Not batch managed) is getting return from Non WM managed storage location to WM managed storage location than at the time of creating transfer order or after creation of transfer order would like to change LTAP-WDATU (GR date) automatically , So here i am unable to find the right user exit or BADI in which i can write the logic for same. Below is full description of the requirement.
    Here we are following Removal strategy "FIFO" while picking the material (Not batch managed) from WM managed storage location (WMS1) & transferring to Non WM managed storage location (ODS) ( than from there it use to go to Production) , at certain times partial quantity use to come back from Non WM managed storage location (ODS) to WM managed storage location (WMS1) and while doing putaway of the same "GR date" use to change which was not the actual when the material 1st time comes to WM managed storage location (WMS1) (before getting transfer to Non WM managed storage location). So here i want the user exit or BADI in which i can write my logic so that GR date ( LTAP-WDATU) would automatically change while creating transfer order or after creation of transfer order as per the "GR date" of same material which last moved from WM managed Storage location (WMS1) to Non WM managed storage location(ODS) because as per FIFO material dated before that would not be exist in the warehouse.
    Below is the flow of the material while transferring to production & returning from production.
    WMS1 ( WM managed warehouse ) --> ODS ( Non WM managed warehouse) --> Production  At the time of issue to production
    Production --> ODS ( Non WM managed warehouse) --> WMS1 ( WM managed warehouse ) At the time of return from production
    I hope i m clear on my requirement.
    Thanks in advance.

    1. You have to get a key from SAP to modify the two includes in which the user exits are present.
    2. You have to enter statement 'INCLUDE z**. ' in both user exits in the MV45* includes. Then save and activate the MV45** includes.
    3. You have to figure out the code that carries out the functionality described in your specifications.
    3. Write the code in includes Z** .
    4. Now the code written by you will be executed when you run the relevant SD transaction
    Message was edited by: Sudhir Bhate

  • PO price change date

    Hello,
    Is there a field in the PO where the date of the last update of pricing elements is saved? In my case, if there is a price change and the user modifies the price, the date of this change is required to be stored somewhere for further processing.
    Thanks.
    R.

    So if I want to retrieve this info by some ABAP code, I have to read tables CDPOS then CDHDR with the appropriate keys, right? I think this is not the best way in terms of performance.
    R.

  • Price change report for  a given date range in inforecords

    hi,
    Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or  fuction module.

    Hi,
    If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
    Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
    Hope, this helps!
    S. Siva

  • Price Change for Consignment

    Hi guys,
    I have a situation where by there is a price change during a consignment process.
    *_17/11/2010-Consingment Fill Up_                                                                
    Material A-100 Unit                                        
    Price $15                                                  
    *_20/11/2010-Consignment Fill Up_
    Material A-100 Unit
    Price $20
    How do I configure the system that, when I do a consignment Issue for 150 Unit on the 25/11/2010, I should invoice as:
    Price as on the 17/11/2010 is 100*$15 = $1500
    Price as on the 20/11/2010 for the remaing 50 units is 50*$20 = $1000
    So total to be invoice in the consignment issue is $2500
    Is this possible?
    Edited by: Saravanand Naiker on Nov 16, 2010 10:09 PM

    hi,
    i understood your question:
    as per standard functionality provided by SAP this might not be possible by taking one single material:
    1. if you are using batch management implement LIFO strategy for your requriment.
    2. other wise this goes to development part.
    take pricing date into consideration VBKD-PRSDT & go back and check if any materials exists with previous pricing date if exists.
    system has to inform you to take that materials first.
    3. in simple terms create two materials for the same and process.
    regards,
    balajia

  • CO88-Error :Perform the planned price change for material

    Hi Experts,
    While running CO88 i get this error. "Perform the planned price change for material ". My material is manage at S and it doesn't have any marked cost. The status is FR and no other status on cost etimate for the article are active. what i shoul do? why if i run the PP order with KO88 i don't have any error?
    Please help i'm facing the closing period.

    Hi,
    If dynamic price change is active in your system the first posting in the new period of this material tries to
    - release a future cost estimate of that period OR
    - change the price to the future price in accounting view
       (if the future price date is reached)
    Unfortunately this dynamic price change does not work in order settlement. Therefore you are asked to perform the price change first by t-code CKME (or CK24).
    If you are using price determination control 3, any price change or release should always be the first transaction in a new period to avoid any inconsistencies.
    The dynamic price release will only release the price with transactions which involve material movement and this is not the case by posting invoices and order settlements.
    if you are in period 12/2009 then a settlement in 12/2009 does not require the release cost estimate of 01/2010.
    But if you are already in 01/2010 therefore settlement in 12/2009 is a posting into the previous period. This will change also data of the current period. Therefore the cost estimate has to be released first.
    Another option, if you don't want to receive this message, would be to change this message from Error to Warning (check note 434752).
    Please follow the following steps:
    T-CD:OMRM
    Message M8 394
    =>you set the message type to '-' for error message M8394, that means no message is to be issued.
    regards
    Waman

  • Date of Price Determination

    Hi ,,
    Can any one explain me ,,if you select date of price determination as "GR date".. what exctly this price determination takes place.
    As per my understanding ,, it will pick the latest price available in purchase order at the time of GR .,,  ie,,, if the price changed later,, while doing GR  system will determine the last price on the date of GR..
    I would like know what actualy the system does if the price determination miantainted as any one of the below options,,in vendor master or in Info record,,or in Purchase order.
    Date of Price Determination
    1)Purchase Order Date
    2)Delivery Date
    3)Current Date
    4)Manual
    5)GR Date
    I am not find any help on this ,,plz suggest me if you know some thing.
    HI Stephen,,
    Could you please respond on this issue.
    Thanking you in advance.
    Regards,
    Sudhakar babu.

    Hi shakir,
    As per your example... in the PO price determination is maintained as "GR" date... it means while doing goods receipt in Feb,,, system will determine the price as 20 and Gr/ir will be posted for that ..
    While posting invoice in march, system will determine the price from GR and post  20 to Vendor A/C.
    Is this correct?
    If price determination maintained as other options like ,,, current date ,,,in which price system will capture ,,,while doing GR ,, and invoice posting.
    Any help regarding  complete functionality of each of the price determination dates.
    please give some link if possible.
    Thanking you,
    sudhakar

  • Price List per Document Line

    Hi all,
    Is it possible to select Price list per Document Line, instead of Document?
    Thanks in Advance

    Hi,
    The price list can be selected as per BP and also as per items. In SAP-B1 the prices in the marketing documents are considered from the Price list defined in Business Partner Master data.
    It is not possible to assign a specific price list for particular warehouse.As a work around what you can do is define a price list named Warehouse and maintain the prices of all items.
    When you are creating a marketing document select the particular price list by going to Form settings,Documents tab.The price of the item will be changed automatically
    Regards
    Vikas
    SAP Business One Forums Team
    Edited by: Vikas Rastogi on Feb 10, 2009 4:58 PM

  • MR21 price change for actual cost of inventory

    Hi
    Material ledger is not active. We have four FERT materials and four production orders in April 2011. Material inventory is on standard price. We want closing inventory at actual value. I have tried to change the price via MR21 but system is not allowing me to change price because cost estimate is exist.
    Actual production order cost divided by actual production = actual cost per unit.
    I want to use this price in MR21 to re-valuate the inventory in current month.
    hope clear.
    regards

    Hi Imdad
    Here is a workaround which I used many times
    a. Create a New Costing variant, with Costing Type = Release to Prices other than Std Cost
    b. The Valuation Variant settings must be as below
    For Materials - Strategy J (Price as per Price Control as of Last Period)
    For Activity prices - Actual Price of Previous Period
    c. At month end, once you calculate Actual Activity price, you can create a Costing Run in Ck40N
    The Costing date can be 01.Apr.2011, if you are running the Cost Estimate for March 2011
    d. The price calculated to be stored in Plan price 2 field of the Material Master or Tax price field
    You can get a comparison of original Std cost and the revised std cost.... If need be, you can pass a JV in FI for the Stock (x) Revised price - Original Std price
    5. If need be, you can also revaluate the COGS in COPA using this std cost estimate

  • GL account for Unit Price changes A/R Invoice

    Hi,
    I need to know where the GL accounts are determined for Item unit price changes. My problem is as below:
    I have a delivery created for 2 material items. After creating the delivery, we want to reduce the unit price from 2600 (default) to 2500 per unit. ( this is without going into the discount column) as we wnat to reflect the same in the deliver note printout.
    When this is copied to an A/R invoice and then and we try to add this, an error is generated saying "GL accout missing".
    Can any one help to tell me which account this is exactly and where this is entered. we are using SAP B1 2005 PL50.
    Thanks in Advance !

    Hi Nirushad.......
    Its in Administration> Setup> Financials> GL Account Determination> Inventory Tab--> Price Difference account.
    First check the Set GL Method of what
    For checking this go to Administration--> System Initialization > General Setting> Inventory Tab and Set GL Method
    If its Warehouse wise then go to warehouse where transaction is happening and put the Price Diff. Acct in accounting Tab
    If its ItemGroup wise then go to ItemGroup where transaction is happening and put the Price Diff. Acct in accounting Tab
    If its Item Level wise then go to Item Master Data where transaction is happening and put the Price Diff. Acct in Inventory Tab
    Regards,
    Rahul

  • Purchase order price change report

    Hello
    How to retieve the purchase order price change report ? do we have any standard report for it or any table which gives these data?
    kindl

    HI
    Have you activate version management at your end for PO,i think this will help you to track changes of PO for qty,price etc.
    [http://wiki.sdn.sap.com/wiki/display/ERPLO/Version+Management]
    Regards
    Kailas Ugale

  • In Lookout, how can I make the equivalent of a "4 changes per day" set-back thermostat?

    Ok... I need some help here....
    I have a Pot_TSP (Temperature setpoint) that uses a PLC register as its remote source. I added a night-time temperature setback feature by adding a "DAYTIME" expression as a permissive, and tying two new Pots (Pot_SP1 and Pot_SP2) to Pot_TSP's "reset value" :       NIF(Expression_Daytime, Pot_SP1, Pot_SP2). 
    Client now wants this increased to 4 optional temp changes per day, just like a household 7-day programmable T-stat. Adding the additional conditions to the "reset" parameter was easy; one extra TimeOfDay timer for each temperature Setpoint change, arranged as "OR" functions. Each time the clock hits one of these TOD targets, Pot_TSP gets "reset" and the "reset value" gets written to it. Here's where I start to bog down... How do you arrange this so that when one of the 4 TOD targets goes "true", its corresponding SP value gets written to Pot_TSP? The closest I've been able to get is this: make a new Pot (Pot_X) with a min of 1 and a max of 4 and use a NCHOOSE to select which of the 4 Temp setpoint Pots Pot_X will use as the (next) SP. If I rotate Pot_X and the clock hits a TOD target, a value corresponding to the selected Pot gets written to Pot_TSP. 
    So can someone please tell me how to get Pot_X to align itself with the TOD events? I can get a limping model if I slave the NCHOOSE function to a Counter object, but if the customer has Lookout turned off or disconnected long enough to miss one of the events, Pot_X will go out of sync. Same goes for incrementing the Pot object. Can't allow that...
    Since the clock never stops and only hits each TOD once every 24 hours, there would never be more than one of the 4 TOD conditions true at one time... is there a way to build an expression object (or the like) to ultimately produce a numeric (the Pot_TSP value) using the following logic: If TOD1 is true, return Pot_SP_1;  If TOD2 is true, return Pot_SP_2, If TOD3 is true, return Pot_SP_3; If TOD4 is true, return Pot_SP_4   ????
    Thanks guys.
    G

    Hi Ryan
    Thanks again for your input! I'm more comfortable with the DataTable object (now that it's become more familiar), and thanks to you I now have a DataTable constructed for one zone (7 rows for the days-of-the-week, and 16 columns for the variables). Displaying of the cell data, cursor navigation, and reading/writing to the Pots' remote position source (in other words the actual GUI) work just fine. In order to expedite completion of the project for which this DataTable is intended, I am at a point where I am prepared to clone the DataTable 3 times to get 4 zones (that's one panel), then clone that result times the number of panels the site has....but I'd like to run this by you first:
    Unless it's contrary to "best practices", should I do as above, or try to further multiplex the DataTable I already have by adding to it the other three zones? The Table I have now serves one zone; can it be expanded to serve (dare I suggest it) one panel (4 zones)? If you recall, I started out thinking I'd need one dedicated Pot for each variable in each zone (16) times 7 days = 96; using the DataTable, the cursor replaced the d-o-t-w so the number of Pots needed dropped to 16. My point: if I have to make separate DataTable objects for each zone, I also need to make 48 more Pots to serve them (which I'm obviously trying to avoid). Then I have to repeat this times the number of panels on site. I'm guessing that adding 3 more zones to the existing (one zone) DataTable is no problem since there's plenty of room left... 
    But would you add them as columns (to keep the cursor consistent across the zones) or add them as rows (to keep the columns consistent across the zones)? 
    If added as columns, can I avoid making those extra 48 Pots? Can I make my existing 16 Pots read/write to multiple columns, like change the Remote Source for Pot_Temp_SP_1 from "..\DataTable.B" to something like "nchoose(Pot_Zone_Selector,..\DataTable.B,..\DataTable.R)" where columns B and R contain Temperature setpoint values for Zones 1 and 2 respectively?
    If added as rows, I'm guessing I don't have to make those extra 48 Pots. But what's the best way to deal with the cursor? Should I be looking at multiple cursors (one for each zone)?
    I should also point out I've been using only L3 Pots since "normal" Pots won't accept an expression as a remote position source; if I change this to regular Pots coupled with SymbolicLinks, does it change the picture at all?
    ...and I'm using Ver 6.0.2
    Thanks,
    George

Maybe you are looking for

  • IMac + Canon pixma mp 500

    Hi, I cannot get my IMac to connect to my Canon Pixma MP500. I went to the canon site and it says: There is no driver for the OS Version you selected. The driver may be included in your OS or you may not need a driver. And the options my Mac provides

  • Adobe Acrobat Professional 8 - User Manual

    I just upgraded to Adobe Acrobat Professional 8 and looking for a printed manual. Any suggestions on best purchase? Any feedback on the "Adobe Acrobat 8 PDF Bible"?

  • Reg:Error in Test Configure

    Hi Guys,            My sce is File to Rfc while testing in Test Configure in ID it giving error as Interface Determination and Operation Mapping not found but when i was trigger from RWB it Processed sucess,can anyone give me solution for this Error

  • MultiSync/OpenSync - any success stories?

    I've successfully completed the example here, except for the KDE piece, and it was admittedly a nice low-level way of showing the basics. Not exactly what I had in mind, though - I want to sync Evolution with my N70 via Bluetooth. I've built and inst

  • My Blu Ray drive in the lower bay is sometimes not recognized since upgrading to Mountain Lion.

    I have a Mac Pro (2.6 GHz Quad Core Xeon, 6 Gb RAM) that I upgraded to Mountain Lion yesterday.  In the top optical drive bay I have the Apple super drive that came with the machine.  In the lower bay I added a Pioneer Blu Ray burner.  Since upgradin