Set in Excel using ORDER MDX statement not showing correct results on PowerPivot model

I have defined a set in Excel 2013 with this syntax: 
order(Topcount([Company].[Company].[Company].members,
10,
[Measures].[Sum of TotalValue]),[Measures].[Sum of TotalValue]
,DESC)
The order statements is not properly Applied. Order by name is still active. Would appreciate your help, if have I done something wrong or is this a bug?

Ok in the meantime I have solved this myself. In the field settings is an option for "Automatically order and remove duplicates..." which is turned on by default and overrules specific order statements in the set. I am not quite sure why but as long as
you know about it, this can be addressed by turning off.

Similar Messages

  • VL06I Inbound delivery monitor not showing correct results

    Dears,
    We are creating inbound deliveries on the basis of POs and creating GR via MIGO after eliminating movement type in line item catageory by using SPRO. For monitoring we would like to use VL06I but its not showing correct results.
    Can anyone guid me ?
    Regards,
    FR

    You can list all Inbound Deliveries by selecting "List Inbound Deliveries"  Tab in VL06I
    May be if you can little elaborate the issue

  • Aggregation not showing correct results in 10g

    Hi,
    We have created a calculated column in BMM layer as x=Sum(Amount)/sum(Distinct Members).
    In the report, individually it is showing correct results but when we are calculating "Total By" it is showing wrong total.This is because of while calculating totals it is taking the formula as x=Sum(Amount)/sum(Members).
    Aggregations are kept as default for all the columns in the report .
    Please help me to solve this issue.

    For this calculated column set aggregation level as sum.

  • Report not showing correct results

    I am new to SSRS.  Using SQL 2008, Visual Studio 2010 shell.
    I have a stored procedure that when I execute it through SSMS, it returns the correct results.  However, when my report runs through SSRS (using the same stored procedure).  I get inconsistent results.
    I've been able to narrow it down to a specific parameter in my report where I pass in Id's.  This particular parameter gets its values from a query and is setup to use multiple values.  I have focused on two ID's which together are giving
    me problems. 
    The IDs are !'" and
    !!T.
    When I ONLY select !'" the report returns the correct results.
    When I ONLY select !!T the report return the correct results.
    When I select !'" and !!T the report only return the results for !!T.
    I have no clue why SSRS doesn't like this.  Any help would be appreciated.
    jhoop

    I created the specific function referenced in your link and it didn't help.
    Function
    CREATE FUNCTION [dbo].[c__SplitValues]
    -- Add the parameters for the function here
    @List nvarchar(2000)
    ,@SplitOn nvarchar(2000)
    RETURNS
    @RtnValue TABLE
    -- Add the column definitions for the TABLE variable here
    Id int identity(1,1)
    ,Value nvarchar(100)
    AS
    BEGIN
    -- Fill the table variable with the rows for your result set
    While(CHARINDEX(@SplitOn, @List) > 0)
    BEGIN
    INSERT INTO @RtnValue (value)
    SELECT
    VALUE = LTRIM(RTRIM(SUBSTRING(@List, 1, CHARINDEX(@SplitOn, @List) - 1)))
    SET @List = SUBSTRING(@List, CHARINDEX(@SplitOn, @List) + LEN(@SplitOn), LEN(@List))
    END
    INSERT INTO @RtnValue (Value)
    SELECT Value = LTRIM(RTRIM(@List))
    RETURN
    END
    The line in my SQL statement where I use this function
    AND TableName.UserId IN (SELECT Value FROM dbo.c__SplitValues(@UserId,','))
    jhoop

  • Inventory Non cumulative values are not showing correct result

    Hi Guys,
    I have created a report on Inventory cube taking material in rows and 0T0TALSTCK and 0VALSTCKVAL in colums and i created a variable on calender day . What ever the date if we give we will get the quantity and value as on that date.
    Here Quantity is showing perfectly and in case of value it is showing wrongly. In this case the interesting thing is if we substract the  (Reciet value - Issue ) value then i am getting the correct value.
    Some times Even quantity is zero the noncumulative keyfigure (0VALSTCKVAL)is not showing zero it is showing some value but if i do (Reciet value - Issue ) it will show correctly.
    Please help on this issue.
    Thanks & Regards
    K.Srinivas

    Hi,
    when the quantity is correct, then you have a problem with the values. You have loaded the infocube correcly.
    check your keyfigures and the transformation with the BI content.
    => for example: do you have the coding in the BF transformation?
    * see OSS note 571669
        LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS>.
          IF <SOURCE_FIELDS>-stockcat EQ 'V' OR
             <SOURCE_FIELDS>-stocktype EQ 'V'.
            DELETE SOURCE_PACKAGE.
          ENDIF.
        ENDLOOP.
    => you have used the datasource 2LIS_03_UM. There are no quantities. Is there your problem.
    Sven

  • Log application query not showing correct results

    Hi,
    We are running Dataguard (DG) in our production environment. EBS 11.5.10.2 and DB 10.2.0.4.
    Every morning we run the following query on both primary and standby to confirm that the logs are being transported and applied to the standby:
    select sequence#,applied,to_char(first_time,'mm/dd/yy hh24:mi:ss') first from v$archived_log order by first_time;
    Once the logs are transported and applied, a response of 'Yes' is returned for each log generated. We have noticed within the last week that when we run the query on primary, 'No' is being returned, but on standby, 'Yes' is returned. I have confirmed that standby is reflecting the correct results. I've tried restarting the DG service (alter database recover managed standby....) in an attempt to have primary 'refresh' itself but that didn't work.
    Does anyone have any idea why primary keeps returning 'No' to the query, and how we can get it to reflect to correct results?
    Thanks,
    Lia.

    Hi Werner,
    Thanks for your response. Given what you're saying I find that a little strange since prior to this, the query would return a value of 'YES' on the primary. Actually, to be exact, on the primary, each log would should up twice. One would show 'NO' and the other 'YES'- the second indicating transporting and shipping was successful.
    This is how the results were before:
    SEQUENCE   APP   FIRST
    +154623 NO 04/07/09 08:03:22+
    +154623 YES 04/07/09 08:03:22+
    +154624 NO 04/07/09 08:05:27+
    +154624 YES 04/07/09 08:05:27+
    This is how the results are now:
    SEQUENCE   APP   FIRST
    +154754 NO 04/22/09 07:22:22+
    +154754 NO 04/22/09 07:22:22+
    +154755 NO 04/22/09 07:25:27+
    +154755 NO 04/22/09 07:25:27+
    I'm not doubting that what you're saying is correct, it just adds an element of confusion for me...
    Lia.

  • Explain Plan not showing correct results.

    Hi Gurus,
    Please help me to understand below issue.
    Whenever I am doing explain plan on any of the sql statements it says as explained but when retriving the explain plan output it shows same results again and again.
    DB - 11gR2 Stand alone
    ASM - Configured.
    OS - RHEL 6.2.
    SQL> select count(*) from t2114;
    COUNT(*)
    639292
    SQL> explain plan for select count(*) from t2114;
    Explained.
    SQL> @?/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 1497650422
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 1 | SORT ORDER BY | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 2 | TABLE ACCESS BY INDEX ROWID| T2210 | 6634 | 524K| 2947 (17)| 00:00:01 |
    |* 3 | INDEX RANGE SCAN | T2210_T | 6842 | | 108 (22)| 00:00:01 |
    Predicate Information (identified by operation id):
    3 - access("T2210"."C490008000"=:SYS_B_0 AND "T2210"."C490009100"=:SYS_B_2
    AND "T2210"."C301363300"=TO_NUMBER(:SYS_B_1))
    16 rows selected.
    SQL> explain plan for
    2 SELECT T2114.C1 FROM T2114 WHERE ((T2114.C1000000001 = :"SYS_B_0") AND (T2114.C536871442 = :"SYS_B_1") AND (T2114.C536871477 = :"SYS_B_2") AND ((:"SYS_B_3" - T2114.C3) >= :"SYS_B_4") AND ((:"SYS_B_5" - T2114.C3) <= :"SYS_B_6") AND (T2114.C1000000217 LIKE :"SYS_B_7") AND (T2114.C536871478 < :"SYS_B_8")) ORDER BY C1000000161 DESC, :"SYS_B_9" ASC;
    Explained.
    SQL> SELECT * FROM TABLE(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1497650422
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 1 | SORT ORDER BY | | 6634 | 524K| 2993 (19)| 00:00:01 |
    | 2 | TABLE ACCESS BY INDEX ROWID| T2210 | 6634 | 524K| 2947 (17)| 00:00:01 |
    |* 3 | INDEX RANGE SCAN | T2210_T | 6842 | | 108 (22)| 00:00:01 |
    Predicate Information (identified by operation id):
    3 - access("T2210"."C490008000"=:SYS_B_0 AND "T2210"."C490009100"=:SYS_B_2
    AND "T2210"."C301363300"=TO_NUMBER(:SYS_B_1))
    16 rows selected.

    Hi Dom,
    Thanks for your immediate response.
    I am getting two values for PLAN_TABLE. Please let me know if we need to drop any of them??
    SQL> SELECT *
    FROM all_objects
    WHERE object_name = 'PLAN_TABLE'; 2 3
    OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS T G S NAMESPACE EDITION_NAME
    PUBLIC PLAN_TABLE 5127 SYNONYM 17-SEP-11 17-SEP-11 2011-09-17:09:47:47 VALID N N N 1
    ARADMIN PLAN_TABLE 219426 219426 TABLE 07-APR-13 07-APR-13 2013-04-07:23:01:12 VALID N N N 1

  • CKF not showing correct results in BEx Analyzer

    Dear Friends,
    I am getting different results when viewed from BEx Analyzer and Web Analyzer for the same query. BEx Analyzer shows incorrect results. The column that is showing different is a local formula (say Formula3) that is a result of dividing Formula1 by Formula2.
    BEx Web calculates Formula3 correctly while BEx analyzer does not.
    I am in BI 7.0 SP 10.
    Any Clues?
    Thanks
    Viren

    For this calculated column set aggregation level as sum.

  • Sql statement not showing right result set

    Hi everyone,
    I have a statement :
    select to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'||
    extract(year from sysdate),'dd-mm-yyyy') from fus_medewerkers;
    which returns following result:
    12-FEB-09
    07-DEC-09
    22-NOV-09
    21-MAY-09
    26-FEB-09
    17-DEC-09
    01-SEP-09
    17-DEC-09
    04-APR-09
    07-JUN-09
    23-MAY-09
    29-MAY-09
    13-AUG-09
    18-MAR-09
    01-NOV-09
    12-AUG-09
    06-JAN-09
    01-MAR-09
    02-AUG-09
    16-AUG-09
    06-NOV-09
    23-MAR-09
    06-MAY-09
    01-NOV-09
    01-MAR-09
    16-AUG-09
    01-JAN-09
    01-DEC-09
    01-OCT-09
    01-OCT-09
    01-OCT-09
    01-APR-09
    01-APR-09
    08-DEC-09
    01-APR-09
    01-AUG-09
    14-JUN-09
    02-JUL-09
    01-APR-09
    10-JAN-09
    15-MAR-09
    07-APR-09
    29-JAN-09
    16-JUN-09
    21-OCT-09
    I now put a condition in my original statement as follow:
    select to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'||
    extract(year from sysdate),'dd-mm-yyyy') from fus_medewerkers
    where sysdate <= to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'||
    extract(year from sysdate),'dd-mm-yyyy');
    The result is:
    07-DEC-09
    22-NOV-09
    17-DEC-09
    01-SEP-09
    17-DEC-09
    13-AUG-09
    01-NOV-09
    16-AUG-09
    06-NOV-09
    01-NOV-09
    16-AUG-09
    01-DEC-09
    01-OCT-09
    01-OCT-09
    01-OCT-09
    08-DEC-09
    21-OCT-09
    As you can see the row with sysdate (12-AUG-09 ) in my first result is not shown in the second result set.
    Can someone please tell me why this is so and how I could solve this problem?
    Regards,
    Diana

    sysdate contains time even if it's not shown. e.g. at 14:43:22 on Aug 12th 2009, sysdate would have a value of 12-AUG 2009 14:43:22, but unless you have changed your NLS_DATE_FORMAT setting you would only see the date portion of it.
    When comparing a date value to sysdate you may need to truncate one or both values depending on the results you are looking for.
    e.g.
    the only difference between these two queries is that I truncate sysdate in one of them:
    with t1 as (select 1 id, to_date('12-AUG-2009','dd-mon-yyyy') dt from dual
      union all select 2, to_date('12-AUG-2009 14:23','dd-mon-yyyy hh24:mi') from dual
    select sysdate, t1.* from t1 where sysdate <= dt
    SYSDATE                   ID                     DT                       
    12-AUG-2009 11:38:21      2                      12-AUG-2009 14:23:00     
    1 rows selected
    with t1 as (select 1 id, to_date('12-AUG-2009','dd-mon-yyyy') dt from dual
      union all select 2, to_date('12-AUG-2009 14:23','dd-mon-yyyy hh24:mi') from dual
    select trunc(sysdate), t1.* from t1 where trunc(sysdate) <= dt
    TRUNC(SYSDATE)            ID                     DT                       
    12-AUG-2009 00:00:00      1                      12-AUG-2009 00:00:00     
    12-AUG-2009 00:00:00      2                      12-AUG-2009 14:23:00     
    2 rows selected

  • Search on Keyword not showing correct results

    I tagged all 5k of my images keywords. Basically people's names of who is in the image.
    I then ran a search by person's name, but a lot of the results do not contain the keyword I searched for.
    In the results I checked the metadata tab under Keywords: and my search term is not listed.
    Am I missing something?
    thanks

    Yes, I added the keywords using 'Batch Change....'
    The Keyword HUD shows all my keywords listed right there at the root. ie. My keywords are not under any other keywords. ie. iPhoto/Raw or Personal/Backyard
    Ta

  • NonLinearFitWithMaxIters does not give correct results for phase

    Dear all,
    I am trying to fit a sin cuve with NonLinearFitWithMaxIters function of labwindows, but the results given by this function are dispersed a lot (the function does not give same results).
    In fact, I have two waveforms signals v and i (of 104 points), and I  find the phase between the two signals with NonLinearFitWithMaxIters.
    The two singals v and i are  measured with an osciloscope.
    I use the following fit functions :
    v=p1*sin(wt+p2) ;
    i=p3*sin(wt+p4) ;
    I use the NonLinearFitWithMaxIters function to fit the data and to have the parameters  p1, p2, p3, p4. Then, the phase is claculated as follow phase=p4-p3.
    The problem is that the phase calculted between the two signals (v and i) is different for each run for the same conditions.
    In fact, for a same condition, I measure different times the signals v and i, and I calculate the phase p4-p3, using NonLinearFitWithMaxIters. The goal is to calculate a mean of phases for the same condition. For example, there are cases where the phase=-5 degree, and other cases when phase=12 degree.
    For ten measures of v and i, the phase calculated is different. I get a big dispersion between the phases.
    I would like to know please why I have a big difference in phases calculated with the same condition?whern using NonLinearFitWithMaxIters.
    I read that this function does not give all time the correct results, is there a way to know when the results are not corrects and when they are correct ?
    And is there any solution to find accuratly the phase between the two waveforms.
    Thank you for your precious answer.

    The pseudocode which I am using is :
    v_err=NonLinearFitWithMaxIters(array_x,array_v,v_y_fit,1252,100,sinus,v_coef,2,&v_mean_squareError);
    The fit function is
    double sinus(double x, double a[],int noef){
        return (a[0]*sin((w*x)+a[1]));
     I use the same inital coeficient of v_coef for each run :     
    v_coef[0]=0.03;
    v_coef[1]=0.2;
    These coeficient are choosen arbitrary.
    In this case, the number of points of the data is 1252 (the data of array_v).
    The number of iterations is 100.
    For the array_x, the distance between adjacents values of the array is dt=0.4*1e-9(difference between array_x[i] anv array_x[i+1]=dt=0.4*1e-9 ).
    for (i=0;i<1252;i++){
    array_x[i]=i*(0.4*1e-9);
    The means square error returnned by the function when it is complished is  small, of the order of 0,001.
    I read the help
    « From the help:
    You must pass a pointer to the nonlinear function f(x,a) along with a set of initial guess coefficients a. NonLinearFitWithMaxIters does not always give the correct answer. The correct output sometimes depends on the initial choice of a. It is very important to verify the final result.
    That means that the function cannot be used, as it does not give correct results. How
    can we check if the results are good or not ? in my case.
    I think that in my case, the function does not give correct results, but how can I check if the results are good, or not ? The mean square error is small.

  • Replenishment - Msg WT134: Store order processing did not return any result

    During the Replenishment run using TCODE: WRP1 following error is being encountered
    <b>Msg WT134: Store order processing did not return any result</b>
    The error is reported when more than 9 articles are being used.

    impelemented the oss note: 979935

  • Play to order command does not show--help

    When I rearrange my ipod shuffle list and do control click on a song for the shortcut menu the play to order command does not show up i the menu. The menu does not look like what was in the other post. I am frustrated because I listen to audiobooks... and need them in order.
    The menu has lots of options, but not the play order command. HELP.

    Hello Beth,
    Unfortunately, Apple didn't consider that some people might buy a shuffle but want to use it in normal ways. I'm not using iTunes anymore... it causes more trouble than help. But I remember iTunes arranging the music on my shuffle in the order items were put there. Why don't you try it?
    Kahlil

  • Sales Order number is  not showing in MD04

    Hi Gurus  ,
    I have got one case where  Sales order number is not showing  in MD04 screen  . This sales order , line item  has already delivered , PGI &  billing document also been generated  . Moreover accounting document is also been created .As cheeked & found that it is not shwoing in MD04 screen  because at  the time sales order creation  availability check “01” was maintained  which has sum up all the  requirement in one  particular day ( Also as
    per SAP note -70408) .
    Now because  all the subsequent document has been generated  for sales order so we can not mark it for “Rejection for rejection “  & to create new  sales order  with  availability check “02” in material master .
    Please let  me know the possible solution for the same or  if any  sap note would  be required to get the sales order number in MD04  .
    Thanks  ,
    Aman

    Hi Kiran ,
    Actually  before running the  report in “SDRQCR21”  in PRD I wanted to  run it in “Quality “ .
    In quality I am not able to simulate the same  .
    Please refer below points related to my testing result .
    1.Mainatined availability check group “01” .
    2 . Created Sales order 
    3. Check in MD04 screen & as expected  sales order  was coming blank  with negative Qty .
    4. Run the MRP which generated PR
    5. PR converted to PO  & GRN was done which updated the stock
    6. Created delivery  & checked the same in MD04  . It was also coming blank  . No delivery  document  numbe was showing in screen  but  it was coming with negative  Qty .
    7. Done the PGI  & blank  delivery document number  was removed & it become  normal .
    In PRD .
    There are 3 sales order
    One sales order is already marked reason for rejection & two sales order delivery , PGI has been done  .
    But still it is showing  blank sales order with negative Qty  & after MRP run it is generating the PR also  .
    I don't why it was  showing with negative values  .
    Please refer attacehed screen shot  .
    Thanks,
    Regards ,
    Aman

  • After upgrading to iOS 8, the weather app does not show up results for any of the Indian States/cities

    After upgrading to iOS 8 on my iPhone 5, the weather app does not show up results for any of the Indian States/cities. Can Apple look into this or does anyone have a solution to this.

    Swipe from bottom of days listed ("Wednesday, Thursday, Friday, etc")  upwards.  I thought it was gone too but it's still there~just takes different way to access it.

Maybe you are looking for

  • After IOS 8 update I my wifi toggle is greyed out.

    After some research I learned I should have turned off the where's my iPad on iCloud before I updated to IOS 8.  Now I cannot turn it off or do anything that requires the internet.  Yes I have tried to reset via iTunes and the iPad itself but without

  • Why won't my external hard drive mount in Disk Utility even when it shows up on the list?

    Hey all, For the last few years I've used a Samsung S2 1TB external harddrive to back up all my files, this includes photos, music and a vast amount of resources required for Uni. However I plugged it in for the first time in about two months and dis

  • Gpu for iphone 4s air 3.4 drop in performance

    Hello, im building an air 3.4 actionscript mobile app in flash builder 4.7 for iphone. this is my first app. the core function of this app is to play movieclips exported from flash in 1 swc. the clips after added on stage are being scaled 4 times big

  • Problem with action script from Schewe and Frasier book.

    I am working on a Photoshop CS3 action script to open raw files, do a couple of modifications in Camera Raw, exit camera raw and save the file as a jpeg. I think this should work, because I am working on an example out of "Camera raw with Adobe Photo

  • Importing video from flash card

    I tried import some short video i took from a cannon digital camera.the still shoots imported fine into iphoto,but i cant seem to view the video.quick time does not recognize it.is there a soloution?thanks