MDX Calculate minimum price at a higher level of granularity

Hi all!
I can't find my way to calculate the following scenario in SSRS mdx statement: I need to know the "category best price" of a product category at a lower level of granularity. See example below:
Category:         Subcategory:        Price:        
Category Best Price?
Adventure         Bikes                   110            105
Adventure         Kayak                  120            105
Adventure         Running Coat        105            105
Fitness             Training Shoes       80              75
Fitness             T-Shirt                  75              75
I need to undestand how can I build the Calculated Measure to get the "category best price" column! Note that in the real scenario, there are much more values in the rows, so the granularity is much higher. Additionally, the attributes doesn't
belong to the same dimension.
Thanks a ton for your help!

Hi mts_aa,
According to your description, you want to show lowest price of each Category group in each row. Right?
In this scenario, we can generate this column in MDX query level. Please refer the query below:
with member [Measures].[MinChildren]
as
min([Product].[Product Categories].currentmember.parent.children,[Measures].[Price])
select {[Measures].[Price],[Measures].[MinChildren]} on 0,
[Product].[Category].[Category].members*[Product].[Subcategory].[Subcategory].members on 1
from
[MDX]
Also you can do this on report level. You just need to have the records group on Category. Then use the expression below in detail row:
=Min(Fields!Price.Value,"Category")
Reference:
Understanding Groups (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • Cumulation of lower level item prices to higher level items

    Hi,
    We have a specific requirement that we use high-level materials that is not relevant for pricing and lower level items connected to higher-level item that are RA and billing relevant. How do we modify the pricing procedure to cumulate (roll-up) the lower level items to higher level item which is not price relevant but statistical value should be updated at this level for billing purpose.
    We want to achieve this using/modifying only pricing procedure and not via user exit..
    Request SAP experts to provide some inputs to this issue..
    BR/Rajasekhar

    Hi rajsekhar
    But generally if you want to transfer the cost of the sub item to  main item then you can  check the box Cumulative cost in copy control VTFL . But your requirement is quite opposite .So you need to go to assign a New Reqt / Alt calc type  to the cond type , telling that the header item cost which is not relevant for pricing has to be transferred to sub item .So you need to integrate with the ABAP'er to give inputs to him and giving our requirement also
    Regards
    Srinath

  • Summing up the price of the sub items and put it in the Higher level item

    Dear Experts,
            I have got one requirement from my customer.
    The requirement is while creating the Sales order (in VA01), in the line item the customer will enter the Material, Quantity and Higher level item for the line item.In Condition Tab page price and Condition will be entered.
    My requirement is at the time of saving the sales order the price of the lower level items has to be summed up and this price has to be put in condition tab page of the higher level item.
    This is my requirement.Is it possible?if yes please explian me how to do this.
    If anybody not able to understand my question please reply back to me.
    Thanks & Regards,
    Ashok.

    Hi
    Here u need to find user exit that suits ur requirement like user exit that will trigger while saving that sale order and in that user exit u are able to access that tables where all the lower level item prices stored and condition table where price stored. Then u can do sum and update that sum into condition price table. So search for user exit that suits ur requirement.
    Regards,
    KP.

  • Service item not relevant for pricing if used with higher level item catego

    Hi,
    We have a service item e.g S900 with Item category ZTAD.
    This line Item automatically creates a Service Order.
    Requirement is , if this service item is used with an Equipement Item,
    Item 10 --> Equipment
    Item 20 --> Service
    --> There would be price required for the Equipment ( Condition type ZPRO - Mandatory )
    --> System should not ask for the price of Service Item, as it would be inclusive in the Equipmetn charges.
    --> In short if the Service item is used as Sub item with Equipment, it is not relevan for pricing.
    I tried copying ZTAD and creating a new item cateogry which is not relevant for pricing...would that be the correct approach, but facing several issues related to Automatic Service order generation.
    what could be possible ways to achieve above.
    Regards
    Trupti Deulkar

    Hi,
      System will ask the price for  item category TAD bcoz service also chargble,in your case insted of TAD use TANN as free,
       You can define based on your higher level item category  for Ex : OR + Normusage(Blank)Higherlevl item (Blank)= TAN
                                                                       you can config like this  ORNormUsge(Blank)  + TAN = TANN
    like this you can do it this correct way or els you can manually enter the item catagory (TANN) at sale order line item level.
    Thanks
    Vinayak.
    Edited by: vinayak4all on Jul 12, 2011 2:45 PM

  • Manual override option for Unit selling price in Order line level.

    In OM R-12
    Our client wants manual override option for Unit selling price in Order line level.
    But there is no solution available to fulfill this requirment. To be able to manually override the price on a Sales Order line you
    must have defined a manual modifier that qualifies for the Sales Order line in question. Without a suitable manual modifier the price cannot be changed.
    This is current standard functionality.
    Anybody can give some suggestion/workaround to override selling price in Order header level without using the modifiers.
    regards,

    Hi Kashif,
    I'm finding it little difficult to buy Oracle Support's feedback with regards to R12 functionality for direct List Price update without using any modifier (manual or whatever). After all it is Oracle's product and they should know better. But test results in Solution Beacon's Vision 12.0.6 instance (http://www.solutionbeacon.com/tools_r12vision.htm) and documentation updates in R12 (R12.0.4) OM user guide & implementation manuals potray a different picture.
    After your last post, I did a test in Solution Beacon's Vision 12.0.6 instance with following details:
    OM: List Price Override Privilege = "Unlimited Access" at user level
    OM: Discounting Privileges = "None" at user level
    No manual modifiers defined and Order status = "Entered"
    I could display the "List Price" field from folder under Line Items >> Main tab, override the list price to a new value and save. The unit selling price showed the new value based on updated List Price as soon as I tabbed out of the list price field after overriding. After saving it showed the new selling price. _Please note that under Line Items >> Pricing tab there is another "List Price" field and that is not editable_. For such overrides "View Adjustments" (from Line >> Actions) will not show any adjustment details as it is a direct update of list price.
    Also please note that, if "Enforce List Price" checkbox is selected for the order type, the list price cannot be overridden even if the profile option is set to "Unlimited Access".
    Document References:
    Oracle® Order Management User's Guide
    Release 12, Part No. B28099-03, September 2007 >> R12.0.4
    Page No. 10-74
    +Note: Note: If any order line for an order has the Calculate Price Flag value equal to Partial Price or Freeze Price new order level adjustments will not be applied or allowed to be overridden. _The profile option OM: List Price Override  Privilege controls your ability to override the unit list price. If you have this profile set to Unlimited, you may modify the unit list price by editing the current value displayed_. The original list price is saved in a hidden folder field, so you can display it if necessary+.
    Page No. 10-94
    User Procedures
    _A new profile option, OM: List Price Override Privilege controls whether or not you can update the List Price_. It is enabled and updated at the application, responsibility and user level. It is not user visible and updatable. The values include+:
    - View Only: This is the default value. If set to this value, the current behavior is retained, which means unit list price field is protected.
    - Unlimited Privilege: If set to this value, you can override the unit list price field from the main tab and immediately see selling price adjusted accordingly.
    To use Override List Price:
    +1. Navigate to the Sales Orders/Quick Sales Orders window.+
    +2. Enter the header and line information, including the ordered item and quantity, then tab to the next field. The Selling Price and List Price display+.
    +3. If the profile is set to Unlimited Privilege, you can enter a new list price in the List Price field. You can either proceed to the next line or save your work+.
    +4. You can see the new, entered list price, and if there are automatic discounts applied, they will be based on the new list price+.
    +5. If the folder has been modified to show the Original List Price, the original list price displays+.
    +6. To change the List Price again, go to the list price field and enter a new value, replacing a previously entered value. If Audit Trail is enabled for List Price and a reason is required, a window appears to enter a reason and optional comments+.
    Note: Subsequent overrides of the List Price, after the order line is saved, can be captured by Audit Trail, depending on the setup of Audit Trail (entered or booked state) and any processing constraints that have been set up.
    In the OM Implementation Manual also there are notes related to this.
    OM Implementation Manual
    Release 12, Part No. B25975-03, September 2007 >> R12.0.4
    You can refer to page no. 2-59, C-4 etc.
    Thanks
    Supro

  • Higher level/consolidation numbers not shown in Excel

    Can not see consolidation numbers at higher level in Excel sheet. They are showing MISSING.
    But data for the certain member combinations are for sure loaded and existing in the cube because we can see them from Excel.
    Any idea about this issue?

    You need to calculate the data if your cue is BSO. So you need to execute the calculation.

  • DI job causing high levels of I/O on database server

    We have a DI job that is loading a sql server 2005 database.  When the facts are loaded itu2019s causingu2019s a high level of I/O on the database server causing the DI job to slow down.  No more than 5 facts are loaded concurrently.  The fact dataflows all have a sql transform to run the select query against the DB, a few query transforms to do lookups to get dimension keys, and all do inserts to the target. The DBA says there are too many DB connections open and DI is not closing them.  My thinking was DI would manage the open connections for lookup, etc and would close then properly when the dataflow is complete. 
    Any thoughts on what else would cause high levels of DB I/O?
    Additional Info:
    - Run the DI job, source and target tables are in SQL Server, and it takes 5 hours.
    - Run the same DI job again, on the same data set, and it takes 12+ hours.  This run will have high levels on DB I/O.
    - But if SQL Server is stopped and restart, the job will again take 5 hours the first time it runs.
    Edited by: Chris Sam on Apr 15, 2009 3:43 PM

    There are a lot of areas of a DI Job that can be tuned for performance, but given the fact that your job runs fine after the database is restarted, it sounds like a problem with the database server and not the Data Integrator job.
    There are a lot of resources out there for dealing with SQL Server disk IO bottlenecks.  As a minimum first step all of them will recommend putting your .mdf and .ldf files on seperate drives and using Raid 10 for the .mdf file.

  • High level and low level grabs

    Hi, I'm looking at different acquisition options. Fast acquisition is a priority as is fast processing. I'm a little confused on high level versus low level. Is there any benefit to which one is used? Or is it 6 one way and 1/2 a dozen the other. Thanks

    If you feel comfortable using the Low Level functions I would personally recommend using them instead of the High Level. Bruce's answer is correct, high level will call low level with standard options selected. If you think of ways to improve the speed of your code, you may want to use low level, my reason is because high level VIs will actually be a function call calling other functions, which introduces a minimum delay, instead, if you use low level you are directly calling the functions for acquisition so there is kind of a small time saving if you think of it as acquisition wise.
    Also, the high level VIs if you check their block diagram it has more structures for error checking, session ID checking, etc., so with low level you have direct control over the acquisitio
    n from your main program without introducing innecessary structures or functions.
    Regards,
    Nestor Sanchez
    IMAQ/Motion Support
    National Instruments
    Nestor
    National Instruments

  • Prices taken for BOm levels

    Hi,
    When we perform the cost roll up process (ck40n) how the prices will be taken in each level for BOM structure.
    Regards
    Mastan Reddy N

    Hi,
          As this is correctly ansered by some of the experts.To add some value , i would like to focus on the basic concept before heading for your solution.
    You must define the costing variant in Customizing for Product Cost Controlling under Cost Object Controlling > Product Cost by Sales Order > Preliminary Costing > Costing Sales Order Items with Product Costing > Costing Variants for Product Costing > Check Costing Variants for Product Costing.
    hope you are done with above settings.
    second You specify in the costing variant whether you want to transfer order BOM cost estimates. Order BOM cost estimates are only transferred if they were created with the same costing variant. You therefore use the same costing variant for sales order costing as for order BOM costing.
    A costing run for multiple order BOM cost estimates that are not linked to each other is not supported.
    If a subordinate assembly in a multilevel BOM for an  order item is changed and costed, this has no effect on the cost estimate of the higher-level assembly. If you change assemblies, you must take organizational steps to ensure that all relevant cost estimates are organized.
    So please make sure you have configured/maintained the same before running your final cost estimates for BOM.
    Regards
    Chandra

  • Order BOM - get material valuation to higher level item

    Hi,
    Is it somehow possible to get the values from condition type VPRS (containing the material valuation price) from underlying items to the top level item of an sales order bom.
    Example
    0010 MATNR A
    0020 MATNR B   higher level item : 0010 / vprs = 100
    0030 MATNR C  higher level item : 0020 / vprs = 200
    --> then we would like to define a condition type ZPRS that contains the sum of the underlying items = 300
    Any suggestions on this ?
    with regards

    Omkar,
    Here you would need to explode the BOM level by level and build the output table in each step. IF you explode the BOM multilevel at the start, you can not achive reverse mapping easily .
    Also I will see even CS11 layput will work for your requirement. If it works, copy e CS11 logic  in Z program and upgrade it for operations.
    check and revrt,
    Santosh Sarda

  • Looking for an API to get calculate the price

    Hi ,
    I am trying to find an API to calculate the Price of an item (Quote)
    This need to find the price considering the Modifier , and qualifiers.
    I have setup up qualifiers on Customer,Price List , Order levels.
    I have tried the below given script , but it is not considering modifiers
    DECLARE
    l_listprice     NUMBER;
    l_bestprice     NUMBER;
    l_status_code     VARCHAR2(2000);
    l_status_text     VARCHAR2(2000);
    l_user_id     NUMBER;
    l_responsibility_id NUMBER;
    l_application_id NUMBER;
    BEGIN
    fnd_client_info.set_org_context ('81');
    SELECT user_id
    INTO l_user_id
    FROM fnd_user
    WHERE user_name = 'USER';
    SELECT responsibility_id
    ,application_id
    INTO l_responsibility_id
    ,l_application_id
    FROM fnd_responsibility_tl
    WHERE responsibility_name = 'IBE_CUSTOMER';
    fnd_global.apps_initialize (l_user_id
    ,l_responsibility_id
    ,l_application_id);
    IBE_PRICE_PVT.GetPrice(
         p_price_list_id     =>          7007
         ,p_party_id => 222
         ,p_cust_account_id => 111
         ,p_model_id          => NULL
         ,p_organization_id     => 123
         ,p_currency_code     => 'USD'
    ,p_inventory_item_id     =>     1222321
    ,p_uom_code          => 'CS'
         --,p_calculate_flag     => 'Y'
         ,p_model_bundle_flag     => NULL
         ,p_request_type_code     => 'ASO'
         ,p_pricing_event     => 'LINE'
    ,x_listprice          => l_listprice
         ,x_bestprice          => l_bestprice
         ,x_status_code     => l_status_code
         ,x_status_text     => l_status_text
    DBMS_OUTPUT.PUT_LINE ( 'l_listprice = '|| l_listprice );
    DBMS_OUTPUT.PUT_LINE ( 'l_bestprice = '|| l_bestprice );
    DBMS_OUTPUT.PUT_LINE ( 'l_status_code = '|| l_status_code );
    DBMS_OUTPUT.PUT_LINE ( 'l_status_text = '|| l_status_text );
    END;
    Edited by: 797959 on 22-Feb-2011 10:08

    I'm not sure I completely follow you with the "privilege".
    To answer your question, yes, you may enhance behaviour of standard services such as CHECKIN_UNIVERSAL via so called "filters". Filters are Java pieces of code, that might be hooked to "filter events" such as validateCheckinData. When a service is being processed, the filter code is triggered on that event automatically.
    However, the checkin services already contain a security check (it calls a Java method from the standard code), and it will do checks like "can this user check in a document with such a security group?" or "does this folder exist?", no extra code needed. So, I'm not sure what your enhancement would do additional.

  • HDMI Audio not working on Q190 (along with all higher level Audio Formats)

    Help, I have been given the run around via support, I cannot get the HDMI audio to work with my Pioneer Surround Sound, only the Intel display audio shows in control panel (Win 8 X64) and the RealteK S/P Dif port and it is not capable of supporting 7.1 sound or bitstreaming or DTS, Dolby HD, Etc. Tec support appears not capable of fixing the issue and wanted to send me to software support and pay. I have only had the machine for 4 days and it has never supported higher level sound.
    Every other device I have (had or currently) connected to the receiver works just fine. I have to figure this out or return the machine, the audio is the most important aspect for me. Besides when you advertise 7.1 support the machine you sell should be able to do it.

    Hey guys,
    I have had this Q190 with the Celeron CPU since last week and I am using XBMC Frodo and the HDMI is connected to my AVR Onkyo TX-NR809 and from the Onkyo to the TV. And the sound is 7.1 with PLIIZ. It works fine. I think it may be some driver problem because Realtek Audio which is in the Q190 works fine with the Win8 preinstalled. Realtek is kind of bad with driver because I lost my wifi after upgrading to Win 8.1. After a few days with no wifi, I found out that the driver was bad, yes it was a Realtek wifi driver but posted by Lenovo for W 8.1.
    I have another friend who also just bought the Q190 and he reported no audio problem so I think it is just a matter of trouble shooting the drive and configuration. I do love the form factor of the Q190.

  • Running a Sub-VI and monitoring data that is generated on a higher level VI

    Hi All, 
    This question must been there before, but I cannot find a suitable answer here on the forums....
    I have a 'top-level' VI that does a lot of things. I also have a sub VI that runs a frequency sweep on a piece of equipment. This is done with a for loop. 
    Problem: 
    I want to monitor/access the data that is generated in the for loop (See attached, the 3 wires within the green circle I want to monitor). 
    2 Questions:
    How can I access the data on the wires (within the loop) from a higher level VI?
    How can I then run this VI in a higher level VI while the higher level VI is continuing and not waiting for the sub-VI to complete?
    I tried using a Que but I cannot seem to get that working. 
    Any suggestions?
    Regards,
    Attachments:
    LV problem.PNG ‏44 KB

    The queue is a good way to move data from a running subVI to another VI.  Your problem is that if the subVI is inside a loop in the main VI, that loop in the main VI cannot iterate until the subVI completes. The solution: have the sub VI running in parallel - not inside - the loop.
    Look at the Producer/Consumer Design Patterns (at File >> New... >> VI >> From Template >> Frameworks >> Design Patterns >> Producer/Consumer.  This may be more than you need at the moment but will show how the parallel code process works.
    Lynn

  • Basic  XML Publisher Question: How to access tags in the higher levels?

    Hi All,
    We have a basic question in XML Publisher.
    We have a xml hierarchy like below:
    <CD_CATALOG>
    <CATALOG>
    <CAT_NAME> CATALOG 1</CAT_NAME>
    <CD>
    <TITLE>TITLE1 </TITLE>
    <ARTIST>ARTIST1 </ARTIST>
    </CD>
    <CD>
    <TITLE> TITLE2</TITLE>
    <ARTIST>ARTIST2 </ARTIST>
    </CD>
    </CATALOG>
    <CATALOG>
    <CAT_NAME> CATALOG 2</CAT_NAME>
    <CD>
    <TITLE>TITLE3 </TITLE>
    <ARTIST>ARTIST3 </ARTIST>
    </CD>
    <CD>
    <TITLE> TITLE4</TITLE>
    <ARTIST>ARTIST4 </ARTIST>
    </CD>
    </CATALOG>
    </CD_CATALOG>
    We need to create a report like below:
    CATALOG_NAME     CD_TITLE     CD_ARTISTCATALOG 1     TITLE1     ARTIST1
    CATALOG 1     TITLE2     ARTIST2
    CATALOG 2     TITLE3     ARTIST3
    CATALOG 2     TITLE4     ARTIST4
    So we have to loop at the level of <CD> using for-each CD. But when we are inside this loop, we cannot access the value of CAT_NAME which is at a higher level.
    How can we solve this?
    Right now, we are using the work-around of set_variable and get_Variable. We are setting the value of CAT_NAME inside an outer loop, and using it inside the inner loop using get_variable.
    Is this the proper way to do this or are there better ways to do this? We are running into troubles when the data is inside tables.

    you can use
    <?../CAT_NAME?>copy past to your template
    <?for-each:CD?> <?../CAT_NAME?> <?TITLE?> <?ARTIST?> <?end for-each?>

  • How do I use acrobat to calculate quantity/price as a form?

    Hello, I am trying to find out how to complete a form in acrobat pro using fields to calculate quantity/prices, ending in the field "TOTAL". This form is designed in illustrator. Here is a picture of the form: http://db.tt/gJsLWngT  Can anyone help me complete to process? If I am taking the wrong approach to this please let me know. I would greatly appreciate it, thank you.

    You need to place text fields as your Quantity and Total columns, 2 in each
    row.
    For example, in the first row you can create: Quantity1 and Total1
    Set up the quantity fields to accept only numbers (under Format).
    The total fields should be set to be read-only, and under Calculate you can
    use the Simple Field Notation to calculate their value.
    In the case of Total1, you can use something like this (for the retail
    price):
    Quantity1 * 35
    The value will be automatically updated whenever the value of Quantity1
    changes.
    For the last total field, use the first calculation option: Value is the
    (sum) of... and then select all the other total fields from the list.
    There are many more things that you can do...
    The tutorials on this website contains a lot of information about forms in
    PDF files:
    http://acrobatusers.com/tutorials

Maybe you are looking for

  • ERROR upload: Error in uploadXMLFiles after upgrading from 10.2.0.4

    After upgrading from 10.2.0.1 to 10.2.0.4 on a newly installed Oracle server, I could not use dbconsole any more. It would not display the login page at http://myserver:1158/em. I tried different browser IE, FireFox, and Chrome. It is the same. Then

  • How to edit/delete album cover art

    A number of my iTunes album covers downloaded from 'Get album artwork' are the wrong ones - either wrong artist or wrong album. But I can't find a way to edit/delete them and replace them with the correct album-art that I have sourced myself. IWhen I

  • RFC Logon screen in SM51

    Hi Basis Consultatnts, Current system: Central Instance/DB Instance - R/3 Enterprise MSSQL server 2000 & ERP 2004 Now, I have installed a Dialog instance, i can log in to the new server and everything is fine, but, here's the problem, once in a while

  • Keyboard Volume Keys Not Working Correctly???

    What is wrong with my Mac Pro. The volume keys on the keyboard used to everything on my computer. Now it only controls system volume functions. When I listen to music or watch videos, I can not control the volume with the keyboard. Why not???

  • EMU 1820M audio dock not reconized

    Hi all I just purchase an EMU 1820 M with a new computer (3200+ AMD) I install the PCI card and the daugther card, update the drivers to the 1.6 and install all the sofwares. But the Audio dock is not reconized and active even if all the lights are w