ssas

Calculation in SSAS Cube not working for zero data values

你说的曾经没有我的故事 提交于 2019-12-13 05:00:01
问题 I am working with a SSAS 2008 R2 cube and interrogating the data through Excel 2010. In the cube I have a calculation to conditionally format the data. The logic is if a measure contains a specific value for the fact being viewed, then the fact should be colored red, as follows: CALCULATE; SCOPE ( [Measures].[Data value] ); If([Fact Base].[Confidentiality Status].[Confidential]) Then Fore_Color(This) = 255 End If; END SCOPE; When I have a [Data value] of 0 (zero) the fore_color doesn't render

OLAP Dimension structure

时光总嘲笑我的痴心妄想 提交于 2019-12-13 04:46:43
问题 I have Dimension "Customer". Each Customer can have some buisness units and some departmens. I should bild 2 hierarchies: Customer->Department and Customer->Buisness Unit. So, I also need to set key attribute. This is my question: What should be use as key attribute? May be I do this wrong? Could you help? 回答1: To define hierarchies, you should ask the following questions: If I group the departments, I have a consumer? If I group the business, I have a consumer? If I group the departments and

Cumulative Sum/ Running Total | MDX

本秂侑毒 提交于 2019-12-13 03:21:50
问题 I have an SSAS Cube requirement (MDX) as below: I am trying to create a calculated measure “Cumulative Sum/ Running Total” with the combination of multiple dimensions (around 7 dimensions). In addition, the users will be using any dimensions that they want. For example, we have a Product, Program, SubProgram, ProgramStatus, SubProgramStatus, Customer, and Date. The users should be able to add the dimension’s attribute to the lowest level as well as they should be able to roll-up the data to a

SSAS: named queries

試著忘記壹切 提交于 2019-12-13 00:44:52
问题 I must first admit that I'm new to Analysis Services but now must extend an existing complex cube with a new dimension. So its even difficult to tell where my problem is without saying that i dont even have a plan how to start. Ok, i will try to tell what i want to achieve. Given is a Datasourceview with a named calculation 'Returns'. Its expression is: CASE WHEN fimaxActionCode IN (1, 2, 3, 4, 5, 8, 9, 12, 14, 17, 18, 20, 21, 22, 23, 24, 25, 30, 31, 32, 35) THEN 'yes' ELSE 'no' END

Changing a date format to a shorter date

拜拜、爱过 提交于 2019-12-13 00:35:40
问题 We've got the following script: WITH SET [Last56Days] as TAIL ( [Date].[Date - Calendar Month].[Calendar Day].members, 56 ) MEMBER [Measures].[DateValue] as [Date].[Date - Calendar Month].CURRENTMEMBER.member_value, format_string = "short date" MEMBER [Measures].[DateValue2] as [Date].[Date - Calendar Month].CURRENTMEMBER.member_value, format_string = "dd/mm/yyyy" SELECT { [Measures].[DateValue], [Measures].[DateValue2]} ON COLUMNS, Hierarchize ({ [Last56Days] } ) ON ROWS FROM [Our Cube] It

MDX return last month of every year

守給你的承諾、 提交于 2019-12-13 00:25:50
问题 I am trying to create a set to return the value of the last month that contains data for each year. For example if I would put year on the rows 2011,2012,2013,2014 would all contain data for December. 2015 would contain data for June of 2015. I can't seem to get anything but the latest month to return. I figure it is because of my tail statement, but I'm not sure how to fix it. CREATE SET [Last Statement Month] AS Tail( nonempty( Descendants( [Date].[Calendar].currentmember ,[Date].[Calendar]

MDX permission error when I call a table in SQL Server instance

早过忘川 提交于 2019-12-12 23:25:39
问题 I am trying to execute this query in MDX INSERT INTO MINING STRUCTURE [People1] ([CustID], [Name], [Gender], [Age], [CarMake],[CarModel]) OPENQUERY(Chapter3Data, 'SELECT [Key], Name, Gender, Age, CarMake, CarModel FROM People') I have a database Chapter3Data with people table in my SQL Server instance, but I get this error : Executing the query ... Either the 'Ehsan\ehsan akbar' user does not have permission to access the 'Chapter3Data' object, or the object does not exist. Execution complete

No connection could be made because the target machine actively refused it 127.0.0.1:2382

。_饼干妹妹 提交于 2019-12-12 21:23:37
问题 I am trying to connect SSAS engine(SQL Server Denali) but its failing with following error "No connection could be made because the target machine actively refused it 127.0.0.1:2382" SSAS service is running under Network Service account and SQL Browser service are running on Local system acc 回答1: What OS are you running? I had a similar problem and resolved the issue changing the sql server browser account from a built in account to a name account with password. Open sql server configuration

SSAS adding exisiting cube from one environment to another

狂风中的少年 提交于 2019-12-12 21:16:44
问题 I would like to add cubes that are in production environment to Dev Environment. Dev has additional cubes and would like to know if there is a way to add additional cubes from prod without overwriting the cubes in dev environment. 回答1: You have several options... Take a backup of the production SSAS database and restore it. Generate and XMLA script from the production cubes and run it on dev. Use the Synchronize data wizard in Management Studio (the caveat here is that the account running the

Test if a set exists before trying to drop it

心已入冬 提交于 2019-12-12 19:40:22
问题 In SQL before dropping a table I will check if it exists first so as not to cause an error, like so: IF OBJECT_ID('TEMPDB..#table') IS NOT NULL BEGIN DROP TABLE #table END In MDX I could do with a way of checking if a set or member already exists before trying to drop it. Currently I have the following stucture within some of my .mdx files. I add a custom set to the cube and then use that set in several scripts that follow i.e. they are mult-batch scripts. /* //I run the following manually...