Calculate measures and mdx

  • 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?

  • 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

    Raunak J

  • 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.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply