MDX - function expects a string or numeric expression for the 1 argument. A tuple set expression was used.

why this query
select [Measures].[F Events Count] on 0,
Filter([D Actor Player].[Actor].children,
([Measures].[F Events Count],
{([D Date].[Hierarchy].[Season].[2012 - 2013]),([D Date].[Hierarchy].[Season].[2013 - 2014])},
[D Result].[Result].&[Goal])
>=5) on 1
from [FBA Cube]
gives this error:
Query (3, 3) The >= function expects a string or numeric expression for the 1 argument. A tuple set expression was used.
while the following query works fine
select [Measures].[F Events Count] on 0,
Filter([D Actor Player].[Actor].children,
([Measures].[F Events Count],
[D Date].[Hierarchy].[Season].[2012 - 2013],
[D Result].[Result].&[Goal])
>=5) on 1
from [FBA Cube]
why having set inside Filter's boolean expression generates that error? how can we
keep the set inside the Filter's boolean expression but
solve the problem? please explain the reason and solution

Hi Butmah ,
I think you should use an aggregation function with the set and the tuple ... adding an AdventureWorks snippet :
select [Measures].[Order Count] on 0,
Filter([Product].[Category].children,
SUM({[Date].[Fiscal].[Fiscal Year].&[2011],[Date].[Fiscal].[Fiscal Year].&[2009]}
,([Measures].[Order Count],[Geography].[Geography].[Country].&[United States])
>=5) on 1 
from [Adventure Works]
Regards, David .

Similar Messages

  • Is there any way to get function keys on wireless keyboard to function like they do on a PC for the iPad?

    I need function keys for the warehousing system I run for work.
    I am logged on via VPN and Pocketcloud app in a "PC like" desktop.
    The program is E-term by Eclipse.
    Hoping to be able to use wireless keyboard to do this.
    No luck so far.

    jpaul wrote:
    Hi Jim,
    Thanks for the post. I researched on your issue using different combinations of VI, pane, and path control event and was unsuccessful in getting an event to fire when the drag starts outside of the LabVIEW window. I think you are on the right path with using a Windows API, which then could be interfaced into LabVIEW using ActiveX or .NET containers. If you are able to detect it, then you can use a user event to fire a drag start in LabVIEW. This should then allow you to successfully fire a drag over event. The NI Developer Zone article below will get you started on creating and using user events:
    Using Dynamic Event Registration to Watch for User Inaction With a Control
    Hope this helps to get you started on the right path. Have a good evening!
    Cheers,
    Jonah
    Applications Engineer
    National Instruments
    Hi Jonah,
    Thanks for your efforts in confirming my results.  I'd prefer not to use any activex or .net containers, since this will make the code extremely coupled to a specific platform.  If I can find a way to do this, using window handles or something, via WinAPI that would be preferable, because I could use a conditional disable structure to comment out the code on non-windows machines.
    If anyone has any ideas about how to receive these events, using window handles and messaging, that would be great.
    Thanks,
    -Jim

  • Functional Administrator is not a valid responsibility for the current user

    Hi,
    I have sysatem administrator responsibility as I am DBA on PRD. I assign myself functional administartor responsiblity. Now when i access fucntioanl administrator responsiblity,
    I am getting error as
    Functional Administrator is not a valid responsibility for the current userPlease help as I need to look at SSHR page for the use who is getting error while laucnhing
    Employee Self Service >>> My Benefits Data >>> Financial Profile
    Error: the requested URL was not found, or cannot be served at this time
    Please help for how I can access functional administrator resp to work further on users issue

    Please post the details of the application release, database version and OS.
    Have you granted “Security Administrator” role to your user? If not, please do so and check then.
    Also, check Apache log files for any errors.
    Thanks,
    Hussein

  • Is it possible to use a Case Structure to hide numeric indicators on the Front panel when they are not in use?

    I am rather new to LabVIEW, have only been using it for about 1.5 weeks as of this post, which means I may be missing something rather obvious due to ignorance, but is there any way to have my front panel change as my case changes due to user selection of a certain case via the front panel?
    The goal of the program is to make a simple layout for a user that is using the digital multimeter that the proposed code is designed for and I don't want tons of numeric controllers and such clogging up the screen space that don't work with the function the user is using to measure with.
    Thanks in advanced.
    Solved!
    Go to Solution.

    Check out the property node for the controls
    Visible Property
    Short Name: Visible
    Requires: Base Package
    Class: Control Properties
    Displays the front panel control.
    This property is similar to the Show Control and Hide Control options on the shortcut menu of a control.
    Also look at the TAB control to control which controls are available to your user.
    Omar

  • How do I get a numerical value for the number of tick boxes or "true / false" in a column?

    Hi,
    Any help for my very simple brain appreciated...
    All I want to do is add in a formula for adding up the ticks in column B i.e. B2 - B46 so the answer of ticks is in B47!?
    And what's doing my head in is I can't even copy and paste a section to show on here!!
    Thanking anyone that can help.

    dominic.birch wrote:
    Hi,
    I just can't do it - it's doing my head in!!
    I'm adding the footer as suggested but the =COUNTIF(B, TRUE) isn't working; it just shows as I've typed it i.e. doesn't add up the ticks??
    D
    It would appear that you are typing it in as text, not creating a formula.  On the iPad, you don't type an "=" nor do you type the function name. You press the "=" button which then lets you start a formula. You choose the function by pressing the "functions" button then choosing it from the list. The function shows up in the editting bar with words in colored ovals for the parameters. You click on the various parameters in the formula to edit them. And you use the mathematical operators and click on cells or choose formulas to create mathematical operations.

  • Call library function will not retain change of directory for the library.

    I have created a call to a dll made in Visual C++. Everything works fine. I then configure the vi to call the a newer version of the library that is in another directory. The Call Library Function dialog box updates with the new path. I click the OK button. Then configure the vi again to very my change took and it is back to the original path to the library.
    Why can I not change where to find the library? I am sure that I can make a new vi an input all the parameters again, but I have many parameters and calls to the same dll. Making new ones each time the location of the dll changes is not an option.
    Thanks for your help.
    Attachments:
    code.zip ‏106 KB

    If you have more than one VI accessing the same DLL, then you can't
    change the DLL location without unloading all the other VIs first. This
    is because Windows will always look first for the DLL in memory, before
    even attempting to load it from disk. And if another VI makes use of
    that DLL it will be still kept in memory.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Method(String, char) not applicable for the arguments()

    Hi. Im trying to run this method that I made but I cant coz I always get this error. the ff is my code:
    class Sample {
         private String word = "apple";
         private char a = 'p';
         public static void main(String[] args)
              callingCounter();
         public int counter(String word, char a)
              int position = 0;
              for (int i=0; i<word.length(); i++)
                   position = word.indexOf(a);
                   System.out.println(position);
              return position;
         public int numberOfLetters(String word, char a)
              return numberOfLetters;
    thanks a lot

    and your method should be
    public int callingCounter(String word, char a)
    int position = 0;
    for (int i=0; i<word.length(); i++)
    position = word.indexOf(a);
    System.out.println(position);
    return position;
    }

  • Getting numerous calls for the people who used to live here

    At least 2 -3 times a day, i getphone calls for the people who used to live in my house. They are all debt collectors and i have told them that they do not live here but it doesnt matter. Short of looking up their new number and giving that to the debt colllectors, what can i do?

    Your problem has nothing to do with Verizon and everything to do with debt collectors...
    When these individuals call, take down the number (from the caller ID), time and date and tell them the following:
    a) That the party that they're looking for does not reside there anymore.
    b) That you are recording the calls (and indeed do so) and that you'll be forwarding the tape to your attorney who will sue them for violation of Fair Debt Collection Practices Act.
    c) If they don't stop, sue them. You can recover up to $1,000 for every violation that is proven in court.
    Happy hunting.

  • Cannot enter correct values in the SQL server express 2012 using labview

    Hi everyone,
    I am trying to enter the 2D array I get from DAQ into the SQL server express 2012 using Labview. When I am run the software, it connects with the table but doesn't enter the correct values. It only enters the "0" for each column of the table. I have attached the VI as well as the screenshot from the database server. 
    I am also writing the same 2D array data into the text file and I get the correct readins there. 
    Is there something I am doing wrong here. 
    Attachments:
    test.png ‏251 KB
    test3.vi ‏96 KB

    If you had read the QL manuals or reference books, you would be aware SQL Server doesn't do multidimensional arrays.
    I prefer BLOBs or VARCHAR(MAXCHAR) as an alternative. I enter the values in formatted string values delimiter separated.
    But how to deal with multidimensional arrays. Well up to 3-5 you can use simple value for each "dimension". So the lowest dimension
    would be comma delimit. The next set of values and each succeeding set for each 2nd dimension values would have the "set" of values separated
    by a ":" or semicolon. For the third I use the ":" or colon to separate each 2D block of the 3rd dimension. This can all be easily reparsed
    with a multidimensional parser for the application. Should be simple to build. (e.g.. Use string arrays to parse the higher dimensions
    and numeric array for the lowest dimension). The VARCHAR(MAXCHAR) has an upper data bound of 2GB! If you have to save more
    than 3 dimensions for most all applications, you don't understand how best to analyze the test data and may want to give it more 
    thought to optimize the operation as well as the design, so it doesn't get too complex. By the way I use Data Clusters built in the
    data order and type as for SQL Server Data Table. This makes the design of the SQL Server interface easy as pie .

  • [svn:bz-trunk] 11030: Tweak the deserialization of ASObjects to treat an empty string for the type of an object as null .

    Revision: 11030
    Author:   [email protected]
    Date:     2009-10-20 11:35:02 -0700 (Tue, 20 Oct 2009)
    Log Message:
    Tweak the deserialization of ASObjects to treat an empty string for the type of an object as null. It appears that there is some logic in the LC remoting code that relies on a non-null class name to always exist. This change reverts to the old behavior of not allowing empty string as a value for the ASObject.namedType.
    This should fix bug 2448442 and its duplicates caused by the recent serialization changes.
    I don't think this is the perfect fix. Pending further investigation, a better fix would be either:
    a. If it's OK to assume that empty string should always mean null for the type of the ASObject, the code that enforces it should be in the setter/getter inside ASObject and not in the deserializer.
    b. ASObject doesn't guarantee that a named type exists or is valid. In that sense an empty string is as bad as some random characters that cannot be a valid class name in java, so depending on how disruptive it may be, the fix should be in any logic that uses ASObject.getType().
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/AbstractAmfInput.java

    Hi Pavan,
    "In your payload there is no namespace prefix for the elements under PayloadHeader element."
    Yes, you are right - but this message is standard AQ Adapter Header message - it's not defined by me. I just used message which was automatically added to my project when I have defined AQ Adapter.
    "In your process is the default namespace is same as namespace value of tns ??"
    Do you mean targetNamespace? If yes it's different as it points to process "targetNamespace="http://xmlns.oracle.com/PF_SOA_jws/PF_APPS/APPS_PROCESS" (names of application and process have changed as I try different ways to do that)
    ns1 is: xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/aq/PF_SOA/PF_APPS/PO_AQ"
    "another thing is tns and ns1 should have same values.."
    When I create a variable of header type, namespace ns1 is automatically created for it. I set it as property of receive activity. When process is instantiated on the serwer I get the error in which you can see that namespace is tns.
    Maybe I'm doing something wrong but I don't see how I could fix this in my process.
    You can see that the message I get on the server has nothing in common with the application/project/process names. Is it possible to define such variable?
    Regards
    Pawel
    PS:
    In Transformation xsl file, both variables (source and target) has tns namespace for Header and PayloadHeader, and no namespace for subfields.
    Edited by: pawel.fidelus on 2010-01-05 02:37

  • Function module to get actual salary paid for a particular period

    Hi All,
    I have a requirement to build a report on the monthly superannuation contributions the company makes to the employee [Australian Payroll], along with a few other information. We are on a weekly payroll and make super contributions once a month.
    Is there any Function module or table that stores the pay results for a period [from which I can calculate the superannuation amount] or superannuation pay ?
    Or is there an alternative way of approaching to get the information ?
    Thank you,
    Satish

    I used table hrpy_rgdir  to get sequence number for the given pernr, payroll area and dates.
    Using the sequence number, I am calling Function PYXX_READ_PAYROLL_RESULT to extract the payroll results.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE it_hrpy_rgdir
      FROM hrpy_rgdir
      WHERE srtza = 'A'             
        AND paydt IN sopaydt
        AND abkrs IN soabkrs
        AND pernr IN sopernr.
    LOOP AT it_hrpy_rgdir.
      PERFORM get_rt USING it_hrpy_rgdir-pernr it_hrpy_rgdir-seqnr.
    ENDLOOP.
    *&      Form  get_rt
    *       text
    *      -->PERNR      text
    *      -->SEQNR      text
    FORM get_rt USING pernr seqnr.
      CLEAR: it_payroll_result.
      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
        EXPORTING
          clusterid                    = 'RQ'
          employeenumber               = pernr
          sequencenumber               = seqnr
        CHANGING
          payroll_result               = it_payroll_result
        EXCEPTIONS
          illegal_isocode_or_clusterid = 1
          error_generating_import      = 2
          import_mismatch_error        = 3
          subpool_dir_full             = 4
          no_read_authority            = 5
          no_record_found              = 6
          versions_do_not_match        = 7
          error_reading_archive        = 8
          error_reading_relid          = 9
          OTHERS                       = 10.
    ENDFORM.                   
    For any period, the function module just returns sy-subrc = 6 [no_record_found].
    We are on Australian Payroll.  Could you please let me know what I might be missing or is there an alternative way of getting the information ?
    Thank you

  • Query string is null while dispatching the request in Websphere for Endeca pages

    Hi,
    When AssemblerPipelineServlet forward the request with dispatcher the query string is missing from the request in Websphere 7.0 only(works fine in JBOSS).
    This is happening only for the pages those are created in the Experience Manager.
    Ex: /store/us/detail?A=1204455 - This URL will render the /cartridges/ProductDetail/ProductDetail.jsp page. When we access the /OriginatingRequest.queryString in the JSP, it is giving null.
    Please help us to resolve this issue.
    Regards,
    Ravinder P

    Got the solution to this problem . I was using wlClient.jar & WlfullClient.jar in my classpath . removed wlClient.jar from java client app and now i am able to get the IWorkflowContext object.
    Hope this helps for the coming generations :)
    Thanks

  • How to write strings with an underline on the TOP-OF-PAGE of ALV

    How to write strings with an underline on the TOP-OF-PAGE of ALV

    if u r using classes and methods it can be done
    but if u r using normal fms and then u have to use HTML_TOP_OF_PAGE but the drawback for this it cannot be printed when the report is printed .

  • Expected type [STRING] found [MEMBER] ([Average]) in function [@ISACCTYPE]

    Hi
    We've upgraded from 11.1.1.0 to 11.1.2.1.
    The following member formula worked previously:
    if(@ismbr(YearTotal));
    +     Jun;+
    ELSEIF(@ISACCTYPE(Average));
    +     @AVGRANGE(SKIPNONE,@CurrMbr(Measures)->Month,@ILSIBLINGS(@CurrMbr(Period)));+
    ELSE
    +     @ACCUM(Month,Jul:Jun);+
    Endif;
    Now get the following error:
    +Error(1200354) - Error compiling formula for [YTD] (line 3): expected type [STRING] found [MEMBER] ([Average]) in function [@ISACCTYPE]+
    There is no member or member alias called 'Average' (I did a search).
    I refered to this forum item, but no solution was provided: @ISACCTYPE formula error
    Your assistance is appreciated.
    Cheers

    Hold on!
    I thought to query the SQL repository and got some help from this dodgy blog:
    http://camerons-blog-for-essbase-hackers.blogspot.com.au/2011/07/stupid-planning-queries-3-accounts.html
    For reference purposes, here's what I ran:
    select               
                   hspo.object_name
    from               hsp_object     hspo
    INNER JOIN          HSP_ACCOUNT     hspa     on hspo.object_id = hspa.ACCOUNT_ID
    where               1=1
    and               hspo.OBJECT_TYPE = '32' --Account dimension
    and               hspa.TIME_BALANCE = 3 --Time Balance = Average
    TIME_BALANCE
    WHEN 0 THEN 'None'
    WHEN 1 THEN 'First'
    WHEN 2 THEN 'Last'
    WHEN 3 THEN 'Average'
    ELSE ''
    Edited by: user964802 on Jan 17, 2013 11:19 AM
    Edited by: user964802 on Jan 17, 2013 12:07 PM

  • Remove leading zeros using MDX function

    Hello,
    BO XI R3.1 SP2 FP2.5, SAP BW 7.0
    This seems simple, but I cannot find a solution.
    How do I remove leading zeros from a character field in a OLAP universe. Is there any MDX function?
    I tried
    <EXPRESSION>
    Value([0MATERIAL].[LEVEL01].[[20MATERIAL]].[Value])
    </EXPRESSION>
    <EXPRESSION>
    StrToValue([0MATERIAL].[LEVEL01].[[20MATERIAL]].[Value])
    </EXPRESSION>
    I can remove the leading zeros in Webi, but we require it for ad-hoc reporting? Is there a way to do this in the universe?
    Thanks,
    Nikhil

    Hi,
    SAP BW MDX only allows calcuated expressions that return numeric values: this is one if the main SAP MDX limitations.
    By the way there is the abilitiy to return string only for those expressions:
    [Dimension].currentmember.name
    [Dimension].currentmember.uniquename
    So you can do this:
    <EXPRESSION>
    (right([0MATERIAL].currentmember.name, 4))
    </EXPRESSION>
    <EXPRESSION>
    (right([0MATERIAL].currentmember.uniquename, 4))
    </EXPRESSION>
    <EXPRESSION>
    (left([0MATERIAL].currentmember.name, 3))
    </EXPRESSION>
    <EXPRESSION>
    (left([0MATERIAL].currentmember.uniquename, 3))
    </EXPRESSION>
    Otherwise you can use WebI formulas as described in the thread.
    Regards
    Didier

Maybe you are looking for

  • How do you get your foot in the door?

    Hello! So I feel that I've done everything right so far. I've been using Java for over a year now. I got the SCJA cert and have an active secret clearance. I live in Jacksonville FL and the market is a little bit tough right now but seems like senior

  • Add Parameters in FBL3N Selection Screen

    Hi Experts, Would it be possible to add parameters in FBL3N selection screen? We would like to add Purchase Order, Delivery Order and Year/Month. Thanks in advance!

  • Can still write to a closed socket

    Hi When the server closes the socket , my client can still write to the outputStream no exception is thrown (although nothing actually reaches the server - as expected), however when I go to read from the socket I get a SocketException. This is a pro

  • "Date" Shown in "Overall Result"

    Hi, 1) When I run a report I am getting the Date and all the other KFs in the overall result where in I should see only the Amount added up and shown. 2) When I loaded the master data and the transaction data, I could the data getting loaded multiple

  • Photoshop elements 10 scanned photos

    Can someone tell me why my scanned photos go in fine and I am able to date & tag photos but when I review them later they come up with "searching for missing file" everytime