ssas

MDX filtering by multiple dimension members

浪尽此生 提交于 2019-12-11 03:35:31
问题 Problem I need to create a report which will list a number of accounts that match certain criteria - simulationDate , statisticPeriod , region . Right now my query looks like this: WITH MEMBER [Measures].[Count] as 1 SELECT [Measures].[Count] ON COLUMNS, NON EMPTY Crossjoin( [Account].[Account Number].ALLMEMBERS, {[simulationDate].[day].&[10010101]}, {[statisticPeriod].[period].&[201201]}, {[region].[code].&[SO]} ) ON COLUMNS FROM [myWH] Is this cross-dimensional filtering okay? 回答1: This is

Find data for each subsequent financial period year in mdx query

爷,独闯天下 提交于 2019-12-11 03:23:58
问题 In my database cube, data is distributed like this, for each quarter, per year 2005 - > Q1 -> 10 2006 - > Q1 -> 4 2007 -> Q1-> 4 Q2 -> 20 Q2 -> 4 Q2-> 44 Q3 -> 5 Q3 -> 4 Q3-> 3 Q4 -> 4 Q4 -> 4 Q4-> 3 For financial year 2006 & 2007 i need to fetch data from 2005 -> Q2,Q3,Q4 & Q1 of 2006 ie, 20, 5,4,4 2006 -> Q2,Q3,Q4 & Q1 of 2007 ie, 4,4,4,4 I have build mdx query like this - : WITH MEMBER [LTII_NIRS_E] AS SUM({[DIM TIME].[YEAR - QUARTER - MONTH].[YEAR].[2005].[Q2]:[DIM TIME].[YEAR - QUARTER -

Speed up Running Total MDX calculated measure?

允我心安 提交于 2019-12-11 03:03:58
问题 I'm using the follow mdx to keep a running total of the Period Balance measure in my cube: SUM({[Due Date].[Date].CurrentMember.Level.Item(0):[Due Date].[Date].CurrentMember}, [Measures].[Period Balance]) It works great, however it's really slow as the amount of data displayed increases. I can't use a MTD or YTD because the users may be analyzing data that overlaps years. Any way I can speed this up? Thanks in advance. 回答1: I take it you've seen this? http://sqlblog.com/blogs/mosha/archive

MDX - NON EMPTY function faster?

浪尽此生 提交于 2019-12-11 02:53:05
问题 I was under the assumption that NON EMPTY clause must be avoided whenever possible. So, I was in for a shock when I accidentally found that it actually made the query much faster! Sample this: select [Measures].[Count Of Requests] on 0, ([Client].[Client Number].children , [Date].[Year].children) on 1 from [MyCube] --19 seconds on a hot cache select [Measures].[Count Of Requests] on 0, non empty ([Client].[Client Number].children , [Date].[Year].children) on 1 from [MyCube] --5 seconds on a

MDX: How to Retrieve data Based on Latest Date For Each Student Id

半城伤御伤魂 提交于 2019-12-11 02:29:03
问题 How to get latest count based on date for each id. Attempt: SELECT [Measures].[CourseJoinedCount] ON COLUMNS, NON EMPTY ( [Course].[CourseName].[CourseName], [DimDate].[Full Date].[Full Date], [Student].[StudentId].[StudentId] )ON ROWS FROM [RandD] 回答1: I think the use of Generate might help. Currently untested but I will try an mock this up against AdvWrks tomorrow to see if it works: SELECT NON EMPTY [Measures].[CourseJoinedCount] ON 0, Generate( [Course].[CourseName].[CourseName].MEMBERS ,

To join 2 mdx queries with same hierarchy

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:06:42
问题 I have 2 mdx queries as: SELECT NON EMPTY { [Measures].[Sum of Sales_Value_USD], [Measures].[Sum of Sales_Value_USD Late] } ON COLUMNS, NON EMPTY { ([DateDimension].[DATE_QUARTER].[DATE_QUARTER].ALLMEMBERS ) } ON ROWS FROM [Model] where ( [DateDimension].[CurrentQuarter].&[Yes], { [ProductLine].[ProductHierarchy] .[Product_Level5].&[PP100 - Electric Solutions], [ProductLine].[ProductHierarchy].[Product_Level5].&[PP200 - Gas Solutions], [ProductLine].[ProductHierarchy] .[Product_Level5].&

Qlikview and Qliksense VS MSBI

橙三吉。 提交于 2019-12-11 01:38:47
问题 This question can be seen as very stupid, but i'm actually strugling to make it clear into my head. I have some academic experience with SSIS, SSAS and SSRS. In simple terms: SSIS - Integration of data from a data source to a data destination; SSAS - Building a cube of data, which allows to analize and discover the data. SSRS - Allows the data source to create dashboards with charts, etc... Now, doing a comparison with Qlikview and Qliksense... Can the Qlik products do exactly the same as

MDX - 3rd + dimension example needed

柔情痞子 提交于 2019-12-10 23:31:54
问题 I am trying to learn MDX. I am an experienced SQL Developer. I am trying to find an example of an MDX query that has more than two dimensions. Every single webpage that talks about MDX provides simple two dimensional examples link this: select {[Measures].[Sales Amount]} on columns, Customer.fullname.members on rows from [Adventure Works DW2012] I am looking for examples that use the following aliases: PAGES (third dimension?), section (forth dimension?) and Chapter (fifth dimension?). I have

Using EXCEPT in Calculated member

非 Y 不嫁゛ 提交于 2019-12-10 23:18:16
问题 I have within an MDX query the following calculated member: MEMBER [Asset].[Class].[Fixed Income Derivatives (Inflation Linked)] AS ( [Asset].[Class].&[Fixed Income], [Asset].[Sub Class].&[Derivatives], [Asset].[Sub Class Type].&[Inflation] ) This is used within a query as follows: SELECT { [Measures].[Market Value] } ON 0, NON EMPTY( { [Asset].[Class].[Fixed Income Derivatives (Inflation Linked)] } ON 1 FROM [Asset] This works fine, and of course gives me the market value of all Inflation

Connecting to the Tabular Instance of an Azure-hosted SQL Server Analysis Services Server

社会主义新天地 提交于 2019-12-10 23:15:51
问题 I have set up an Azure Virtual Machine with a SQL Server 2016 Standard Edition image. I have installed an instance of Analysis Services Tabular on the machine and configured endpoints such that I can access it from my local machine. I have deployed SQL Server, SSAS Multidimensional, and SSAS Tabular databases to this machine. I am able to connect to the relational databases, and when I connect to Analysis Services I either use the IP Address or DNS name, and I am able to connect to SSAS