madarapuv Posted August 13, 2010 Share Posted August 13, 2010 Hello,I've designed analysis view schema and wrote the mdx query, view is running successfully but my question how to write the where condition in analysis views.My table design is:Property_Id,Property_codeBrand,Region.MDX query:SELECT {[Measures].[Accom Under Maint]} ON COLUMNS , {[brand].[brand]} ON ROWS FROM [Test]For mdx query I want add where condition like “where Property_code=’H2’” and here is the schema design:<Schema name="JasperIntelligence Profiling"> <Cube name="Test" cache="false" enabled="true"> <Table name="Vw_Total_Attributes"/> <Dimension name="Brand"><Hierarchy hasAll="true" allMemberName="Brand1" primaryKey="Property_ID"><Table name="Vw_Total_Attributes"/><Level name="BrandName" column="Brand" uniqueMembers="true"/><Level name="RegionName" column="Region" uniqueMembers="true"/></Hierarchy></Dimension><Measure name="Accom Under Maint" column="Property_ID" aggregator="sum" formatString="#,##0"/></Cube></Schema>Please suggest me.Find the attached schema design. Link to comment Share on other sites More sharing options...
shivareddyk Posted August 16, 2010 Share Posted August 16, 2010 some thing like this..*u can choose those things from (change data cube),from [your cube name] where [Property_code].[H2] gudluck Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now