Problem in median calculation in powerpivot

Hi All,
I have used below formula to find out median:
Lowerbound:=MINX( FILTER(VALUES('Table1'[Time Taken]), CALCULATE( COUNTROWS('Table1'), 'Table1'[Time Taken] <= EARLIER('Table1'[Time Taken]) )  >= COUNTROWS('Table1') / 2 ), 'Table1'[Time Taken])
Upperbound:=MINX( FILTER( VALUES('Table1'[Time Taken]), CALCULATE( COUNTROWS('Table1'), 'Table1'[Time Taken] <= EARLIER('Table1'[Time Taken]) )  > COUNTROWS('Table1') / 2 ), 'Table1'[Time Taken])
Custom Median:=([Lowerbound]+[Upperbound])/2
But Inside PowerPivot I am not able to see calculated values for any of the above measures. And when I drag this measure inside Pivot Table my workbook hangs. I have to kill EXCEL process from the task manager.
Anybody has an idea what exactly is happening?
Thanks,
SS

Hi Mike,
Above formula failed in production environment. It's throwing following error:
Could not add the field "Median Custom" to the PivotTable because the formula is invalid.
But it works well with lesser no. of records.
Please find below Michael's reply:
The DAX formulas you have presented will consume quite a bit of memory due to how the EARLIER function works (i.e. the use of inner and outer loops). The degree of memory consumption grows significantly as the number of rows increases.
Perhaps you could try an approach described in this blog post created by a fellow forum member (Gerhard Brueckl) as it avoids the use of the EARLIER function: http://blog.gbrueckl.at/2013/04/calculating-median-in-powerpivot-using-dax/.
I have followed the steps mentioned in above link, but I am getting error in formula.
Thanks, SS

Similar Messages

  • Problem with the calculator and modifications needed

    i have got a problem with the calculator on my iphone i.e i cannot find any DEL key or Backspace....the problem is when typing a long value if one number is entered wrong we should start again.
    EXAMPLE...if i need to type    114678047 * 345612
    if acidentally if i type 114678047 * 3455           ( then i should start over typing  "C"  key)
    i should start over to type the whole data..if we have a delete key we can just correct it right away and continue.....rather than starting over
    we can find this feature in all the other smart phones , i dont know why apple coudnt find that
    even every scientific calculator have a DEL key...
    Thanks
    vickyk7

    FEEDBACK
    If you want to give Apple feed back then do it here http://www.apple.com/feedback/iphone.html

  • MDX Query using BottomCount to limit Median calculation returns null

    I'm building a new cube that includes some person age values that aren't useful when summed, but are
    useful when the median is determined. The measure group that contains the measure for the age has a 1-1 relationship with a dimension in the cube because both use the same table as the source. This is important because I use the key attribute of the dimension
    as the set expression in the Median function to prevent any summation before the median is found. Here is the code for the original median calculation:
    MEMBER Measures.[Median Age] AS
    MEDIAN(
    [Placement Dimension].[Id Removal Episode Fact].Members,
    [Measures].[Age At Removal Months]
    This median naturally represents the half-way point in the series of values. My analysts have also requested
    median-type values at the quarter and three-quarter points in the same series. I've been able to accomplish this for the three-quarter point by nesting the TopCount function in the set expression of the Median function to limit the set to the last half of
    the records and then find the median point like this:
    MEMBER Measures.[75th Percentile] AS
    MEDIAN(
    TOPCOUNT(
    [Placement Dimension].[Id Removal Episode Fact].MEMBERS
    ,Measures.[Episode Count] / 2
    ,Measures.[Age At Removal Months]
    ,Measures.[Age At Removal Months]
    However, my attempt to use the BottomCount function in the same way as TopCount to find the quarter point
    in the whole data set by limiting the calculation's set to the first half of the data always returns null. Here is how I've formed the code:
    MEMBER Measures.[25th Percentile] AS
    MEDIAN(
    BOTTOMCOUNT(
    [Placement Dimension].[Id Removal Episode Fact].MEMBERS
    ,Measures.[Episode Count] / 2
    ,Measures.[Age At Removal Months]
    ,Measures.[Age At Removal Months]
    And here is the query that returns the values:
    SELECT
    Measures.[Episode Count]
    ,Measures.[Median Age]
    ,Measures.[25th Percentile]
    ,Measures.[75th Percentile]
    } ON 0
    ,[Date Begin].[Calendar Hierarchy].Year.&[2011]:[Date Begin].[Calendar Hierarchy].Year.&[2014] ON 1
    FROM [POC Cube]
    WHERE
    [Age at Removal Mos].[Age in Years List].[Age Year].&[0]:[Age at Removal Mos].[Age in Years List].[Age Year].&[5]
    I don't know why the end result is always null. I don't have any null values in the data for this measure, and I know what values I should be seeing because I've found the median records manually in results from a SQL Server query. I've tried using TopCount
    and multiplying Measures.[Age At Removal Months] in the TopCount function by -1 to workaround the descending sort, but I still get nulls. I've also tried separating these queries out so the quarter point and three-quarter point calculations aren't run together,
    but I still get nulls for the quarter point calculation.
    I'm open to any help fixing this situation by modifying my current code or by using alternate methods, but the end result has to be dynamic enough to be used as a calculation in the cube. Thanks!

    The links might helps.
    http://technet.microsoft.com/en-us/library/ms144864.aspx
    http://www.mssqltips.com/sqlservertip/3034/sql-server-analysis-services-ssas-2012-top-and-bottom-functions/
    http://www.sqlservercentral.com/blogs/bradleyschacht/2012/03/12/mdx-functions-bottomcount/

  • Problem with a calculated member browsing cube with a specific user role

    Good evening to all of you .
    I am not a newbie about SSAS nor an expert developer.
    I use SSAS 2008 R2 Standard Edition.
    I try to simplify my problem with a calculated measure.
    I have a CUBE with :
    [Measures].[Sales Amount]
    Dimension STORES - Dimension CUSTOMERS - Dimension DATE
    I have also 2 user roles :
    Direction Role can see all members of all dimensions.
    Customize Role  has a restriction about Dimension STORES ..it can see only a STORE of all (Suppose to have 100 stores).
    User that has a Customize Role, when browse cube in Excel , want to see for a specific CUSTOMER , Sales Amount of his own STORE but also the total Sales Amount of ALL STORES for that Customer...
    Is it possibile to do that ???
    Can you give any suggestion also using Adventure Works Cube ???
    I was able to create a calculated measure like that below.
    It does not work...It give the same result of Sales Amount
    It seems that Customize Role win Always about every kind of calculate measure i need to create..
    i.e  SUM([STORES].[STORES].[ALL STORES],[Measures].[Sales Amount])
    Thanks in advance.

    Hi maretix,
    According to your description, you have a customize role which limit the user can only see data about his own STORE. Now this user wants to see the total Sales Amount for his own STORES only. Right?
    In Analysis Services, when granting custom access to dimension data, it has a option "Enable Visual Total" in Advanced dimension security. By default, the
    VisualTotals property is disabled (set to False). This default setting maximizes performance because Analysis Services can quickly calculate the total of all cell values, instead of having to spend time selecting which
    cells values to calculate. So you always get same result which is the total for all STORES.
    In this scenario, please select this option. When you enable the VisualTotals property, your custom role can only view aggregated totals for dimension members to which the role has permission.
    Reference:
    Grant custom access to dimension data (Analysis Services)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Problem in a calculation in Oracle Answers

    Hello experts.
    I am facing some trouble in making a report.
    Dimensions and Facts are like this.
    Dimensions: Year Month, Quarter, Employee Name , Attribute Name (like A,B,C,D...I)
    Facts : Attribute Fact1, Attribute Fact2, Attriute Fact3
    Now we need to show DATA as follows
    Columns:
    Year | Month Quarter | Employee Name | (Attributes Name) A,B,C,D....J
    Measure: (A calulation on Fact1,Fact3 and Fact3)
    Eg. ((Fact1*Fact2)/Fact3)
    We used a Pivot Table to draw this analysis:
    In ROWS we put Year | Month | Quarter | Employee Name
    In Measures_Lables We put 'Attribute Name'
    In Measures we put an calulated column: ((Fact1*Fact2)/Fact3)
    Now problem is there is one condition that if value of ((Fact1*Fact2)/Fact3) for Attribue 'A' is Zero then we need to multiply rest of Attributes with some Factor, lets day 10
    I tried to put following Formulla/Expression:
    CASE WHEN
    IF NULL
    (CASE WHEN Attribute.Name IN ('A') THEN ((Fact1*Fact2)/Fact3) END)
    ,0
    ) = 0
    ) THEN
    ((Fact1*Fact2)/Fact3)*10
    ELSE
    ((Fact1*Fact2)/Fact3)
    END
    that is I am checking if Calculation for that Attribute ('A') is Zero then multiply by with 10 else just show calculation.
    What happend is as soon as I apply CASE on Attribute 'A' value of other Attributes go out of scope for that particular CELL, so for these cells (except A) 'IF NULL' block is evaluated true
    For example if data set is like this
    Year | Month | Quarter | Employee Name | A | B |
    2009 Jan Q1 Emp1 10 20
    2009 Jan Q1 Emp2 0 20
    THEN as per above my formulla resut it give is like this
    Year | Month | Quarter | Employee Name | A | B |
    2009 Jan Q1 Emp1 10 200
    2009 Jan Q1 Emp2 0 200
    So, for all other Attributes it muliplied by 10 because for all other cells it find value of A is 0 so it multiplies by 10
    I am starting to think it might not be possible to do it this way.
    Please suggest me a better way for this problem:

    You could write a view over the table that has the XML column and use Oracle XML DB functions to extract and represent the data in a table format. You can then map this view in Oracle BI Administration.
    I think stuff like XML transformations and extraction etc. is no task for Oracle BI and is best left to the Oracle Database.
    Thanks,
    Nilanshu.

  • Problem in overhead calculation of production order after TECO

    Dear All,
    Just for reconfirmation can you tell me what is the actual sequence of steps used in Closing of Production order i.e
    First we have to do TECO of an order and then we have to calculate Overhead.(KGI2).
    I am asking this question because i have observed that  order which are get TECO before Overhead calculation, if you see the cost analysis, system will not update overhead value in order and the difference get posted in Variances after settlement.
    If we have to do vice versa then there will be the problem as user do the TECO of an order as an when production order completed, overhead calculation is the work of costing department and they will do it at month end only hence system will always post variance for the overhead value.
    Kindly suggest. 
    Regards,
    Shayam

    Hi,
    Normally, you need to check the transactions allowed when the status TECO is set. However, status is set only when the sequence of the steps are completed during month end. Transactions like the WIP, variances, settlement etc as you may have bach jobs running to set the status.
    Kind Regards
    Umapathi G

  • I think I found a problem with the calculator application.

    I'm a south korean highschool student and I think I found a problem with calculator application. I use iPod touch 4th generation with iOS 5.0.1. I was playing with calculator app and I found out that 0.1!(factorial) is 0.951350769866873. This can't be right bacause factorial calculation can only be definrd whan n is natural number or 0(in n!). I want apple to correct this error.
    And if you are someone working with apple, please let me know the algorithm of factorial calculation(if possible). I would be grateful if I can have a chance to study the algorithm and find out what made 0.1! possible.
    so question.
    do anybody know how to send an email to apple? I tried but I couldn't find the address.

    Apple doesn't dialogue with users via email the way you want, but you can report such problems to them via
    http://www.apple.com/feedback/
    But in this particular case you should be aware that factorial can in fact be done for non-integers:
    http://en.wikipedia.org/wiki/Factorial#Extension_of_factorial_to_non-integer_val ues_of_argument

  • I have a problem with my calculator :(

    hi all,
    i need some help with my calculator..after i wrote the code i discovered my mistake so i made some changes on the code..the problem is that it's still applying the old code !!
    ( i didn't forgot to compile it, & i closed all the browsers b4 trying it )
    i will appreciate ANY suggestion
    P.S : my mistake was with the operations buttons ( add, sub, multip, division ) & the equal button
    if it may help, this is the code ( the new one, then the old one )
    the new code:
    import java.awt.* ; // Container, FlowLayout
    import java.awt.event.* ; // ActionEvent, ActionListener
    import javax.swing.* ; // JApplet , JButton , JLabal, JTextField
    public class Calculator2 extends JApplet implements ActionListener {
    // graphical user interface components
    JTextField field ;
    JButton zero, one, two, three, four, five, six, seven, eight, nine, fraction, clear,
    add, sub, multip , division, equal ,sin , cos, tan ,log ,sqrt ,exp ;
    // variables
    String string = " " ; // to store what is in the text field
    String operation ; // to store the operation selected
    double operate ; // to store the result of the operation selected
    double operand1 , operand2 ; // the operands of the operation
    // set up GUI components
    public void init ()
    Container container = getContentPane ();
    container.setLayout ( new FlowLayout () );
    // create a text field
    field = new JTextField ( 17 );
    container.add ( field ) ;
    // create buttons
    clear = new JButton ( "C" ) ;
    clear.addActionListener ( this ) ;
    container.add ( clear );
    zero = new JButton ( "0" ) ;
    zero.addActionListener ( this ) ;
    container.add ( zero );
    one = new JButton ( "1" ) ;
    one.addActionListener ( this ) ;
    container.add ( one );
    two = new JButton ( "2" ) ;
    two.addActionListener ( this ) ;
    container.add ( two );
    three = new JButton ( "3" ) ;
    three.addActionListener ( this ) ;
    container.add ( three );
    four = new JButton ( "4" ) ;
    four.addActionListener ( this ) ;
    container.add ( four );
    five = new JButton ( "5" ) ;
    five.addActionListener ( this ) ;
    container.add ( five );
    six = new JButton ( "6" ) ;
    six.addActionListener ( this ) ;
    container.add ( six );
    seven = new JButton ( "7" ) ;
    seven.addActionListener ( this ) ;
    container.add ( seven );
    eight = new JButton ( "8" ) ;
    eight.addActionListener ( this ) ;
    container.add ( eight );
    nine = new JButton ( "9" ) ;
    nine.addActionListener ( this ) ;
    container.add ( nine );
    fraction = new JButton ( "." ) ;
    fraction.addActionListener ( this ) ;
    container.add ( fraction );
    add = new JButton ( "+" ) ;
    add.addActionListener ( this ) ;
    container.add ( add );
    sub = new JButton ( "-" ) ;
    sub.addActionListener ( this ) ;
    container.add ( sub );
    multip = new JButton ( "*" ) ;
    multip.addActionListener ( this ) ;
    container.add ( multip );
    division = new JButton ( "�" ) ;
    division.addActionListener ( this ) ;
    container.add ( division );
    sin = new JButton ( "sin" ) ;
    sin.addActionListener ( this ) ;
    container.add ( sin );
    cos = new JButton ( "cos" ) ;
    cos.addActionListener ( this ) ;
    container.add ( cos );
    tan = new JButton ( "tan" ) ;
    tan.addActionListener ( this ) ;
    container.add ( tan );
    log = new JButton ( "log" ) ;
    log.addActionListener ( this ) ;
    container.add ( log );
    sqrt = new JButton ( "sqrt" ) ;
    sqrt.addActionListener ( this ) ;
    container.add ( sqrt );
    exp = new JButton ( "exp" ) ;
    exp.addActionListener ( this ) ;
    container.add ( exp );
    equal = new JButton ( "=" ) ;
    equal.addActionListener ( this ) ;
    container.add ( equal );
    } // end of method init
    public void actionPerformed ( ActionEvent event )
         // button zero
         if ( event.getSource()== zero )
         string = string + "0" ;
         field.setText ( string ) ;
         // button one
         else if ( event.getSource()== one )
              string = string + "1" ;
              field.setText ( string ) ;
         // button two
         else if ( event.getSource()== two )
              string = string + "2" ;
              field.setText ( string ) ;
         // button three
         else if ( event.getSource()== three )
              string = string + "3" ;
              field.setText ( string ) ;
         // button four
         else if ( event.getSource()== four )
              string = string + "4" ;
              field.setText ( string ) ;
         // button five
         else if ( event.getSource()== five )
              string = string + "5" ;
              field.setText ( string ) ;
         // button six
         else if ( event.getSource()== six )
              string = string + "6" ;
              field.setText ( string ) ;
         // button seven
         else if ( event.getSource()== seven )
              string = string + "7" ;
              field.setText ( string ) ;
         // button eight
         else if ( event.getSource()== eight )
              string = string + "8" ;
              field.setText ( string ) ;
         // button nine
         else if ( event.getSource()== nine )
              string = string + "9" ;
              field.setText ( string ) ;
         // button fraction
         else if ( event.getSource()== fraction )
              string = string + "." ;
              field.setText ( string ) ;
         // button clear
         else if ( event.getSource()== clear )
              clear ();
         // button add
         else if ( event.getSource()== add )
              operand1 = Double.parseDouble ( string );
              operation = "+" ;
              clear ();
         // button sub
         else if ( event.getSource()== sub )
              operand1 = Double.parseDouble ( string );
              operation = "-" ;
              clear ();
         // button multip
         else if ( event.getSource()== multip )
              operand1 = Double.parseDouble ( string );
              operation = "*" ;
              clear ();
         // button division
         else if ( event.getSource()== division )
              operand1 = Double.parseDouble ( string );
              operation = "/" ;
              clear ();
         // button sin
         else if ( event.getSource()== sin )
              operate = Double.parseDouble ( string ) ;
              operate = Math.sin( operate );
              field.setText ( Double.toString ( operate ) ) ;
    // button cos
         else if ( event.getSource()== cos )
              operate = Double.parseDouble ( string ) ;
              operate = Math.cos( operate );
              field.setText ( Double.toString ( operate ) ) ;
         // button tan
         else if ( event.getSource()== tan )
              operate = Double.parseDouble ( string ) ;
              operate = Math.tan( operate );
              field.setText ( Double.toString ( operate ) ) ;
         // button log
         else if ( event.getSource()== log )
              operate = Double.parseDouble ( string ) ;
              operate = Math.log( operate );
              field.setText ( Double.toString ( operate ) ) ;
         // button sqrt
         else if ( event.getSource()== sqrt )
              operate = Double.parseDouble ( string ) ;
              operate = Math.sqrt( operate );
              field.setText ( Double.toString ( operate ) ) ;
         // button exp
         else if ( event.getSource()== exp )
              operate = Double.parseDouble ( string ) ;
              operate = Math.exp( operate );
              field.setText ( Double.toString ( operate ) ) ;
         // button equal
         else // if ( event.getSource()== equal )
              operand2 = Double.parseDouble ( string );
              if ( operation == "+" )
                   operate = operand1 + operand2 ;
              else if ( operation == "-" )
                   operate = operand1 - operand2 ;
              else if ( operation == "*" )
                   operate = operand1 * operand2 ;
              else if ( operation == "/" )
                   operate = operand1 / operand2 ;
              field.setText ( Double.toString ( operate ) ) ;
    } // end of method actionPerformed
    public void clear ()
         string = " ";
         field.setText ( string ) ;
    } // end of method clear
    } // end of class
    the old code which have the problem ( which i make the changes on ) :
         // button clear
         else if ( event.getSource()== clear )
              string = "";
              field.setText ( string ) ;
         // button add
         else if ( event.getSource()== add )
              string = string + "+" ;
              field.setText ( string ) ;
         // button sub
         else if ( event.getSource()== sub )
              string = string + "-" ;
              field.setText ( string ) ;
         // button multip
         else if ( event.getSource()== multip )
              string = string + "*" ;
              field.setText ( string ) ;
         // button division
         else if ( event.getSource()== division )
              string = string + "/" ;
              field.setText ( string ) ;
         // button equal
         else // if ( event.getSource()== equal )
              operate = Double.parseDouble ( string ) ;
              field.setText ( Double.toString ( operate ) ) ;
    thanks a lot :)

    Open Java console and press "x" (Clear cache)
    Disable caching in java paremeters.

  • Problems with shipping calculations

    We have been working with BC eCommerce since the beginning of 2013.
    We have been working with UPS and the checkout shopping cart get the shipping costs from UPS.
    However we are experiencing a problem with big orders due to the fact that big orders require a second or even a third box and then UPS charges are higher than the calculation
    here is what is happening righ now:
    we can house 4 products in a box. Each product weights 10.5 pound.
    In orders of 4 or less products we dont have a problem. UPS calculates 1 box of 42 pounds.
    Let's say we have to ship 7 products, then we have a 42 pounds box and a 31.5 pounds box but the system has calculated a box of 73.5 pound which is lower than shipping the two individual orders.
    even using ground transportaion this problem represent 5 to 10 when shipping two boxes and it will grow even bigger when we have to ship 3 boxes (almost $40).
    I appreciate your ideas on how to solve this problem.
    Thanks

    I too, am having issues with inaccurate FEDEX shipping costs. 
    Our FEDEX rep has provided evidence that somewhere along the way, the measurements sent to the FEDEX server, is being provided to FEDEX in metric measurments.
    Which is very strange, as our store is setup in English System of Measurments (U.S. Customary System and the Britich Imperial System) meaning that our dimensions and weight within the BC system are in inches and pounds. (BC support has confirmed that the setup is correctly for inches and pound measurement)
    The result is that the shipping costs generated using integrated FEDEX on BC can be significantly lower than when using the same account info on the client's FEDEX web portal. This signicantly cuts into profits - and in some cases the client can loose money after making an online sale!
    Is anyone else finding this to be the case? Does anyone have any suggestions? My client is very, very frustrated - and naturally does not want to lose money on shipping. Any help appreciated. Thanks.
    TheBCMan - I know you specialize  in shipping calculators, have you come across this?
    GeckoTales - did you ever develop or come across a work-around?
    Thanks everyone. Hope someone has come across this. Am getting desparate.

  • Problem with array calculations

    The only problem I have now is, instead of calculating the payments at 7 years/5.35%, 15 years/5.5%, and 30 years/5.75%, it's calculating them for 7 years at 5.35%, 5.5%, and 5.75%, 15 years at 5.35%, 5.5%, and 5.75%, and so on. I don't need it to do all of that, I need the years to correspond to the correct interest rate. How can I change that? Thank you so much. Here is my new code:
    class PaymentArray {
         public static void main(String[] arguments) {
              double amount = 100000;
              int[] term = {7, 15, 30};
              double[] rate = {.0535, .055, .0575};
              for (int i = 0; i < term.length; i++) {
                   for (int j = 0; j < rate.length; j++) {
                        System.out.println("If the initial loan amount is " + amount);
                        System.out.println("and the length of the term is " + term[i] + " years");
                        System.out.println("and the monthly interest rate is " + rate[j]);
                        double payment = (amount*(rate[j]/12))/(1-(Math.pow(1/(1+(rate[j]/12)),(term*12))));
                        System.out.println("The monthly payment will be " + payment);

    Bollocks! The code tags got me!
    You don't need two loops.
    class PaymentArray {
         public static void main(String[] arguments) {
              double amount = 100000;
              int[] term = {7, 15, 30};
              double[] rate = {.0535, .055, .0575};
              for (int i = 0; i < term.length; i++) {
                        System.out.println("If the initial loan amount is " + amount);
                        System.out.println("and the length of the term is " + term[i] + " years");
                        System.out.println("and the monthly interest rate is " + rate);
                        double payment = (amount*(rate[i]/12))/(1-(Math.pow(1/(1+(rate[i]/12)),(term[i]*12))));
                        System.out.println("The monthly payment will be " + payment);

  • Problem with Context - calculated Value

    I have a problem with my WebDynPro-Project.
    The Errors which is shown by the NWDS:
    "Web Dynpro Generation: Metadata constraint of Component KeyMappingComponent is violated: CalculatedAttributeProvider "//WebDynpro/Controller:de.vwfsag.keymapping.ui.KeyMappingComponent/CalculatedAttributeProvider:BusinessAttributeDataSprache", Role "Attribute": A minimum of 1 object(s) is required"
    What I've done:
    - changed valueproperties calculated from "true" to "false" and back.
    The problem is that the set und get methods remained after resetting the calculateproperty to "false".
    I've tried several time to switch the property but now I got more remained set and get methods (..._1, ..._2, ...), which I can't delete in the NWDS.
    What I also tried was to change the .wdcontroller"-file of my controller-component, but this file is generated so after a rebuild the ".wdcontroller"-file is still corrupted.
    I think the conclusion should be something to delete these methods or change the calculatedproperty in some files you can't access directly from the NWDS.
    I hope anyone could help me out with this?
    Greetz Christian
    Edited by: christian.zuehlsdorf on Dec 14, 2009 6:24 PM

    Tushar Sinha wrote:Tushar Sinha wrote:Hey Sinha,
    thank you fr your answer!
    >
    > Just try deleting the attribute for which you tried setting the calculated property as true and then false, try repairing your project, reload and build again. Hopefully this should get you rid of the getters and setters.
    That was the first thing I already tried. I deleted the whole context und then rebuild and repair and rebuild... But none of that help.
    >
    > Do, not manually try deleting the getters/setters manually for any attribute as it is autogenerated for an attribute.
    These getters/setters only have part of the configuration with no context-attribute-bind, which in fact seems to be the problem for the build-process.

  • Problem in Summary Calculating

    Post Author: CRA
    CA Forum: General
    Dear All,
    I m using Crystal reports 11 and i have a problem basicaly i m using a group like wise employee and it calculate all the employees but the requirement is that only those employees shows which having the salary 0 to 5000 and this section is correctly working but wen its calculating the total summry in footer then it calculate all the employees data(figures). But i just need that only those values or employees figures which in range of 0 to 5000. Only the problem in summary.
    Any suggestion or clues highly appreciated.

    Post Author: CRA
    CA Forum: General
    Thnx Ido..... i used condition in formula and it works.
    well i did dis. but now the another prob.  where employee's salary is ZERO. and in my report m using 3 groups like-wise
    Group Head:   CLASS1   -it contains only the class description like city names -
    Group Head:   CLASS2   -it contains only the class description like department names like-wise Senior Executive,Staff & Executive -
    Group Head:   Employee   -it contains  the employee name, designation, salary & etc description like -
    dis section is suppress //Group Footer:   Employee   -it contains  the employee name, designation, salary & etc description like -
    Group Footer:   CLASS2   -In this section we calculate the employee's salary & profit etc class-wise(means which employees in this class only dat will b shown) Senior Executive,Staff & Executive - (dis section is also suppres through using the formula in section expert salary=0 then supress and it works)
    Group Footer:   CLASS1   -In this section it calculate all the employee's calculatin Head wise means city-wise (Employees salary etc.)- (dis section is also suppres through using the formula in section expert salary=0 then supress and it works)
    But in Class Head description dats still shown the main prob is dis.
            Now the problem is when it calculate the salary when condition meets like i described in previous section through the running total. where got the zero that shows the both class description. But i didn't want dis description if the employees are not  in dat class. It means dat If there is no EMPLOYEE in the class then dont show the class description and dat descriptin iz comming from the field.
    Any suggestion or any help regarding dis.
    Thnx in advance.

  • Median calculation in BW

    Hi,
    I need to show median figures in BEX reports.
    Can somebody help me with this issue?
    Best Regards,
    Michael

    Hi,
    In BEx you don't have direct Median function, on result you can but not on rows.
    Another option can be:
    1. Use APD, there you have such features.
    [Formulas to Calculate the Statistics|http://help.sap.com/saphelp_nw04/helpdata/en/cc/db2040599a8f5ce10000000a155106/frameset.htm]
    2. Create formula on your characteristic and use it in calculation for median. I am not clear what chars you are using but giving more data from your requirement will help to think more on solution part.
    Hope it helps...
    Regards,
    Ashish

  • Problem with prorata calculation of pf contribution

    Hello
    I have an issue in employee pf calculation on selecting the eligible pay or pf basis whichever is less in infotype 587. When i select this option in IT-587 the pf contribution gets restricted to Rs.780
    Now in case the employee is absent for a couple of days in a month then this calculation gets reduced.eg if one day absesnce is there it becomes 755(780/31*30). Here the employee pay is more than the pf basis which is Rs.6500
    I need to the system to continue deducting 780 till the employee receives more than 6500, even though he may be absent.i.e prorating should not take place in such cases.
    regards
    sameer
    Message was edited by:
            sameer k

    Hi
    You can do at two ends
    1 INEPF.
    2 By rule.
    I will prefer the INEPF.
    Now jsut do one thing ask the ABAPer to debugg it , in INEPF it is calulating dont know exact code.
    it is easy to find out .
    And add the codings after the calculation.
    It will be very easy.
    Manoj Shakya.
    Close the thread.

  • Problem with date calculation

    I am a rookie in SAP i have a small problem with date.Do we have any function module to find out the first day in a month if we give out the system current date ?? Pls help me out.

    Hi,
    As Ganesan told,you can do.
    Here is the sample code.
    data v type sy-datum.
    data d type DTRESR-WEEKDAY.
    v+6(2) = '01'.
    v4(2) = sy-datum4(2).
    v0(4) = sy-datum0(4).
    CALL FUNCTION 'DATE_TO_DAY'
      EXPORTING
        date          = v
    IMPORTING
       WEEKDAY       = d.
    write d.

Maybe you are looking for

  • How do I begin payment for a webMarketing Business Catalyst subscription?

    Extreme frustration here.  I have a subscription to Muse, built an awesome website for my company, we have been testing it live under the "xxxx.businesscatalyst.com" option. I have looked everywhere and cannot find the place where I pay for a busines

  • Copy Excel charts into Illustrator?

    Hi All- I NEED to get charts that I have created in Excel (Microsoft Excel 2008 for MAC, Version 12.1.1) into Adobe Illustrator (CS2, 12.0.1). I have hundreds of charts to do this with, so remaking all of the charts in Illustrator isn't really feasib

  • No File Save as or no File capability

    Vista environment with MS browser. I travel to a web site that provides regular PDF's for me to download (Adobe Reader 8.1.0)and save. I download the PDF and attempt to rename and save. I do not have a file > save as menu nor does the small diskette

  • Trying to upgrade OS X Mavericks for months now.

    It seems like I've been trying to upgrade to OS X Mavericks for months now. I keep getting this message -The file couldn't be saved because you don't have permission.(513). Why? And what can I do to fix this so that I can upgrade?

  • Flash klapt nicht wegen umlaut in der domain ??

    kann es sein das firefox mit flash ein problem hat wen ein umlaut in der  domain ist? habe mir serverstats für mein gameserver installiert,  und einige funktionen werden in flash dargestellt. es handelt sich um  folgende seite: http://www.böhser-onke