ssas

DateAdd Column caused an overflow

≯℡__Kan透↙ 提交于 2020-01-14 10:08:06
问题 After executing the following query I am getting an error Adding a value to a 'datetime' column caused an overflow. I have no idea why this is happening as it worked smoothly for a couple of weeks. I am just trying to ADD Dates here and compare them to the Start date and End date with a between clause. DATEADD(day, -1 , DATEADD(mm, DATEDIFF(mm,0,posting_date),0)) BETWEEN start_date and end_date 回答1: I can duplicate the error with the following: declare @posting_date datetime set @posting_date

AdventureWorks date dimension shows different results depending on selected hierarchy

て烟熏妆下的殇ゞ 提交于 2020-01-14 03:04:14
问题 Here are two simple queries which shows data on month level filtered by dates. In the first query I am using Month level of "Date.Calendar" user hierarchy. SELECT NON EMPTY { [Measures].[Internet Sales Amount] } ON 0, NON EMPTY { [Date].[Calendar].[Month].&[2013]&[1] } ON 1 FROM [Adventure Works] WHERE {[Date].[Date].&[20130105]:[Date].[Date].&[20130106]} And recieved - January 2013 -> $857,689.91 Results In the second query I am using "Date.Month of Year" attribute hierarchy. SELECT NON

In OLAP cube wrong Grand Total when attribute is filtered

我的未来我决定 提交于 2020-01-12 14:03:55
问题 A user trying to check the Sales Amount per Salesperson. Sample data: Salesperson Sales Amount 001 1000 002 500 003 750 Grand Total: 2250 It looks fine, but we have the following hierarchy Company > Class > Group > Subgroup in the cube and if a user tries to use this hierarchy in filters - Grand Total fails (if any attribute is unchecked in this hierarchy). Sample: Salesperson Sales Amount 001 1000 002 500 003 750 Grand Total: 350 I've noticed the same problem before when we tried to filter

View MDX query generated while browsing a cube in SSMS

蓝咒 提交于 2020-01-12 12:54:44
问题 In Sql Server Management Studio once I browse a cube I can drop column fields, row fields and filter fields. This displays the required data. I want to know if there is a way to view the MDX query being generated behind the scenes to display the data? Thanks. 回答1: SQL Server Profiler works on SSAS servers. Select Analysis Services for the Server type in the Connection dialog when initiating a Profiler connection. Select your Analysis Services server and connect. You can use the Standard

View MDX query generated while browsing a cube in SSMS

不问归期 提交于 2020-01-12 12:52:10
问题 In Sql Server Management Studio once I browse a cube I can drop column fields, row fields and filter fields. This displays the required data. I want to know if there is a way to view the MDX query being generated behind the scenes to display the data? Thanks. 回答1: SQL Server Profiler works on SSAS servers. Select Analysis Services for the Server type in the Connection dialog when initiating a Profiler connection. Select your Analysis Services server and connect. You can use the Standard

Calculating a % rate based on two date dimension in one cube

混江龙づ霸主 提交于 2020-01-07 03:27:07
问题 Set up - SSAS 2012 with OLAP cubes (built by supplier) and MS Report Builder v3. No access to BIDS. I am building a report which needs to calculate a disposal rate based on data from a single cube. Historically this would have been calculated from two separate tables of data, giving a count by month of new items by date recorded and a count by month of items disposed by month of disposal. This can then be turned to a disposal rate using a lookup or similar. Blank disposal dates are fine (can

What dw model is appropriate when there's no measure?

和自甴很熟 提交于 2020-01-06 18:38:47
问题 All the demos out there use a sales/order model as a measure in their examples. But my db is not transactional. It's a customer-centric model where there is one table for the customer which is joined to several attribute tables. Does this not even qualify for cube building because of the different model, or is there some way to still build cubes despite it not being transactional? I've heard of factless fact tables but don't really understand the concept yet. Is this where you would use one?

What dw model is appropriate when there's no measure?

假装没事ソ 提交于 2020-01-06 18:38:08
问题 All the demos out there use a sales/order model as a measure in their examples. But my db is not transactional. It's a customer-centric model where there is one table for the customer which is joined to several attribute tables. Does this not even qualify for cube building because of the different model, or is there some way to still build cubes despite it not being transactional? I've heard of factless fact tables but don't really understand the concept yet. Is this where you would use one?

ssas mdx line quantity divided by SUM

走远了吗. 提交于 2020-01-06 13:29:31
问题 How do I create the new column in MDX? The dimensions selected are not important. I just want the line amount / sum for the data selected. I am not an mdx expert... Current code below : CREATE MEMBER CURRENTCUBE.[Measures].[Weight] AS IIF([Measures].[Sales Line Amount AC Budget hidden] <> 0, Divide([Measures].[Sales Line Amount AC Budget hidden] ,AGGREGATE(Root(),[Measures].[Sales Line Amount AC Budget hidden])),NULL), VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Sales Forecast' ; Hi they are

How to relay complex type via NetConnection to FMS?

那年仲夏 提交于 2020-01-06 04:56:45
问题 I need to send complex type object (marked RemoteClass in Flex) via NetConnection to other clients. [RemoteClass] public class ComplexType { public var _someString:String; public var _someInt:int; } ... and using ... _nc = new NetConnection(); _nc.connect("rtmp://localhost/echo/"); _nc.addEventListener(NetStatusEvent.NET_STATUS, _onNetStatus); _nc.client = {}; _nc.client.echoCallback = _echoCallback; var dto:ComplexType = new ComplexType(); dto._someInt = 4; dto._someString = "abrakadabra";