ssas

Add new users in SSAS security

一曲冷凌霜 提交于 2019-12-20 02:36:12
问题 I want to add users in SSAS security using following XMLA script. DECLARE @CreateUserInSsasXMLA VARCHAR(MAX) = '<Batch AllowCreate="true" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" Transaction="true"> <Alter ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object /> <Object> <RoleID>Administrators</RoleID> </Object> <ObjectDefinition> <Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org

Excel Connectivity with SSAS - An error was encountered in the transport layer

爷,独闯天下 提交于 2019-12-20 02:13:52
问题 I have a SSAS Cube in SQL 2012 to which I can connect from Excel 2010 without an issue using a windows user credentials. However whenever I restart the server hosting the cube and I try to refresh the pivot in the excel (in a client machine) it throws and an error saying " An error was encountered in the transport layer ". I am then prompted to re-enter the password for the windows account I am using to connect to the data source. The problem is that if I have couple of pivots open in

Intersection in MDX

怎甘沉沦 提交于 2019-12-19 10:32:57
问题 I recently ran into a problem in our SQL Server 2008 Analysis Services Cube. Imagine you have a simple sales data warehouse with orders and products. Each order can be associated with several products, and each product can be contained in several orders. So the data warehouse consists out of at least 3 tables: One for the Products, one for the Orders and one for the reference table, modelling the n:n relationship between both. The question I want our cube to answer is: How many orders are

Power BI - Find the % matching (Bounty 100) What-if analysis before and after

一个人想着一个人 提交于 2019-12-19 09:55:26
问题 I have a requirement where I have a table like this, Role Skills Developer C Developer SQL Developer C++ Data Analyst R Data Analyst Python Data Analyst SQL Business Analyst Excel Business Analyst SQL And I need to create something like this in Power BI, Explaining the first result for a Business Analyst in Power BI Visual Table, From Filter 1 - I have selected Data Analyst - whose actual skills are R, Python and SQL From Filter 2 - I have selected a new skill (Upskill) as Excel. So now, he

How to get the time between two TFS Work Item States in SSAS (or any other report)?

烈酒焚心 提交于 2019-12-18 13:05:20
问题 Is there a way in TFS's reports that you can get the amount of time taken for a work item to transition between states? Looking at the data in the Tfs_Warehouse database I can see that there is a record of every revision of a work item, and using TSQL, I could write a query to get the ChangedDate of each state change and diff them. Sadly I lack any know how of SSAS and we don't have a BI specialist at the moment. Can this be done in a way that I can produce a Report out of TFS without writing

How to learn MDX [closed]

半腔热情 提交于 2019-12-18 10:22:40
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am currently learning OLAP & MDX after many years of relational database development. Any tips on getting started in MDX? What are

How to get total of top 10 sales in SSRS 2012

一笑奈何 提交于 2019-12-17 09:55:11
问题 I am taking Top 10 of Sales Volume grouped by Product categories in SSRS 2012. I need the total of these top 10 but it shows the complete total. I cant do it on dataset level as I need the complete dataset for other parts in the report. I tried the solution as given in MSDNlink but that didn't help either. Thanks in advance. 回答1: This sort of approach does actually work very well. You haven't given any idea of what your data/metadata is like, but the concepts can be explained with a simple

再谈通过http访问SSAS

こ雲淡風輕ζ 提交于 2019-12-16 15:25:03
问题: 在有些场景下,数据中心会分为不同的服务器场:数据库场和应用程序场。服务器场间有严格的防火墙控制,其中数据库场只能建立从应用程序场的防火墙穿越,也就是说不允许任何客户端直接连接到防火墙。 这种策略对于数据库引擎来说没什么问题,但是对于分析服务来说就被完全限制住了,通常我们都是通过Excel直接连接分析服务数据库的,并且通过分析服务的角色来控制对数据的访问权限。那么是否有什么方法可以解决这个问题呢? 解决思路: 我们知道SSAS是可以通过http的方式来访问的,那么我们只要让这个站点接受windows方式的身份验证就可以简介的实现excel客户端到分析服务数据库的连接。 实验环境: Windows 8.1 + IIS SQL Server 2012 Adveuture Works微软官方示例数据库,这里用到的是分析服务数据库。 实验步骤: 首先,确保IIS已经被填加,然后windows身份模式已经被安装。 分别在操作系统下建立测试账户aaa和bbb依次填加到这两个组中。 在分析服务数据库下,建立两个角色, Team1和Team2。 找到维度数据的设置,分别指定第一个角色拥有Department维度下的前两个成员,另一个角色拥有这个维度下的后三个成员。 填加完毕,确认两个组都被填加到分析服务数据库中。 接下来测试一下角色权限控制的结果,用管理员身份登录

Relationship Between Two Dimensions in SSAS

 ̄綄美尐妖づ 提交于 2019-12-14 04:05:45
问题 I am developing an ssas database and have snowflaked dimensions to which it has links. For example I have a customer dimension table, distributor dimension table and a territory dimension table in which there is a relationship to the latter from the other two. Therefore I can illustrate the relationships as follows: Retailer <-- Territory Distributor <-- Territory In a specific cube in the database, I have measures where all the three dimensions mentioned above have relationships to. As far

MDX: I need column count based on the total rows

冷暖自知 提交于 2019-12-14 03:24:29
问题 Here we have total 14 rows, I need one more column (RowCount-Column name) every-cell contains 14 (reputation) means total row counts. below is the query WITH MEMBER DimName AS [DimClinic].[Provider Key].CurrentMember.Member_Caption MEMBER DimKey AS [DimClinic].[Provider Key].CurrentMember.Member_Key SELECT {[Measures].DimKey , [Measures].DimName , [Measures].[DrPatientKeyCnt]} ON COLUMNS , NonEmpty([DimClinic].[Provider Key].[Provider Key])ON ROWS FROM [PopulationReportCube] 回答1: WITH MEMBER