Solved

Analysis Services - Calculations Based on Dimension Value

Posted on 2007-11-15
8
1,264 Views
Last Modified: 2013-11-16
Hello:

I've trying to create a calculation based on a dimension.  Basically, I have a "Type of Goal" which is text that could display like the following:

Sales Goal
Sales Volume
Pending Sales
Pending Volume

My dimensions involve time, geographic location, etc...My measures involve dealing with SUMs and COUNTs based on Pricing and Counts of Records.  I'm looking to create a calculation that calculates differently based on the Type of Goal as listed above with 4 examples.  Taking "Sales Goal" for example, this would change to calculate the number of records based on certain variables such as the Sale Date falling within the Time frame being reported on within the CUBE (i.e.: Quarter, Year, Month, etc...).  The "Sales Volume" for example, this would change to calculate the sum of the Sales Price based on the status of the deal being Sold with the Sale Date falling within the Time frame being reported on within the CUBE (i.e.: Quarter, Year, Month, etc...).

Is it possible to setup a calculation to change based on the "Type of Goal"?  If so, could anyone provide an example of how to do this?  Once I get the grasp of setting this up then we'll be good to go.  I'm somewhat new to calculations within CUBEs so be gentle, :P.

Anyways, any ideas/examples on this would be fantastic!
0
Comment
Question by:sdswiger
  • 3
  • 2
8 Comments
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
0
 
LVL 1

Author Comment

by:sdswiger
Comment Utility
Thanks for the response EugeneZ

Regarding the examples, Report Builder is not the direction I'm looking towards.  This is a CUBE that basically will become an interactive Score Card for the business.  Let me provide a bit more information.

The row dimensions: (descriptions in parenthesis)
Sales Goal (count of records based on the status of the deal as being either Sold, Pending, etc...)
Sales Volume (sum of the sales price based on those deals with a status of Sold, Pending, etc...)
Pending Sales (count of records based on the status of the deal being Pending)
Pending Volume (sum of the sales price based on those deals with a status of Pending)

Other row dimensions will be present which may deal with geographic location, possibly broken down further into detailed locations, etc...

The column dimensions would be time and the goals for each row dimension based on what the user is interacting with.  We have goals that are broken down to the type of goal (i.e.: Pending Sales, Pending Volume, Sales Goal, Sales Volume, etc...) and are even broken down to the most detailed geopgrahic location along with time aspects.  This would be a complete interactive Score Card CUBE that our financial analysts would be able to analyze profitability, etc...in order to help build the company, etc....  Hopefully I've provided more information.

The goals table that I discussed above (the dimension table) contains the goal which would be the standard sum of the values within the table and require no special calculations to be setup.  This would be a simple SUM of the values.  Where the trick comes into play is changing how items are calculated based on the row dimension that deals with the "Type of Goal", which may be Sales Goal, Sales Volume, Pending Sales, Pending Volume, etc...The calculation should change what it's calculating and how based on this.  This is what I'm trying to conquer and solve.  The CUBE would be available online through Reporting Services as an Excel file, provided with interactivity through a Pivot Table drag-drop style, CUBEs :)).

Anyways, hope this helps further.

Any help from anyone would be greatly appreciated!  :))
0
 
LVL 1

Author Comment

by:sdswiger
Comment Utility
Oh, forgot to add in that there may be other variables which determine the final value displayed (the measure) within the custom calculation and may be items such as, "Did the Sale Date fall within the time frame along with the status being Sold, Pending, etc...?", questions like these would be built into the custom calculation and change based on the "Type of Goal" being displayed within the row dimension.

Hopefully I've made some sense here, :P.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 4

Expert Comment

by:VRGultom
Comment Utility
Hi,

I think what do you want is posible. It's depend on your dimension and cube structure. To load data to your cube based on your requirement you can do a bit programming. just put your formula as per your requirement. You can use .net, vb, etc, which support OLAP. And you can use mdx query to retrieve data you want to see. Put data in the cube is depend on the formula you put in the programming script.

Regards
Veronika
0
 
LVL 1

Author Comment

by:sdswiger
Comment Utility
Hi Veronika and thanks for responding.

I figured it would be an MDX script (custom calculation) but am unsure how to even come close to solving the problem.  I know .NET, VB, etc...but not MDX Scripting, it's a bit new to me.  Any examples or anything would be great.
0
 
LVL 4

Accepted Solution

by:
VRGultom earned 500 total points
Comment Utility
MDX query is like sql query. The difference is sql query run for query to database (2 dimention) and mdx query is run for query to OLAB cube(Multi dimensions).
Using mdx query you can manipulate the data in cube as per your requirement.

Here is the link for more clear abou mdx query:
http://technet.microsoft.com/en-us/library/ms145514.aspx

from .NET, VB  etc, you need a component to connect to the OLAP and you can access the OLAP data and create the output you want.

Regards
Veronika
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

8 Experts available now in Live!

Get 1:1 Help Now