Sort on field containing Hebrew description in PowerView connected to MultiDimentional Model

Hi,
We are connected to MultiDimentional via Power View in SharePoint 2013.
The Local Identifier Code is 1037 (Hebrew).
The problem is that every time you check a field containing description in Hebrew
the query is stuck, cause there is an automatic Order by clause on fetched fields
in the query generated by the PowerView. For ex:
EVALUATE
  FILTER(
    KEEPFILTERS(
      SUMMARIZE(
        VALUES('DW DIM CUSTOMERS'),
        'DW DIM CUSTOMERS'[BRANCH CD.Key0],
        'DW DIM CUSTOMERS'[BRANCH CD]
    NOT(ISBLANK('DW DIM CUSTOMERS'[BRANCH CD.Key0]))
ORDER BY
  'DW DIM CUSTOMERS'[BRANCH CD], 'DW DIM CUSTOMERS'[BRANCH CD.Key0]
If the order by on 'DW DIM CUSTOMERS'[BRANCH CD] (the desc of the branch)
removed (manually in SSMS) the query runs without any performance issues.
How this could be fixed?
TY

Hi Dimitri,
According to your description, did you want to improve MDX query performance?
In SQL Server, we can consider following conditions to improve SSAS query performance:
Use calculated members with Scope assignments instead of using IIF.
Remove empty tuples from MDX result.
Optimize cube and measure group design, etc.
Reference:
http://technet.microsoft.com/en-gb/library/cc966527.aspx
As per my understanding, there is no limit to the number of columns in the ORDER BY clause; however, the total size of the columns specified in an ORDER BY clause cannot exceed 8,060 bytes. It may be cause the similar issue.
If there are any misunderstanding, please feel free to let me know.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support

Similar Messages

  • Field containing a list of sizes or a table ?

    Iain was kind enough to advise on using a table instead of a field containing a list of 6 comma separated items.
    I did this, but can I throw a new slant on why I'd prefer to use a field ?
    JEWELLERY WEB PAGE
    select * from merchandise where merchandise.category = "Jewellery"
    PRODUCT DETAIL PAGE
    When a user clicks on any items from above page, the hyperlink sends the unique merchandise_ID in the link, to a product detail page using a new query:
    select * from merchandise where merchandise.merchandise_ID = URL.merch_ID'
    This jewellery comes in various sizes. These sizes were in a comma separated list in a field called 'sizes' in the merchandise table. I'd been advised to move them to a table instead. If I moved the sizes to a separate table I'd have to add a LEFT JOIN to include the sizes table or run a separate query on the sizes table (where sizes.merchandise_ID = URL.merch_ID) - which is a performance hit.
    All I need to do with the sizes is produce a drop down list the user can choose from - so isn't it better I just put the sizes in a single field, separated by commas ? Then use Coldfusions inbuilt functions to parse the list into a drop-down box ?

    A thought experiment that might convince you.
    Lets compare these two data schemas.
    CSV
    Item
    Size
    Shirt
    Small,Medium,Large
    Coat
    Medium,Small,Large
    Pants
    Small,Large,Medium
    Shoes
    Large,Small,Medium
    NORMALIZED
    Size Table
    Key
    Size
    1
    Small
    2
    Medium
    3
    Large
    Item - Size Join Table
    ItemKey
    SizeKey
    1
    1
    1
    2
    1
    3
    2
    1
    2
    2
    2
    3
    3
    1
    3
    2
    3
    3
    4
    1
    4
    2
    4
    3
    Item Table
    Key
    Item
    1
    Shirt
    2
    Coat
    3
    Pants
    4
    Shoes
    Now imagine these two systems extended to multiple thousands of items.
    Then imaging that some marketing type decided that "Large" was an ugly description for that size so they want to change it to "Husky"  and|or they want to change the "Small" size to "Petite".
    In the Normalized version you make one or two updated to the size table.  I don't even want to try and describe the ugly update you have to try and create that involves looping and string manipulations to try and update all the records in the CSV version.

  • "Sort Album" field

    Does the iPod classic use the sort album field so it will display albums in non alpha order like iTunes can, the 5.5G ipod ignores them, hoping the classic will not
    Flubster

    The short answer is no, not really. The much longer answer is contained in the thread below at iLounge. You should pay particular attention to posts by brendan99.
    iPod Classic - What's up with compilations?
    http://forums.ilounge.com/showthread.php?t=204937

  • Want more time to read the field "add a description"

    When I am writing a long description in the field "add a description" and then I want to read all I have written, I only have about 10 seconds to read the content in the "enlarged field". Is it possible to do something to get more time to read?

    Great Now it counts the column as 43, its correct
    but I get this error while coming to this line
    int j = addressData.RowCount;
                    for (int i = 0; i < j; i++)
                        IRfcStructure row = addressData.GetStructure(i);---> Error at this line
    ERROR msg:     FIELD FIELDNAME of TABLE [STRUCTURE RFC_DB_FLD] (GETTER): cannot convert CHAR30 into IRfcStructure
    so I changed the code to
    IRfcStructure row = addressData.GetStructure(i.ToString());
    It shows error as: Element 0 of container metadata  unknown [RfcInvalidParameter Exception]

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Select from table where field contains the first 3 character

    The value of the field contains leading zeros like 0000000123, 0000001123, 0000011123.
    Now we need to check the table for entries that contains the first three characters excluding the zeros.
    If we are looking for '123' then we should be retrieving 0000000123 and not 0000001123 or 0000011123.
    Is there a way to get that value in SQL statement with only the exact result?
    Thanks.

    P156550 wrote:>
    > We've tried to use LIKE in our SQL statements and filtered it but there are a bunch of data and we want to get the exact row to improve the performance.
    Hello Adjhan,
    Yes, you need not use LIKE.
    You can use CONVERSION EXIT. I see that the length of your data is CHAR10.
    So try to use the code i have suggested & revert back if any doubts.
    @Soumyaprakash:
    If read the original post carefully, the OP has said:
    If we are looking for '123' then we should be retrieving 0000000123 and not 0000001123 or 0000011123.
    So LIKE does not come into the picture.
    Good Luck,
    Suhas

  • Can we sort one field based on other field in messsage mapping !!

    Hi Folks,
    I have got source xml with couple of Vendors, Vendors has got promotions on different products with different dates. If I sort date field, product quantity is not sorting. How Can I sort both fields at the same time, if I sort Promotion date field in ascending order, the product quanitity has to sort respectively?
    Any one can help in this please , any links are examples etc..
    Kind Regards
    Thanks in advance.
    San

    Hi Folks,
    I have tried with this function SortbyKey, it always throuing exception. That's the reason I came to you guys. Please have a look following mapping
    ZY2K_DATE    ----> Remove Context -->
                                           Sortbykey  -----> Condition etc.,
    ZA02_QTY   -----> Remove Context -->
    if I try to see display queue on Sortbykey  I am getting ' Exception'
    Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Queues have different lengths in function sortByKey] in class com.sap.aii.mappingtool.flib7.NodeFunctions method sortByKey[[Ljava.lang.String;@5be18f1d, [Ljava.lang.String;@357ae80b, SortComparator.CASE_SENSITIVE, SortOrder.ASCENDING, com.sap.aii.mappingtool.tf7.rt.ResultListImpl@1818459b,
    Source
    <ROOT>
    ...<OUTPUT>          - - - -       0..unbound
    .......<Group_LIN>    - - -        0..unbound
    ..........<Group_ZA>  - - -       0..unbound      
    ..............<D02_ZA>  - - -        0..unbound
    ..................<ZA01>QD</ZA01>
    ..................<ZA02>35.0</ZA02>
    ..................<ZA03>CT</ZA03>
    ..................<Z_Y2K_DATE>20100723</Z_Y2K_DATE>
    ..............</D02_ZA>
    ...........</Group_ZA>
    ........</Group_Lin>
    ....</OUTPUT>
    Target
    ProductDemandInfluencingEventNotification  0..unbound
    ...ProductDemandInfluencingEvent                 1..1
    .......Item                                                           1..unbound
    ..........OrderForecastTimeSeries                     0..1
    ..............Item                                                    1..unbound
    .................ValidityPeriod                                  1..1
    ......................StartDateTime                             0..1
    ......................EndDateTime                               0..1
    .................Quantity                                           1..1
    the above D02_ZA tag sometimes comes more than one QD with different dates. Same dates has to go under one tag with respective quantities!! This is the situation, can any solve this please?
    The target tag "ProductDemandInfluencingEventNotification" will generate based on number of promotions on particular date. Ex: if one vendor has 'n' number products promotions on 3 different dates, 3 "ProductDemandinfluenceevennotifications" has to generate, that three promotion dates and quantities has to respectively.
    That ZA02 (Qty) value has to go Quantity target field.
    Kind Regards
    San

  • How to create a Tip for a field in a Descriptive Flex Field in Self Service

    How to create a Tip for a field in a Descriptive Flex Field in Self Service ?
    Example :
    For Address
    Each Address Line should have one Tip.
    What should I do ?
    Thanks,
    John

    Hi John,
    It seems you have created Address Location DFF in self service in OA Framework.....
    I have created a Address Location flex in OA Framework . It dipslays the segments properly but i dont want to display the segments if they dont have any value.
    I only want to display segments with values . The segments with null values should not display at all...
    i.e , if Address Line 2 value is null , it should not display Address Line 2..
    If you have done this, pls let me know how to go abt it.
    Thanks in Advance,
    Tanveer

  • How to set a field as mandatory when another field contains specific values

    Hi SAP Experts,
    Is it possible to set the Plant Specific Material Status field as mandatory when the DChain-spec. status field contains a specific set of values? Thanks.
    Regards,
    Kim Yong

    Hi Kim,
        I think you can achieve this using the validation tab in the field.Add a new rule for validation select the condition as test and in the value you have use formula according to your senario.Select the 'Stop execution'.This will make the field mandatory.
    I hope this helps...
    Naga

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Is there a way to sort button field names?

    In the Button Options dialog box, in the Behaviors tab: Behavior is Show/Hide fields. I cannot figure out ID's method of organization of organizing the field names. Sometimes, the new fields go at the top. Sometimes they go at the bottom... It doesn't appear to be alphabetical, numerical, or chronological. Help!
    There also doesn't appear to be any way to sort these field names. My document has about a hundred fields so far, with a couple hundred more to go. Is there any way to sort these names so they are easy to wade through?
    If sorting via script is not an option, maybe someone could help me understand the rationale (if there is any) to ID's way of listing field names.
    Thanks!

    When you say field, do you mean specifically a form field, such as a text field? Or is the information regular text on the page?

  • How to check whether a field contains at least one numeric value

    how to check whether a field contains at least one numeric value..

    Hi,
    I hope that this code will works.
    constants:
       c_digit_grp        TYPE char11         VALUE '0123456789',        " Digit group
    * Data Declaration
    data :
      str   type string.
    * if you want check entire string and pass entire string
    if  str CA c_digit_grp.
    * write your logic ---this block will execute atleast one numeric value exists in the string
    Endif.
    Regards
    Bhupal Reddy

  • SQL LOADER - fields containing CRs

    I am using SQL loader for uploading some data extracted from another database. data contains one field that has 'Carriage Return' characters. when sql loader reads this character it treats it as beginning of another record. This results in load errors.
    Can anybody suggest a way to handle the fields containing Carriage Returns ?
    Thanks much.
    -shailesh

    Hello,
    You can load the data as in a stg table and the move from stg table to regular table concatenating both call_temp and call_date column together.
    load data
    infile 'Cell_Phones.dbo.Account_Details.dat' "str '<EORD>'"
    into table MD_CELLPHONE.Account_Details_stg
    fields terminated by '<EOFD>'
    trailing nullcols
    Account_Number ,
    Phone_Number ,
    Call_temp,
    Call_Date
    Convert  to right date format
    Insert into account_details (col1 , col2, col3, ...)  select  val1 , val2 , to_date ( val3 || ' ' || val4) ...
    from account_details_stg;
    Regards
    Edited by: OrionNet on Feb 2, 2009 5:11 PM

  • Sorting on Field Symbols

    Hi,
      I have created ztable and table maintenance generator for the same.  So its already generated code like
    PROCESS BEFORE OUTPUT.
      MODULE LISTE_INITIALISIEREN.
      LOOP AT EXTRACT WITH CONTROL
       TCTRL_YS014 CURSOR NEXTLINE.
        MODULE LISTE_SHOW_LISTE.
      ENDLOOP.  etc....
    Here EXTRACT Is a internal table of type ANY... Now i am getting records sorted by key fields of Z-table.
    But I need Sort by some other fields.. So i am trying to sort EXTRACT but not able to...
    Can anybody helpme on this..
    Rayudu

    Hi rayudu,
             this process may help u.Please check.
    FIELD-GROUPS: HEADER, ORDER, PRODUCT.
    use insert statement to add the field to teh field-group which u want
    to sort.
    use extract statement to populate u r field-group.
    And sort by field.
    Thanks,
    Vamsi

  • Query field contains backward slash

    I am trying to query a field contains backward slash (for example,
    "com\aaa\bbb" in database) by using kodo 2.5.2 and msde2k. If I use the
    following condtion string, I am not able to get any record back.
    Sring condtion = "com\\aaa\\bbb";
    String filter = "aProperty == \"" + condition + "\"";
    (In the log message, this condition string become "comaaabbb")
    I have to use 4 slashes to get record.
    Sring condtion = "com\\\\aaa\\\\bbb";
    String filter = "aProperty == \"" + condition + "\"";
    (In the log message, this conditon string become "com\aaa\bbb")
    Any ideas or comments.
    Thanks
    William

    Thanks a lot for the answers.
    It seems there are some problems in my sample code. Here is correct one.
    (CASE I) - I use double slashes in the condition string in this case and
    it doesn't work.
    Sring condtion = "com\\aaa\\bbb";
    String filter = "aProperty == "" + condition + """;
    (In the log message, this condition string become "comaaabbb")
    (CASE II) - I use forth slashes in the condition string in this case and
    it works.
    Sring condtion = "com\\\\aaa\\\\bbb";
    String filter = "aProperty == "" + condition + """;
    (In the log message, this conditon string become "com\aaa\bbb")
    Thanks
    William Perng wrote:
    I am trying to query a field contains backward slash (for example,
    "comaaabbb" in database) by using kodo 2.5.2 and msde2k. If I use the
    following condtion string, I am not able to get any record back.
    Sring condtion = "com\aaa\bbb";
    String filter = "aProperty == "" + condition + """;
    (In the log message, this condition string become "comaaabbb")
    I have to use 4 slashes to get record.
    Sring condtion = "com\aaa\bbb";
    String filter = "aProperty == "" + condition + """;
    (In the log message, this conditon string become "comaaabbb")
    Any ideas or comments.
    Thanks
    William

Maybe you are looking for