SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Calculate measures and mdx


Calculate measures and mdx

Author
Message
shanghaigirl-1125377
shanghaigirl-1125377
SSC Journeyman
SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)SSC Journeyman (89 reputation)

Group: General Forum Members
Points: 89 Visits: 1186
In cognos, we have complex measures calculated by joining multiple tables, and we can see the SQL queries in IQD files. How do I do this in ssas to build cubes? Anywhere in ssas we can view the underlying queries? My confusion is between measure calculations and mdx queries. For example, I need to calculate gross shipped dollars, do I calculate it in measure calculation or mdx?
Raunak Jhawar
Raunak Jhawar
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1635 Visits: 1944
There are two parts to your question, if I understand it correctly

1. You can always use the the standard DMV's to see the formula and the MDX used to define any calculated members. One such is $system.mdschema_measures. Also, you can open the calculations tab and view the MDX for the measures.

2. For gross shipped dollars, this is a fully additive measure and you should be using a SUM() function on the column to calculate the measure

Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
srini.msbi8
srini.msbi8
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 52
You can use SQl server 2008 Report server project and create a new datasource pointing to the required cube. Click on Query Designer and it would give you the browser screen of the cube. Drag and drop the necessary fields and filters if necessary. Once you click OK, then you could see the underlying MDX query.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search