Question on Measure Calculation

Hello Experts,
I have a report with year, product, State columns and 2 measures payment 1 and payment 2, here i am trying to get national values for payment 1 and payment 2. So basically i want to compare state to national value of both the measures for each year for a product. currently i was trying out duplicating payment 1 measure and adding a filter in that measure by using sql expression option measure formula by year and i am getting an error. Please advise how can i accomplish my task.
Thanks
Edited by: user1146711 on Dec 20, 2011 12:04 PM

Be more specific on what you are trying to achieve. Give examples and some real data in case formatting is consideration. Your post is written as if we are looking over your shoulder. We are not. Try again. Thanks.

Similar Messages

  • How to improve slow PowerPivot performance when adding/modifying measures, calculated columns or Relationships?

    I have been using PowerPivot for a couple of months now and whilst it is extremely quick when pulling in data to populate Pivot Tables, it is extremely slow to make the following kind of changes to the Data Model:
    - Add a Measure / Calculated Field
    - Add a Calculated Column
    - Rename a Calculated Field
    - Re-name a Calculated Column
    - Modify a relationship
    - Change a tables properties
    - Update a table
    In the status bar of excel I get a very quick 'calculating', then it spends a lot of time 'reading data',
    then it 'finalises' after which nothing is in the status bar but it still takes approx. 45 seconds before the program becomes responsive again. This waiting time does not change depending on the action, it is the same if I rename a
    column as it is if I add a new measure.
    My question is what affects performance of these actions and how do I improve it?
    To give you an idea of where my data comes from, I have:
    - 7 tables that feed into the Data Model directly from within the workbook which contains the data model itself. These are a combination of static tables and tables that connect to a MySQL database.
    - 6 separate workbooks which contain static data that is updated manually periodically (copied and pasted from another source)
    - 5 separate workbooks which contain dynamic tables that are linked to our MySQL database and update when opened.
    Now I realise that this is probably where my issue is, however I have no idea how to fix it. You do not seem to be able to connect to a MySQL database directly within the PowerPivot window itself so there is no way to generate and update tables without
    first creating them either in a worksheet or separate workbook (as far as I know).  If I try to create all of the tables directly within the single workbook containing the Data Model I get performance and crashing issues hence why I separate tables into
    individual workbooks.
    Any advice on how to improve performance would be tremendously appreciated. I'm new and keen to learn, I'm aware this set-up is far from best practice.
    Hardware wise I am using:
    - Windows 8 64-bit
    - Excel 2013 64-bit
    - Intel Core i7 processor
    - 6 GB Ram
    Thanks,
    James

    Darren,
    I think the point I was making is its in memory, geez... BTW what do all applications do when they run out of paged memory,  if PowerPivot is using all available memory then wouldn't this force the other applications to use Virtual or essentially write
    back and forth to the disks? I think Virtual memory white to disk ??, lol Also, there are parts if the architecture of Excel 2013 that when importing data into PowerPivot require memory and when working in SharePoint the PowerPivot data is cached to disk
    unless recently refreshed... But this conversation isn't help the James who asked the question and as much as I would love to continue its become a little boring..
    Hi James,
    If you download one the ODBC MySQL Connectors
    http://dev.mysql.com/downloads/connector/odbc/ and I believe yours is the first one for x64 systems and connect directly to the data you should be able to reduce the number of workbooks your opening and if you notice in the following graphic these
    connection are automatically refreshed by default, the parts in red are the differences between PowerPivot 2010 and 2013
    You should notice a lot of improvement especially when refreshing data please let us know how it goes...
    After registering the ODBC Driver
    Click Add. on the User-DSN sheet, choose the “MySQL ODBC 5.x driver”, fill in the credentials, choose a database (from the select menu) and a data source name and you’re done.
    Back in Excel you go on the PowerPivot section of the ribbon and open the PowerPivot window  (the green icon on the left side). In the ‘Home’ section of that window you will see a small gray cylindrical symbol (the international
    symbol for “database”) which will suggest to you different data sources to choose from. Take the one where it says “ODBC”.
    In the next dialog you click on create, choose the adapter, and then Ok. Back in the assistant you can check the connection and proceed.
    Now you have the choice between importing the data from tables using the import assistant or Query depends on your skillset..
    Cheers,
    Ivan
    Ivan Sanders <a href="http://www.linkedin.com/in/iasanders">My LinkedIn </a> , <a href="http://msmvps.com/blogs/ivansanders">My Blog</a>, <a href="http://twitter.com/iasanders"> @iasanders</a>,
    <a href="http://shop.oreilly.com/product/0790145372703.do">BI in SP2013</a>, <a href="http://sharepointdemobuilds.codeplex.com">SP2013 Content Packs</a>.

  • Question about Measure folders Items (dimensions & measures)

    Hi All,
    I have tow question about measure folder
    1-     How can I make measure folder contain both dimensions & measures?
         Like this image http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/r10122/images/d1t10202.gif
    2-     When I create measure folder and add some measures in it, when I query cube these measures still displayed out of folders how can I make all measures and dimensions displayed only on folders like the above image ?
    Regards,
    Gado

    Hi Andy,
    There should be no difference in functionality for these two kinds of folders. You can perform all the operations on these two kinds of folders without any difference, for example, delivery messages, create view settings/rules and etc.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Change the Label of a measured calculation in AWM-Model view

    Hello,
    Is there a way to change the name of a Short or Long Label of a measured calculation in the AWM (Analytic Workspace Manager) without dropping & re-creating it?
    In the Model view it does allow you to make the changes to the label in the text field, and it does prompt you to apply changes. I Selected OK. However when I exit out of the AWM & log back in... I saw the old name back in :). It was like the changes were not "committed".
    Thanks!

    Hi
    Thanks for your help, actually that option works for the total displayed as the latest row, I mean the label for the total row. However, for the total column, the name stays as the same as the measure label.
    Can you further help me on the issue?
    Thanks

  • Thanks for responding to my question. The annwer for your questions are: Measurment time : 300seconds, Sampling Frequency : 2 Hertz, and Window Type : Hanning. Hope you could hint me on this soon.

    Thanks for responding to my question. The annwer for your questions are: Measurment time : 300seconds, Sampling Frequency : 2 Hertz, and Window Type : Hanning. Hope you could hint me on this soon.

    ok, I see you posted parts of your VI in a different location. There is a sub-VI missing though ( Spline Interpolate.vi). But I re-constructed your data and can see the following things:
    1 - Your signal has a significant DC-offset (approximatelly 1000) and this will result in a power value for DC of approximatelly 10E6 (though you wrote 10E8 in your first posting).
    2 - If you ignore that DC, you can see on the time signal that there is another signal at very low frequency (order of magnitude amplitude = 10, power spectrum around bin 1 = 100) and you are not capturing an entire period of that signal, so either a measurement time of 300 seconds is not enough or this is a signal caused by a drift that you want to ignore.
    But overall there is not much sign
    al left once you remove your DC and eventually the very low frequency signal. But given your input signal, the power spectrum looks right. Remember also that the DC component will be replicated (with 6 dB reduction) on bin 1 when you apply a Hanning window. Try eventually without the Hanning window (but you'll still have to ignore your DC bin). Alternatively subtract the dc value from your time signal before computing your power spectrum.

  • How to get the measure total at row level for another measure calculation in DAX?

    Hi There,
    Using DAX, I am trying to get an expression for a calculated measure as follow:
    So basically, I would like to get the AMeasure total highlighted in yellow in the A2Measure calculation:
    Smeasure -(Ameasure total * WMeasure) where Ameasure total is the one highlighted. 
    I think my question would be how to get the total of a measure in order to used in the calculation of another measure.
    Thanks and best regards,
    Joss

    Hi Joss83,
    If you're trying to get the result for [AMeasure] at the total level (i.e. 5.09 in your example) you can do this by creating a version of this measures that is evaluated after ignoring the filters (indirectly or explicitly) placed on
    the 'Customer' and 'Player' columns. You may also need to ignore the filters place on some other tables or columns that must be ignored in order for the correct total to be returned.
    Without knowing much more about your data model, I can only take a vague guess as to what this calculation would look like in your scenario:
    AMeasureTotal:=
    CALCULATE(
    [AMeasure],
    ALL(Customer[Customer]),
    ALL(Player[Player])
    You can read more about the 'ALL' DAX function here:
    http://technet.microsoft.com/en-us/library/ee634802.aspx
    Hope this helps,
    Michael

  • Unit of Measure Calculation in Query

    Hi,
    I have a few calculated keyfigures in my query for example:
    whats happening:
    KEY 1= Standard Price * Qty A = Output in (LBS) Qty unit of measure
    What I want is:
    KEY 1= Standard Price * Qty A = Output in $
    How can i fix that on the query level so that my output is in $
    Thanks
    Edited by: DANIEL GREEN on Jun 12, 2008 2:33 AM

    Hi
    change the target currency and conversion type.
    --- Pravin

  • Measure calculation based on hierarchy

    Hi
    I have flatten an account table to form a hierarchy of 5 levels, each level in this hierarchy will have a flag about account type,
    So what I need now is a calculation which has to dynamically change according to this account flag object.
    For instance, when account flag is u201CEu201D then the calculation should multiplied with minus. But I have 5 levels of hierarchy also with 5 account flags.
    How can I consider these 5 account flags at a time to update the measure, is that possible in Web Intelligence?
    I hope the following example for table structure can help to understand the problem.
    Acct 1     flag1     acct2     flag2     acct3     flag3     acct4     flag4     acct5     flag5     
    AAA     R     AAf     E     AAD     E     AAD     E     VVv     L     
    BBB     R     DDG     E     EFR     R     AAD     L     ERR     R     
    CCC     E     FGF     R     DFS     E     SDD     R     FDF     E     
    I have created the five levels accts and flags as individual objects in universe and using it in the webi report as follows,
    Report:
    Account ( drillable to 5 level)                 Calculate.measure
    AAA                                           545464
    BBB                                          1654546     
    CCC                                           - 4674697
    The above report should work in a way like when I drill down into account for the next level say. Acct2 , then it should check with corresponding flag (flag2 ) for its calculations (whether to add u2013 or + symbol)
    Similarly on entering each level by drilling down, the calculation or formula should behave like above scenario, like it should check the flag and update the calculation
    Is this possible ?
    What kind calculation should I use ?
    Thanks
    Dineshkumar

    Thanks for the your time and response.we don't have a year range column i might need to create one in rpd wondering if there is a way to do it in the analyses directly. I created a year range in the analyses by writing a case statement in one of the year columns. As per your suggestion here i might not be able to use a yer range in the measure denominator By year range.

  • Pivot measure calculation

    Hi
    I have to calculate new column(measure2) in pivot table
    column1 measure1 measure2 (calculation%)
    1 100 (100/100)*100
    2 50 (100/50)*100
    3 25 100/25 ..
    4 10 100/10 ..
    5 5 100/5 ..
    the numerator is always first row's measure (ex:100 from above table)
    Let me know how to achieve this,
    Thanks

    Can you use the logic that you specified in the data model (query) to generate the required data and then use it in the pivot table? That would be the easiest way to do it. Tweaking the code to include the conditional logic/calculated measures is not going to be straightforward..
    Thanks,
    Bipuser

  • Sorting measures (calculated members) in SSAS cube designer

    Hi,
    In SSAS 2012 cube designer, on the "Calculations" tab I am writing some simple calculated members and displaying it in a folder (Display Folder=)
    FolderA
    am So this FolderA has the members as below :
    [<-A1], [-A1], [A],
    [A1], [A2], [A3], [A4], [A5],
    and [>A5] 
    While I am browsing the cube from Excel 2007, this FolderA is deployed correctly along with the above measures. All fine till here.
    However, while I expand FolderA, Sorting is not done correctly. It is displaying like below :
    <-A1, >A5, A, A1, -A1, A2, A3, A4, A5
    But I want it to be sorted correctly so that it looks good as below :
    <-A1, -A1, A, A1, A2, A3, A4, A5, >A5
    How to do this at cube level ? Any property or any work around (using the latest SSAS 2012 version)
    Thanks

     
    Hi Yvanlathem,
    I am not talking about sorting of folders/subfolders.
    I want to short calculated members within the folder
    As my first post itself says, For ex., 
    in FolderA
    this FolderA has the members as below :
    [<-A1], [-A1], [A], [A1], [A2], [A3], [A4], [A5], and [>A5] 
    However, while I browse cube and expand FolderA ;  Sorting is not done correctly. Currently it is displaying like below :
    <-A1, >A5, A, A1, -A1, A2,
    A3, A4, A5
    But I want it to be sorted correctly as below (After
    use of this solve order keyword it should sort as per below):
    <-A1, -A1, A,
    A1, A2, A3, A4, A5, >A5

  • National Measure Calculation

    Hello Experts,
    I have a report with year, product, State columns and 2 measures payment 1 and the formual is IFNULL(x,0)+IFNULL(y,0)+IFNULL(z,0) and payment 2 formula is IFNULL(x1,0)+IFNULL(y1,0)+IFNULL(z1,0) here i am trying to get national values for payment 1 and payment 2. So basically i want to compare state to national value of both the measures for each year for a product. currently i was trying out duplicating payment 1 measure and adding a filter in that measure by using sql expression option (IFNULL(x,0)+IFNULL(y,0)+IFNULL(z,0)) by year and i am getting an error. Please advise how can i accomplish my task.
    Thanks,
    RC
    Edited by: user1146711 on Dec 20, 2011 11:04 AM

    Thanks for looking into the question. I am trying to re frame the question again. I have Year, State, Product category(Auto,Baby & Children's product, Electronics,Home appliances, Misc) Revenue measure =IFNULL(tier1payment,0)+IFNULL(tier2payment,0)+IFNULL(tier3payment,0) here as you see the revenue measure is a custom measure which is a addition of tier1+tier2+tier3 payments. I am trying to have an additional measure for graphing purposes to compare state with national value for the product category for that year in order to do that i need to create a custom measure for national and how can i accomplish that. Please let me know if i am not clear.
    Thanks,
    RC

  • Question about Measuring Point / Couter

    Dear PM Guru,
    While creating my Maintenance Plan with tcode -IP42 , there's counter automatically appear in the plan.
    I under this counter is from measuring point.
    I am confuse with the Counter in all this tcode IP41 , IP42 & IP01.
    My question are :
    Is this measuring point / counter master data or technical object ?
    Where's the relationship for counter in Maintenance plan ?
    Any impact the counter with the cycles used in the item line?
    What 's the different between IP01 vs IP41 vs IP42?
    Appreciate your input from any PM Guru.
    TQ

    Hi Venu,
    Thank for your reply.
    Understand that In Performance-based Maintenance Plan, SAP automatically links Counter to the Maintenance Plan.
    After my personal investigation , fully understand that only performance based maintenance plan are using counter. Normal Maintenance Order will not use counter as Master data.
    Example Performance Based Plans :
    When the measuring point counter reaches 3000 -1st  order should get generated
    2nd one at 6000, 3 rd one at 9000 etc...
    Or
    1. Single Cycle with counter -- Ex . Maintenance every 3000 hrs
    2. Strategy Cycle plans.. -- Ex. Maintenance every 3000 hrs and every 6000hrs
    3. Multiple Counter Plans..-- Ex Maintenance every 2month  or 1year..
    Process Flow.
    Create equipment with suitable measuring point (inc annual estimate) with Tcode IK01 create measuring point
    Create initial counter reading measurement document
    Create task list (optional for single-cycle plan)
    Create counter based maintenance plan
    Scheduling maintenance plan (IP10/IP30)
    Create measurement documents periodically
    Little Question to ask.
    1) Is this the SAP standard flow ?
    Please correct me if i am wrong.
    Thank you.

  • Data not retrieved in WebI with Measures calculated in Universe on SAPBW

    Hi,
    Pls share if such error is faced anywhere else and if there is any solution to this.
    Environment: SAP BI 7.01 and SAP BO XI 3.1 SP2 FP2.9
    Universe has calculated measures.
    Problem: No data is fetched by WebI when both direct measures (straight from BEx) and calculated measures are used.
    However, data is correctly retrieved if either only the direct measures are used or calculated measures are used.
    Thanks!

    Good CKF parsed for you @ Universe.
    If possible you can create Variable @WebI :
    Var=[Grs Sales] + [Returns]
    So that you can use it document (20 reports)
    This way you can solves the issue as of now.
    Gracias...!!

  • Using a string slicer value to filter measure calculations

    Hi, I have 6 calculated fields that each provide a cumulative cost value for tasks in different categories.  I would like to filter the total cumulative cost within one pivot chart to show only costs related to one project (out of a dozen or so). 
    I have a query which retrieves the project names, I have a relationship the costs and projects tables, however the measures will show me ALL project cumulative costs, and when I select each project name as a slicer value, only the X-Axis date range changes
    to reflect the date range of the project.  The cumulative costs remain the same, meaning the slicer value (project name) does not change the total cumulative costs in each category.
    My formula for one of the calculated cumulative cost fields is below: (SumCapExAct is just
    Sum([CAPEXACT]))
    =IF (
        ISBLANK ( [SumCapExAct] ),
        BLANK (),
        CALCULATE (
            [SumCapExAct],
            FILTER (
                 ALL(COSTS2) ,
                COSTS2[DATE]
                    <= MAX ( COSTS2[DATE] )
    Any Ideas on how I might have the selected Project Name filter the measures for each of my cumulative cost categories?
    Thanks a million in advance!

    Try changing ALL(COSTS2) to ALL(COSTS2[DATE])
    Then the filters on the other attributes should work.
    hth, Imke

  • Question about the calculator keys?

    Hi,
    This is an embarrasing question......were is the key to "Divide By" in the BB curve 8300???? This is driving me crazy!!!!!! Can not believe I can not find it!!! or does it exists...????
    Solved!
    Go to Solution.

    When you open your Calulator, the layout of the calculator keys on screen mirrors ALL those on your Curve.
    Like a cheat sheet.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Adobe Flash Player 11.3 r300 still crashing (includes about:crashes)

    Just had some more crashes while trying to use youtube this morning. In a previous discussion you asked for the "about:crashes" report, so here they are. https://crash-stats.mozilla.com/report/index/bp-1914231b-4147-4482-bd0c-ab1792120627 https://cra

  • Problem with Call transaction method in function module

    Dear Frndz,            I am converting its services into webdynpro.            I developed a rfc[function module] for travel management [TRIP] . In that rfc i used call transaction method[BDC] to upload the data. The same rfc will be called from the

  • Using attachment with RNIF

    Hi, I actually use B2B scenario based on RosettaNet/RNIF with SAP PI 7.0 SP12. I need to use the attachment capability, but, according to discussion with SAP support there is no current documentation about how to perform this action. Has anybody alre

  • Tv home link connection

    how do i connect my hp touchsmart 610 to my lg blu ray player's home link ?

  • How to reset Calculator Widget

    Hi There, My calculator is duplicating the numbers whenever I click, For example, I'll click 4, and it will come up as 44. 6, 66, etc I have done everything possible: 1. Deleted Plist files from Library 2. Re-installed the widget 3. Used a backup fro