Create member

Posted on 2012-04-03
Last Modified: 2016-02-15
I am trying  to create member in my cube -->calculation

CREATE MEMBER CURRENTCUBE.[Measures].[QTY-YTD] AS SUM(YTD([Date].[YQM].CurrentMember), [Measures].[Quantity]), VISIBLE = 1;
The amount does not change when I change the month in the hierarchy
Question by:samprg

Accepted Solution

Chris__W earned 500 total points
ID: 37807116

The question that first pops up is concerning your Date.YQM hierarchy.  If the levels are not set correctly, it would explain the result of the same amount showing regardless of the month / date specified (as it would be looking at the whole list instead of a group).  

You can verify this by opening the project in BIDS and browsing the Date dimension.  The middle pane should have a hierarchy for YTD.  If it does not, either create one or use a different hierarchy that is built.

I've attached a screen shot of an example.  Attach a screen shot of yours if you're unsure.


Author Closing Comment

ID: 37807725

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now