Who is online?  162 guests and 0 members
Home  »  Blogs  »  DevinKnight  »  MDX Utility Belt of Calculations Part 2
  Rate This Blog Entry:  register  or  login

Author

DevinKnight DevinKnight (Member since: 10/27/2009 11:25:07 AM)
Devin (MCTS, MCITP) is a Senior BI consultant at Pragmatic Works Consulting. Previously, he has tech edited the book Professional Microsoft SQL Server 2008 Integration Services and was an author in the book Knight's 24-Hour Trainer: Microsoft SQL Server 2008 Integration Services. Devin has spoken at past conferences like PASS and at several SQL Saturday events. He is a contributing member to the Business Intelligence Special Interest Group (SIG) for PASS as a leader in the SSIS Focus Group. Making his home in Jacksonville, FL, Devin helps run his local users’ group (JSSUG) as a Vice President.

View DevinKnight 's profile

Comments (3)

benagee
12/8/2009 9:21:53 PM benagee said:
I have the following similar equation where the first [Date] is the name of the date dimension, [Fiscal Calendar] is the hierarchy, the next [Date] is the name of the field with the individual dates. [Fresh Caustic End Inv] is the value of the inventory stored in the Measure group. The formula below was supposed to calculate the beginning inventory (i.e., the previous days ending inventory). It returns #VALUE# -- what do I have wrong? ([Date].[Fiscal Calendar].[Date].PrevMember,[Measures].[Fresh Caustic End Inv])
by
DevinKnight
12/8/2009 9:33:49 PM DevinKnight said:
Try it without the hierarchy. So should look like this ([Date].[Date].PrevMember,[Measures].[Fresh Caustic End Inv])
by
benagee
12/9/2009 12:43:19 PM benagee said:
To follow up with everybody..... here is the final formula that worked: ([Date].[Fiscal Calendar].CurrentMember.PrevMember,[Measures].[Fresh Caustic End Inv])
by

Leave a comment


 
Type the characters:
 *
 
   

Join Business Intelligence Developer Network for FREE Today!

It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.

enter your email address:

Blogs RSS Feed

DevinKnight's latest blog posts

  • In a previous post I wrote about getting started with PerformancePoint 2010. In that post you learned about what PerformancePoint is and where to open in in SharePoint 2010. Your next steps are to con...
  • Today at 12:30 EST I will be presenting for SQL Lunch on the topic of Analysis Services Security. Make sure to be there to learn how to create dynamic or table based security in SSAS. Speaker: Devin K...
  • PerformancePoint is a great tool for monitoring and analyzing the performance of your business at a high level but also has the ability to dig into the details. It makes it simple to create quick dash...
  • Event handlers are a great tool for managing errors and other events that occur during the execution of a package run. Using event handlers can however add additional time to the run of a package. Dep...
  • There are several techniques that can be used for performance tuning Analysis Services. You may already be familiar with the typical methods used like Partitions and Aggregations . However, an often f...
  • Today I did a webinar on MDX solution. For those of you interested you can grab the slides here and code example here . If you missed the session you can also download the recording here . We do month...
  • Using configurations files in SSIS is a great way to change how your package will run from outside the development environment. One thing that I’ve always recommended when using files (I actually pref...
  • Reporting Services 2008 R2 has many new great features that I’ve written about lately ( Data Bars and Indicators ). Today I wanted to tell you a little about another nice add called Report Parts. Repo...
  • With less than a month away, May 8, before the big event in Jacksonville I wanted to give you a little inside information about this event if you've never been to one before. SQL Saturday is a free tr...
  • Last week I wrote a blog explaining how the new tool inside Reporting Services 2008 R2 called Indicator will be help for displaying KPIs in Reporting Services. Today I want to looks at another nice fe...
  • As I begin to explore more and more of the new feature that will be available in SQL Server 2008 R2 I can’t help but think why was this not available before? One of these features is the new item in t...
  • Have you been looking for a way to measure report performance? Want to know who accesses your reports most frequently? Well there are some free reports on http://msftrsprodsamples.codeplex.com/ that y...
  • Analysis Services calculations are great for storing formulas that your users need to see on a regular basis. They also have another little feature that adds just a little more wow when your end users...
  • When developing reports that use Analysis Services as a data source end user can sometimes be confused about some of the options they see in report parameters. Anytime you have a parameter that allows...
  • Many companies are not in a rush to upgrade their SQL Servers because of the enormous cost to upgrade. This results in the majority of companies still running previous versions of SQL Server (2005, 20...
  • If you experiment at all with transactions that are built into SSIS you will discover that they are highly flawed. For example, if you have a transaction running on an entire package some tasks may no...
  • IntelliSense in SQL Server 2008 can sometimes not be very intelligent. It’s there to help you can sometimes cause more problems than it does solve problems. Here’s one of those problems cases: Create ...
  • If you haven’t heard already this week there is a great free webinar series going on that’s meant for beginners. This series is meant to get you up to speed on many topics like TSQL, DBA Fundamentals,...
  • Many companies have a very rigid development lifecycle for all products or solutions they develop. Deploying to each of these environments (Development, UAT, and Production) can be a nightmare to main...
  • This week was an exciting teaching week for me. I taught the Pragmatic Works Foundation class, one of my favorite and most rewarding classes to teach. This class is designed to help individuals who ha...
  • You may have noticed a flux of new blog post entires yesterday from a group of people talking about the Pragmatic Works Foundation. This is a great group of people that are new to IT and learning the ...
  • Reporting Services has many expressions that can manipulate date fields. These expressions can be used just about anywhere in SSRS including object properties, displayed data, and parameters. Recently...
  • The SSIS expression language is a powerful tool for a developer that gives you one method of making a package dynamic. When writing an expression there are a few things to be careful of that could pot...
  • Several months ago I blogged about why Checkpoints are a great feature in SSIS to use. It seems with every feature there are potential problems you can run into and it is no different with Checkpoints...
  • If you weren't able to attend tuesday for SQL Lunch you can watch the recording now mosted on the website. This session was on Data Driven Subscription. We had a great group of people with lots of goo...
Blogs RSS Feed

Latest community blog posts

  • Pirate Code: They're more like guidelines really... The last few weeks we've watched the drama unfold in regards to the PASS BOD elections. We've seen people attack criticize the NomCom, the board, PA...
  • Just a while ago I was watching a video on sqlshare Creating a Plan Guide for a Parameterized Statement By Andy Warren . Only then I heard about plan guides. I didn't know what plan guides were. Here ...
  • Unfortunately, I don't have one big topic to write about in this post, so I decided to share some observations from the past few weeks - little things that might be of interest in the next report you ...
  • In a previous post I wrote about getting started with PerformancePoint 2010. In that post you learned about what PerformancePoint is and where to open in in SharePoint 2010. Your next steps are to con...
  • So today at the office I was faced with one of the more common and important questions that come up regularly and that was ‘Where are we going for lunch?’ This usually in tells a few minor arguments a...
  • Problem: Everyone that's programmed a system that users will interact with has run across a statement like this one in the fact-finding stage. "I want to be able to search on phone number. I can't ima...
  • If you only get a chance to read one book this year, it should be Drive , The Surprising Truth about what Motivates Us. This book has made me rethink how I am motivated and how I can motivate others. ...
  • Recently one of my clients would like to see their Revenue figures represented some of the time as a positive (+VE) value and some time as a negative (-VE) value. They would like to have the ability t...
  • Lately, I've been enjoying various shows on the Science channel about Time and Space. No one yet understands exactly what time is yet - still, everyone wants to save some. I'd like to show how one mig...
  • I attended the 2010 Jacksonville Code Camp Sataurday and really was impressed with Pragmatic Works. The entire Business Intelligence stack was covered by speakers from PW including Brian Knight, Adam ...
  • One of the hardest things about starting a new project is getting to know the database with which you are working. Here is a quick way to make a list of the all columns along with the name of the corr...
  • I have presented you with a couple of easy puzzles in the last few posts. So, let's step it up a little with one that is a little more challenging. I have to be honest, this puzzle was sent to me by o...
  • Sometimes you may need to restart your instance of SQL Server. You should rarely do this on Production boxes, but in development or on your local desktop instance I restart my SQL Server instance fair...
  • First and foremost, I want to thank everyone who attended my presentation today. It got off to a late start due to the prior presentation running over and a little setup issues set me back a little bi...
  • The other day I was creating a report and it needed some sorting capabilities. I said to myself, "Self, there may not be a lot of begginers that know how to add sorting capability". What I would like ...
  • Puzzle #6 should not have presented too much of a challenge, it's intentions were to introduction you to the ORDER function that is available in MDX. Ok, so this is what I started with: This is a very...
  • This Saturday is Code Camp in Jacksonville, FL. There are a lot of great speakers lined up, some of which you may have seen at other events such as SQL Saturday. If your free on Saturday come on out a...
  • With the release of the SSRS 2008 R2 reporting developers now have a new tool that they can use when creating reports. The new tool I am talking about is the new map wizard. With this you can easily s...
  • If you've been under a rock the last few weeks you may not know that PASS is currently undergoing their board elections process. I'm not going to rehash the entire saga here but this is just a quick p...
  • The MS Communities Code Camp & Technology Summit is a Free , non-commercial event, open to everybody with an interest in any of the technologies being discussed. Development This year we will be r...
  • A few weeks ago Andy Leonard ( Blog | Twitter ) announced that he was stepping down from his position as PASS Regional Mentor. It is with great humbleness and excitement that I can officially say I'll...