ssas

Self-Join in SSAS

别来无恙 提交于 2019-12-11 11:33:16
问题 I have a table like this: PersonId Job City ParentId --------- ---- ----- -------- 101 A C1 105 102 B C2 101 103 A C1 102 Then I need to getting the association rules between Person's job and parent's city . I've used self-referencing and define case/nested tables but at the result of dependency graph there is no difference between person's job or city and parent's job or city! What is the best solution for this problem in SSAS project? 回答1: SSAS Hierarchies should address your problem.

MDX How to calculate measure against dimension without displaying members in results

◇◆丶佛笑我妖孽 提交于 2019-12-11 11:14:18
问题 Could someone please help me with the below MDX problem: I got the dataset like the one below: With Set Range1 as {[Date].[Calendar].[Month].&[2008]&[1] :[Date].[Calendar].[Month].&[2008]&[12]} Set Range2 as {[Delivery Date].[Calendar].[Month].&[2008]&[1]: [Delivery Date].[Calendar].[Month].&[2008]&[12]} MEMBER measures.A as [Measures].[Internet Order Count] + [Measures].[Reseller Order Count] select {[Measures].[Internet Order Count],A} on columns, non empty( [Sales Territory].[Sales

error connecting Power BI enterprise gateway on an azure machine

梦想的初衷 提交于 2019-12-11 10:39:44
问题 I have created a virtual machine on Azure using Image SQL Server Data Center for SQL Server 2014, and created some SSAS cubes on that machine. I am able to access cubes from management studio. I want to access those cubes from Power Bi. I have installed Power Bi gateway on that machine, and connected cubes using live connect method. I further installed Power Bi Enterprise gateway to enable refresh of my cubes to Power BI cloud. Now when I am trying to connect to SSAS on Azure machine using

Account for tied ranks

五迷三道 提交于 2019-12-11 10:31:39
问题 I'm using the following: WITH SET [myset] AS Order ( { [Customer].[Country].[Country].MEMBERS * [Customer].[Customer].[Customer].MEMBERS } ,[Measures].[Internet Sales Amount] ,ASC ) MEMBER [Measures].[rank] AS Rank ( ( [Customer].[Country].CurrentMember ,[Customer].[Customer].CurrentMember ) ,[myset] ) MEMBER [Measures].[newrank] AS IIF ( [myset].Item( [Measures].[rank] - 1).Item(0).Name <> [myset].Item( [Measures].[rank] - 2).Item(0).Name ,1 , ([myset].Item([Measures].[rank] - 2),[Measures].

Cube-level security using CustomData

懵懂的女人 提交于 2019-12-11 09:19:03
问题 I'm new to SSAS, but have been asked to create a product with three cubes (call them "A","B", and "C" for now). Another team is creating web parts "A","B", and "C" to access these cubes, and there are roles "A","B", and "C" which determine which users can access the cubes. My problem The customer's SSAS server is not guaranteed to be on the same box as the SharePoint server, and so we have had issues with a user logging on to SharePoint, and SP not impersonating that user. We can't guarantee

Using GENERATE to concatenate Rank and Member Name

Deadly 提交于 2019-12-11 08:46:47
问题 The following is from MSDN: http://msdn.microsoft.com/en-us/library/ms144726.aspx WITH SET OrderedCities AS Order ([Geography].[City].[City].members , [Measures].[Reseller Sales Amount], BDESC ) MEMBER [Measures].[City Rank] AS Rank ([Geography].[City].CurrentMember, OrderedCities) SELECT {[Measures].[City Rank],[Measures].[Reseller Sales Amount]} ON 0 ,Order ([Geography].[City].[City].MEMBERS ,[City Rank], ASC) ON 1 FROM [Adventure Works] Would it be possible to use the GENERATE function to

SSAS Dimension Data Permissions not applied to measures when the dimension is not selected when querying the cube

孤街醉人 提交于 2019-12-11 07:43:25
问题 I am quite new to SSAS, so please forgive me if there is an obvious answer to my question - I have done a lot of research today and cannot find the answer myself. I am trying to apply Dimension Data security (in a SSAS DB role that I have created) to my SSAS 2012 cube. Essentially, what I am trying to do is that users assigned to the role that I have created, should not be able to see any data for a specific dimension member. So, when I edit the cube in SSDT (SQL Server Data Tools or Visual

Fast dynamic named set calculation

时光总嘲笑我的痴心妄想 提交于 2019-12-11 06:23:24
问题 I have a long complex query with a lot of calculations and conditions but the main structure looks like this: WITH MEMBER [Id1] AS [Level].[Level1].CurrentMember.Member_Key MEMBER [Id2] AS [Level].[Level2].CurrentMember.Member_Key MEMBER [Level].[Level1].[FirstSet] AS NULL MEMBER [Level].[Level1].[SecondSet] AS NULL SET [Set 1] AS {some processed set members} SET [Set 2] AS {some other processed set members} SET [Common CrossJoin Set] AS [Level].[Level2].Members MEMBER [Calculated Measure 1]

MDX - Creating a dynamic grouping member?

旧街凉风 提交于 2019-12-11 06:13:09
问题 Category {A,B,C} Value Currently I can get: Category Value -------- ----- A 100 B 200 C 300 What I'd like to get is: Category Value -------- ----- A 100 B 200 C 300 D 500 Where D is the value of B + C. 回答1: Wow, this was actually incredibly easy... with member [Category].[Name].[D] as [Category].[Name].[B] + [Category].[Name].[C] select {[Measures].[Value]} on columns, [Category].[Name].allmembers on rows from [Cube] Result: Category Value -------- ----- A 100 B 200 C 300 D 500 来源: https:/

Tabular Analysis Service Azure connect and process via c#

本秂侑毒 提交于 2019-12-11 05:56:48
问题 I have a rather strange problem. First of all I want to mention that the following code works with no problems on-premise i.e. in the local intranet. We pushed some Cubes to Azure and I tried to do following in my application: using (Server s = new Server()) { s.Connect(cubeConnectionString); Database db = s.Databases.FindByName(cubeName); db.Model.RequestRefresh(RefreshType.Full); db.Model.SaveChanges(); } So i tried it by using the Azure connection string. It failed with: System.Reflection