Top Banner

Click here to load reader

of 30

SELECT [ [,...]] FROM [ ] [WHERE [ ]] Example: SELECT { [Measures].[Unit Sales], [Measures].[Store Sales] } ON COLUMNS, { [Time].[1997], [Time].[1998]

Jan 17, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

SELECT [ [,...]] FROM [ ] [WHERE [ ]] Example: SELECT { [Measures].[Unit Sales], [Measures].[Store Sales] } ON COLUMNS, { [Time].[1997], [Time].[1998] } ON ROWS FROM [Sales] WHERE ( [Store].[USA].[CA] ) A subcube is a subset of a cube representing a filtered view of the underlying data. By limiting the cube to a subcube, you can improve query performance. SCOPE(Subcube_Expression) [ MDX_Statement ] END SCOPE Example: SCOPE ( [Date].[Fiscal Year].&[2002],[Date].[Fiscal].[Month].Members ) ; This = [Date].[Fiscal].CurrentMember.Parent / 3 ; END SCOPE ; UserAuth Implemented here using Master Data Services (MDS) [UserAuth].GetSet function directly calls the UserAuth service (MDS in this example) at user- connect time, creating a unique security context for that connection. This security context is cached until such time the cache is cleared, either by a processing event or a ClearCache command. This creates a private cache for each user accessing the cube, regardless of what front-end tool is used. Note: If Visual Totals is turned on, Analysis Services wont take advantage of any pre-built aggregations. SELECT NON EMPTY { [Measures].[Amount] } ON COLUMNS, NON EMPTY { { [LineItem].[JE Identifier].[JE Identifier] } * { [EffectiveDate].[Full Date].[Full Date] } * { [EntryDate].[EntryDate].[EntryDate] } * { [Account].[GL Account Number].[GL Account Number] } * { [LineItem].[JE Description].[JE Description] } * { [LineItem].[JE Number].[JE Number] } * { [Source].[Source].[Source] } * { [Account].[Account Type].[Account Type] } * { [Account].[Account Class].[Account Class] } * { [BusinessUnit].[Business Unit].[Business Unit] } * { [Preparer].[Preparer].[Preparer] } * { [Amount].[Hierarchy].[Amount]} } ON ROWS FROM ( SELECT { filter(generate({ filter( [Amount].[Hierarchy].[K],[Amount].[Hierarchy].currentmember.membervalue