ssas

Slow dimension because it had a default member

风流意气都作罢 提交于 2020-01-24 15:44:04
问题 I have an SSAS cube that has a dimension with about 500,000 members. Performance is surprisingly good until I had a default member on one of the attributes (a boolean Yes/No value that we default to Yes). This change makes a refresh go from 5 seconds to over 20 minutes. Are default values known to be bad for performance? I can't really see anything on Google suggesting that they are bad performers. For context, when refreshing a PivotTable, Excel was executing a heap of WITH MEMBER statements

Browse cube - Change User: The following system error occurred: The user name or password is incorrect

五迷三道 提交于 2020-01-17 06:36:31
问题 I'm trying to browse SSAS cube using different user and I get "the user name or password is incorrect". I gave the user Admin rights on the cube, admin rights on the SSAS server and these were not helped. the only users who can browse the cube are domain admins. By the way, browsing the cube directly without changing the user works well. What is the problem? what should I change? 回答1: You are logged into a laptop or server as DOMAIN\user1 then you try to switch to DOMAIN\user2. Make sure

How to revoke login/connection access to SQL Server Analysis Services (SSAS)

谁说我不能喝 提交于 2020-01-17 06:14:26
问题 I've got a SQL Server Analysis Services Server 2014. I revoked the access of a user by going into the security tab of properties window of the SSAS server instance and then performing remove operation. Then I launched SQL Server Management Studio (SSMS) in the context of the user which I had removed by using Run as different user option from context menu. To my surprise I'm still able to connect to the SSAS server though that user( which has no access to the SSAS server) through windows

How to convert value to KB, MB, or GB depending on digit placeholders?

浪子不回头ぞ 提交于 2020-01-16 13:08:10
问题 I have the following Import-Module SqlServer $Analysis_Server = New-Object Microsoft.AnalysisServices.Server $Analysis_Server.connect("$server") $estimatedSize = $([math]::Round($($($Analysis_Server.Databases[$cube].EstimatedSize)/1024/1024),2)) this generates for me the size in MB I would like to enhance this to make it more user friendly readable especially for values that are in the double digit MB for example, sometimes i get values 50.9 MB which is good. but some other values are 37091

MDX Count over time without specific hierarchy

人走茶凉 提交于 2020-01-16 05:27:51
问题 This follows on from my question about count from start of time. I would like to be able to do the count without basing it on a DateTime Hierarchy, but have this as a calculated measure, which works when you drag a dimension against it. I currently have with member [Measures].[Commitment Total] as sum( [Date Dim].[FY Hierarchy].[Fiscal Year].members(0):[Date Dim].[FY Hierarchy].currentMember , [Measures].[Commitment Count]) Then using the calculation: select [Measures].[Commitment Total] on 0

How to connect to SSAS instance from SSMS?

删除回忆录丶 提交于 2020-01-16 04:54:44
问题 I have recently installed full sql server 2008 (trial version), for doing a research on SSAS. I created a SSAS project (with sqlserver business intelligence studio), deployed locally (where sql server instance is) with success. The problem is that I dont see it in databases list with SSMS. Is there a special way to connect to SSAS instance? Because looking at link text I see SSMS opened with other structure in object explorer. 回答1: When you create a connection (File -> Connect Object Explorer

SELF_BEFORE_AFTER - why aren't members from related levels returned?

大城市里の小女人 提交于 2020-01-16 04:11:11
问题 Here is my script: WITH SET [Set_TargetEmp] AS { FILTER( [Employee Department].AllMembers, ( InStr( 1, [Employee].[Employee Department].currentmember.name, "REUBEN") <> 0 ) ) } SELECT DESCENDANTS( [Set_TargetEmp], [Employee].[Employee Department], SELF_BEFORE_AFTER) ON 1, {} ON 0 FROM [Adventure Works] I know that [Set_TargetEmp] is the following: So why when I wrap it in the function DESCENDANTS with the optional arg SELF_BEFORE_AFTER isn't reuben's related Department and Title not returned

Using X4R package in R to connect to an SSAS (local) data cube?

删除回忆录丶 提交于 2020-01-16 00:44:43
问题 I am trying to figure out how to use X4R package to load a local data cube into R. I can load the cube into Excel, but am failing to get this to work with R. My cube filename is "\scrsvr\Users\\Documents\Projects\Raw data\data.cub". I tried the following code: library(X4R) handle<-xmlaConnect(url="\\scrsvr\\Users\\<MyName>\\Documents\\Projects\\Raw data\\data.cub") which produces no error. However, trying to use xmlaDiscover results in the following error: first argument is not an open XMLA

Adding OR into the FILTER function

无人久伴 提交于 2020-01-15 08:52:08
问题 We've got the following thanks to @FrankPI in this SO Post WITH MEMBER [Measures].[LevelName] AS [Employee].[Employee Department].CurrentMember.Level.Name MEMBER [Measures].[LevelNumber] AS [Employee].[Employee Department].CurrentMember.Level.Ordinal MEMBER [Measures].[MemName] AS [Employee].[Employee Department].CurrentMember.Name SET [Set_TargetEmp] AS { FILTER( [Employee Department].AllMembers, ( InStr( 1, [Employee].[Employee Department].currentmember.name, "WC4") <> 0 ) ) } SELECT {

How to do deployment using alter script in ssas

浪尽此生 提交于 2020-01-14 12:42:52
问题 Is any thing wrong if i create alter script on the entire database in analysis service in the development server SSMS and execute that script on the production server SSMS instead of deploying through BIDS? 回答1: no, you actually should never use BIDS to deploy to prod. BIDS will always overwrites the management settings(security and partition) of the target server. the best option is to use the Deployment Wizard. It enables you to generate an incremental deployment script that updates the