Membervalue returning as ALL using mdx

Following is the dimension and related attributes but below MDX query returning as
All for specified measure even after associating name column and key column to attribute. Any idea, where am I doing mistake but AdventurWorks cube returning the results as expected.
with member [Measures].[Test] as [Acct].[Date].currentmember.membervalue
select [Measures].[Test] on 0,
[Acct].[Name].members on 1
from [Cube]
RaghuM

Hi Raghu,
In your calculated member you are using Date attribute, but in the select query you are using Name attribute, this is where things are going wrong. Member value would show only when you use the corresponding attribute i.e. Date in your case.
with member [Measures].[Test] as [Acct].[Date].currentmember.membervalue
select [Measures].[Test] on 0,
[Acct].[Date].members on 1
from [Cube]
This should work.
Saurabh Kamath

Similar Messages

  • Combine two resultset sidebyside in coulmn using mdx

    hi i am new to mdx,
    i want to combine two select statement resultset (side by side like union) using mdx query,please any body help me to solve this query
    first query:
     SELECT
    { [Last Year] }
    ON COLUMNS,
     { {[Location].[Location].&[7], [Location].[Location].&[12], [Location].[Location].&[11],
    [Location].[Location].&[19], [Location].[Location].&[17], [Location].[Location].&[16],
    [Location].[Location].&[9], [Location].[Location].&[18] },{[Location].[Location].[All]}}
    ON ROWS
    FROM [Cube1]
    WHERE ( [Measures].[Labour %] )
    here [Last Year] is a calculated set
    {STRTOMEMBER("[Date].[Month].&["+ cstr(year(now())-2) +"-11-01T00:00:00]"):
            (STRTOMEMBER("[Date].[Month].&["+ cstr(year(now())-1) +"-10-01T00:00:00]"))}
    2nd query:
    WITH MEMBER [Measures].[Budget ] AS IIF(avg([Last Year],IIF(([Measures].[Budget]>0),[Measures].[Budget],null)),
                                            avg([Last Year],IIF(([Measures].[Budget]>0),[Measures].[Budget],null)),0.00),
    MEMBER [Measures].[YTD] AS IIF(avg([Last Year], IIF(([Measures].[Labour %]>0),[Measures].[Labour %],null))<>null,
                                  avg([Last Year], IIF(([Measures].[Labour %]>0),[Measures].[Labour %],null)),0.00),
    FORMAT_STRING = "Standard",
    BACK_COLOR = CASE WHEN [YTD] = 0  THEN /*White*/16777215 /*White*/  
    WHEN [YTD] <= [Measures].[Budget ] THEN 65408
         WHEN [YTD]<= [Measures].[Budget ] +5 THEN 65535
         WHEN [YTD]> [Measures].[Budget ] +5 THEN 255
    END,
    VISIBLE = 1
    SELECT
    {  [Measures].[YTD], [Measures].[Budget ] }
    ON COLUMNS,
    { { [Location].[Location].&[7], [Location].[Location].&[12], [Location].[Location].&[11], [Location].[Location].&[19], [Location].[Location].&[17], [Location].[Location].&[16], [Location].[Location].&[9], [Location].[Location].&[18]
    },{[Location].[Location].[All]} }
    ON ROWS
    FROM [Cube1]
    here   ==> [Measures].[YTD], [Measures].[Budget ] are calculated member
    i want result like in
    coulmns===> ytd,budget,nov,dec,jan,feb.,,,,,,,,,,out
    rows ====> are only locations and total(average of all locations)
    please guide me to get solution like mdx query

    Hi Vsp,
    According to your description, you want to create a calculated member to combine two members, and then set it as Default member, right?
    In SQL Server Analysis Services, we can use the script below to create a calculated members.
    create member currentcube.[Date].[Day of Week].[weekend]
    as
    {[Date].[Day of Week].&[6],[Date].[Day of Week].&[7]
    Every attribute in a dimension in Microsoft SQL Server Analysis Services has a default member, which you can specify by using the
    DefaultMember property for an attribute. This setting is used to evaluate expressions if an attribute is not included in a query. Please refer to the link below to see the detail information about specify a default member.
    http://technet.microsoft.com/en-us/library/ms174822(v=sql.105).aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • No data return from BI7 via MDX drvier in Crystal report

    I have:
    Windows 2000 SP4
    SAP BI7 patch level 16
    SAP GUI 710 patch level 7 (BW3.5 addon patch 3, BI 710 patch 5)
    Crystal report XI R2 SP4
    SAP_Integration_Kit_XI R2-SP4
    and the BW tranports already imported in BI7.
    I can create a report over a Bex query in Crystal report using BW Query driver and retirved datafrom BI7
    Then I tried to create a report over the same Bex query in Crystal report using MDX driver, I got no data return from BI7.
    So I used the RSRTRACE transaction to trace the log when refreshing data in Crystal report, and then go to debug the call 10- GET_CELL_DATA and I have data from the MDX excution in BI7.
    So I think Crystal report can pass the MDX query to BI7 and BI7 can excute it without any problem, the issue is no data return to Crystal report.
    Could anyone help please?
    Thanks.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP]
    "TraceDir"="C :\\Crystal Report\\"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP\BW MDX Query Driver]
    "Trace"="Yes"
    "ExcludeSummaries"="Yes"
    Above are the right code in Reg and I have tried "C:\" as well, but still no trace file created.
    I was create the CR MDX report via SAP tool bar (and I create 2 reports base on the same Bex query with MDX and BW query just to compare, that one via BW query return data from BW)
    Thanks a lot.
    Allen
    Edited by: Wen Allen on Aug 25, 2008 5:32 PM

  • Return of consignment using inter-company vendor

    Hi All,
    I need some help regarding consignment return in retail using inter-company vendor.
    I'm using item category NKN for fill-up and NKR for pick-up with movement type 635 & 636.
    The fill up process goes well, we can create the DO fill up using inter-company PO in VL10D.
    But when i try to do return from store to inter-company DC the shipping tabulation in the PO is missing. So i can't generate the DO pick-up because of that.
    Best Regards,
    Leo

    Hi madhu,
          OBYA - i already settings for inter company code postings. I already made that and make posting also.
    Now the problem, i transfered open item of vendor(1) of 100(Dr) from sender company code(1234) to receiver company code(ABCD) to the vendor(2) 100(Dr).
       when i did this transfer sender company open item nulified and the same open item transfer to the receiver company code with open item status.
       Now i book one bill on vendor(2) receiver company code (ABCD) for 100(Cr). Now when i am clearing debit amount with credit amount through F-44 system generating a message that "open item not found"
       i choose document number in additional selections.
    Regards,
    Sankar

  • What photo printer are you all using with iPhoto '08?

    What brand and model of printer are you all using or would recommend for use with iPhoto '08?
    I've been reading reviews on HP, Epson, Canon... my head is starting to spin. Thoughts?

    Core Dump wrote:
    There has got to be a backup product out there to allow a system to be backed up to a NAS or Drive attached to a server that is as simple as CrashPlan or TimeMachine but that actually work and don't cost $50/month for a system.
    Thoughts?
    CrashPlanPROe, the enterprise version, is $60 per year per client, not $50 per month, so it may be worth looking into. It's what we run and it's been working very well for us, though you need a central server to run the software. That server can be Windows, Mac OS X, Linux or Solaris, any of which will work with any of the supported clients:
    http://www.crashplan.com/enterprise/support/doku.php/requirements
    We tried Retrospect and had to return it for the limitation I mentioned above.
    Regards.
    Disclaimer: any product suggestion and link given is strictly for reference and represents my opinion only. No warranties express or implied. I get no personal benefit from the sale of any product I may recommend in any of my posts in the Communities. Your mileage may vary. Void where prohibited. You must be this tall to ride. Objects in mirror may be closer than they appear. Preservatives added to improve freshness. Contestants have been briefed on some questions before the show. No animals were harmed in the making of this post.

  • Method which is return's all the refinement state for Dimension.

    Hi All,
    Is there any java method which is return's all the refinement state for Dimension.
    Ex:
    Brand
    Reebok
    Scholl
    Sebago
    Ravel
    When i clicked All Brand from front end it will select all 4 Brands data.
    Any help will be great appreciation
    Thanks,
    Sunil N

    Not sure what you want to achieve here. If you want to select all the dimension values, then provided the dimension is Multi-select OR you can have N=Id-1+Id-2+Id-3 and it will return all of them. What I'm not sure on is why you would do this, you'll get back precisely the same results (provided every record is tagged with a brand) as if you did nothing, although I guess you might want to allow them to select all then deselect one or more afterwards ... Note you can also use N=<dimension-id>, where <dimension-id> is the id of the actual dimension, and that will return all records that have a value for that dimension, but that won't give you any descriptors (breadcrumbs) other than the dimension name/id.
    Michael

  • How to return a dataset using PL/SQL?

    Hi All,
    I am a beginner in PL/SQL for Oracle 9i.
    I am converting a stored procedure written in T-SQL for SQL 2000.
    It basically goes like this:
    CREATE PROCEDURE CS_CidGetData
    @City varchar(30)
    AS
    SET NOCOUNT ON
    BEGIN
    SELECT
    FROM
    UserAccounts
    WHERE
    City LIKE @City + '%'
    END
    When this procedure is executed it sucessfully returns all the Users that match the criteria.
    In PL/SQL tried:
    CREATE OR REPLACE PROCEDURE USERACCOUNTSSELECT
    v_City IN UserAccounts.City%TYPE
    AS
    BEGIN
    SELECT
    FROM
    UserAccounts
    WHERE
    City LIKE v_City +'%';
    END;
    I need the stored procedure return a dataset back to the calling application.
    I realize I must define a return variable and use an INTO clause.
    Can anybody please show me how to do it?
    Thanks,
    Amintas

    Hi everybody,
    Thank you very much for your support.
    I have finally figured out how to do it.
    Here is the code just in case someone has the same question.
    You can test it using the default built-in database.
    Cheers,
    Amintas
    create or replace package pkg_emp
    AS
    type rc_emp is ref cursor;
    end;
    create or replace
    procedure SP_GetEmpData(v_empno IN emp.empno%Type,
    v_ename IN emp.ename%Type,
    emp_cur OUT pkg_emp.rc_emp)
    is
    begin
    if v_empno is not null and v_ename is null then
    OPEN emp_cur for
    select empno,ename,sal
    from emp
    where empno=v_empno;
    elsif v_ename is not null and v_empno is null then
    OPEN emp_cur for
    select empno,ename,sal
    from emp
    where ename like v_ename ||'%';
    end if;
    end;
    /* Testing the stored procedure */
    /*#1 */
    var myresultset refcursor;
    execute SP_GetEmpData(7900,null,:myresultset);
    print myresultset;
    /*#2 */
    var myresultset refcursor;
    execute SP_GetEmpData(null,'A',:myresultset);
    print myresultset;

  • HT204053 can you have multiple apple id's for the family but we all use the same iCloud?

    Can you have multiple apple id's for the family members but we all us the same iCloud account?

    You'll have to have an ID you all share in order to have a shared iCloud account. It would be sensible for each person to have their own ID and their own iCloud account for email and their own data (each would be on their own computer/iOS device or user account on a Mac) and then have a common account which everyone would sign into in System Preferences>Mail, Contacts and Calendars to access shared data.
    You don't want to be all using the email in a common account - if people are using email aliases remember these can't be detached from the account and transferred to another one. Having all your emails mixed up together can be somewhat impracticable.

  • I share a an apple id with my kids. We all use the same credit card for purchases.  Is it possible for only me to use the icloud online storage without making this available or visible to the kids?

    My kids and I all use the same credit card and password for app and music purchases.   I'm assuming we all use the same apple ID too. (not sure) We can share apps and music although we all have our own itunes libraries. Is it possible for only me to use the icloud online storage without making this available or visible to the kids or do we all have our own storage?

    I just checked and they have already sucked up all my online storage.  Ahhh techy teens!  I think I will just leave it at that and back my own stuff up on my computer. Less confusing
    Thanks for all the help!  I am definitely more educated now and I'm off to check that cc bill too.

  • How do you make separate ICloud accounts for people who all use the same Apple ID?

    Me, my brother and mam all use the same Apple ID (i.e. this one. I'm not Debra) so is it possible to create three different ICloud accounts? I only want my music, pictures etc to go to my IPad, IPhone and my account on the Mac. If it's not possible, is there a way to see all the activity from this Apple ID in one place and split it into three different ID's easily? Thank's for any replies

    Welcome to the Apple Community.
    You can't have 3 accounts with one ID.
    If the reason you want to keep a single ID is so you can share music and apps etc, then you should be aware that the iTunes account and iCloud accounts are different accounts, you can all share an iTunes account but have different iCloud accounts (each iCloud account would have its own ID).

  • With iOS 8's family sharing, will family members be able to share apps that they previously purchased with different credit cards with one another for free (given that they will all use the same credit card once iOS 8 comes out)?

    Question 1: In my family of 4, we currently have different Apple ID's and we all use different credit cards to purchase our apps and media. When iOS 8 is released, if we agree to share the same credit card, will we be able to access apps that a family member purchased with their own credit card prior to iOS 8's release? To clarify, under iOS 7, Member 1 has purchased Apps A and B with his credit card. Under iOS 8, if Members 1, 2, 3, 4 decide to use Member 4's credit card, will Members 2, 3, 4 be able to access Apps A and B?
    Question 2: If we all decide to use the same credit card now, once iOS 8 is released, will family members have access to the apps/media purchased by the fourth family member?

    You can read everything that is known about ios 8 on Apples website.
    There is no way for anyone to know any more than that.

  • I'm a school tech coordinator. Many computers and many iPads. How many Apple IDs can I have per device, and how many devices can have the same Apple ID? To make my life easier, I'd like 200 devices to all use the same Apple ID.

    I'm a school tech coordinator. I have many computers and many iPads. I apologize if there is a some place that has all the rules governing the use of Apple IDs. I looked, and I even tried to get the answers from multiple Apple rep's. I couldn't find the answers.
    How many Apple IDs can I have per device?
    I want to use the same computer to sync and backup many iOS devices. The iOS devices would be associated with different Apple IDs.
    I may load apps under a school Apple ID and have users load their own apps under thier own ID.
    How many devices can have the same Apple ID?
    Can I use the same Apple ID on all the computers in a lab?
    Can I use the same Apple ID on all iPads for a particular grade level?
    Are the rules different for iOS devices and computers?
    I know that there are limits on "authorize" and "de-authorize" and how frequently those things can be done.
    Recently I heard that for the life of an iOS device, it can only be associated with five Apple IDs. That is not good for a school giving iPads to students in a 1:1
    To make my life easier, I'd like 200 devices to all use the same Apple ID.

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    It would be best to address your questions there, especially since this is a public forum, and over there you could post more private issues with this set-up. Not to mention, getting more official answers.

  • Family of 5, all use the same Apple ID/Password/Account.  In settings/messages/send recieve you can "check" my email and up to three phone numbers.  Essentially allowing all iMessages to be sent

    Family of 5, all use the same Apple ID/Password/Account.  In settings/messages/send>recieve you can "check" my email and up to three phone numbers.  Essentially allowing all iMessages to be copied to shared account numbers.  Please help me figure out  how to prevent my children from recieving my text correspondence. 

    On the devices for the members of your family that you DO NOT want to see your iMessagees, go to
    Settings App
    Messages
    Send and Receive
    You should see a list of available contacts which would make messages appear. Make certain that each family member has their own individual contact and NOT the same one that you use. I find it useful to have each family member have their own icloud email and use that for iMessaging my kids. My kids do not have iPhones, but if yours do, their phone number should be listed as well. For iPads and iTouches, use icloud email addresses. If you need to send a message to all 3 kids, say, you can just add all three emails to the To box on your iMessage.
    Hope that makes sense.

  • I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    Add another e-mail account to your messages, so people could reach you on that e-mail from messages. As soon as you are online (if you have wifi only iPad) you are able to send and receive messages. i.e. your son can send you a messages from his iPhone addressing it to your (that additional) e-mail address.

  • HT202213 We have 3 ipods in our family, should we all use the same apple id?

    We have 3 ipods in our family (myself and my two teenage daughters), should we all use the same apple id?  We want to be able to share our music, etc. but choose what we want.  Please help.
    I tried to read about home sharing, but it sounds like everyone has to have the same id. 
    One of my daughter's ipod keeps dumping all music and apps everytime I attach it to the computer to try to sync.  I think it may be because I set hers up with my id.  I am sure this is supposed to be simple, but I feel like I don't want to do something wrong.  I appreciate your help.

    Create NEW account/ID for them using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Use the new ID on their devices but only for:
    Settings>Messages>Send and Receive
    Settings>FaceTime
    Settings>GameCenter
    and Settings>iCloud if you want her to have separate Contacts Calendar and some other things.   
    Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases.

Maybe you are looking for

  • Excise invoice number from G/L account number

    Hi, Can any help me in finding out Excise invoice data based on G/L account information Regards, Sowjanya

  • 30GB 5th gen wasn't recognized by computer or itunes

    This is for info only as my ipod is working again. On 3/15 I plugged my ipod into my computer to sync what I just bought from the itunes store. I had upgraded itunes the week before to 7.6.1.9 and when I plugged my ipod in was prompted to upgrade it

  • Formatting Issues with SO10 text in Adobe forms

    Hi Everyone, I Have the below text maintained in SO10. "Thank you for choosing Enterprise.  We look forward to seeing you at 9:00 am on Monday, November 28, 2011.  This message is to confirm you have updated your reservation.  Following are the detai

  • Cost center and profit center linked to GL account

    Hi All I am obtaining the carry forward balance for the fiscal year from the table GLT0 but I also need the cost center and profit center details for the GL account, which I am unable to get from either GLT0 or GLTPC or GLT1 tables. Is there any othe

  • How to read .XLSX files using org.apache.poi.ss.usermodel.* classes

    Hello, I want to read in excel files to a JTable. I was able to read in .xls files, but have problems reading .xlsx files. Maybe there is something i need to add to the following code: FileInputStream iStream = new FileInputStream(newFile); POIFSFile