ssas

Unable to connect to Azure Analysis Services via Azure Function App - Could not load type 'System.Security.Principal.WindowsImpersonationContext'

戏子无情 提交于 2019-12-11 15:49:35
问题 Following this guide, I have created an Azure Function App that compiles and runs: #r "Microsoft.AnalysisServices.Tabular.DLL" #r "Microsoft.AnalysisServices.Core.DLL" #r "System.Configuration" using System; using System.Configuration; using Microsoft.AnalysisServices.Tabular; // req is a value passed from function.json which is currently ignored public static void Run(String req, ILogger log) { log.LogInformation($"C# Timer trigger function started at: {DateTime.Now}"); try { Microsoft

UNION in SSAS MDX query

回眸只為那壹抹淺笑 提交于 2019-12-11 15:26:51
问题 Is it possible to write UNION in SSAS MDX query ? For Example : `SELECT {[Measures].[Sales Amount],[Measures].[Tax Amount]} ON COLUMNS, {[Date].[Fiscal].[Fiscal Year].&[2002], [Date].[Fiscal].[Fiscal Year].&[2003]} ON ROWS FROM [Adventure_Workenter code heres_1] WHERE ([Sales Territory].[Southwest]) UNION SELECT {[Measures].[Sales Amount], [Measures].[Tax Amount] } ON COLUMNS, {[Date].[Fiscal].[Fiscal Year].&[2002], [Date].[Fiscal].[Fiscal Year].&[2003]} ON ROWS FROM [Adventure_Works_2] WHERE

Either the user, 'IIS APPPOOL\App Name', does not have access to the 'SSAS Cube Name' database, or the database does not exist

孤街浪徒 提交于 2019-12-11 15:08:39
问题 1st - I deployed the cube to localhost using SSAS (SQL Server Analysis Services) 2nd - I verified the cube database exists using SSMS (SQL Server Management Studio) even tough the SSAS DB is not showing in SSMS 3rd - I tried to grant permission to my IIS APPPOOL following this answer 4th - I added a new connection in SSMS to Analysis Services in localhost server (instead of a connection to the database engine in the localhost server) 5th - I realized that the process for granting permissions

How can I export my data from a SASS cube after creating a query?

倖福魔咒の 提交于 2019-12-11 14:57:33
问题 I can create my query in SSAS and execute, but I want to export the result to excel or a .csv file so that I can analyse it further. There doesn't seem to be an intuitive way to do this and PowerPivot is not able to provide what I want. 回答1: You can create a pivot table in Excel that is linked directly to your cube. This is shown e. g. in this video. Basically, you need to install the Analysis Services client on your computer (which will already be done in case you have the SSAS developer

How to schedule an SSAS cube refresh only for new facts or updated dimensions?

天大地大妈咪最大 提交于 2019-12-11 14:40:20
问题 Having built a few "test" datacubes through using VS2017, my team are now ready to start working with them in a more production like manner. As such there are a few basic tasks that we need to implement, but we are struggling to find useful resources for. How can we do a monthly refresh of the cube without regenerating all of our dimensions and fact tables? Does VS2017 recognise/honour Slowly Changing Dimensions if we implement them in our Dimension design? To have a guess at this: In our ETL

SSAS Calculated Member Aggregation Issue

与世无争的帅哥 提交于 2019-12-11 13:48:46
问题 I have a very simple Calculated Member: CREATE MEMBER CURRENTCUBE.[Account].[Account Parent].&[NA_1].[Beginning Subscribers] AS -[Account].[Account Parent].&[Beginning_Subscribers] However, the Parent doesn't seem to calculate or simply ignores the Calculated member in Excel. See below: It should look like this: Account Dimension This is the MDX on the Excel side: Select /* Grid - 'Sheet1'!$A$1 */ Non Empty {[Calendar Month].[Calendar Month Parent].&[2018-11],[Calendar Month].[Calendar Month

Move back x members in same hierarchy

删除回忆录丶 提交于 2019-12-11 13:08:02
问题 Is there a function which moves back a set number of members in a specified hierarchy's level? It would be something like the following if I want to move back two members: SOMEFUNCTION([someMember], [specifiedLevel],-2) So an example would be: WITH MEMBER [Date].[Date - Calendar Month].[2MthPrev] AS SOMEFUNCTION( CLOSINGPERIOD([Date].[Date - Calendar Month].[Calendar Month]), [Date].[Date - Calendar Month].[Calendar Month], -2 ) 回答1: There are a few different functions that you could try out:

How to query Date field in MDX with and without aggregate group

不问归期 提交于 2019-12-11 13:07:28
问题 I have a seemingly simple requirement to create a query of price data that will return four sets of price data for different dates: The lowest date of the range The highest date of the range The aggregate sum for the entire range The closest I have is the following query: WITH set [Range] as {[Effective Date].[Date].&[2015-12-01T00:00:00] : [Effective Date].[Date].&[2015-12-31T00:00:00]} select NON EMPTY{ filter([Effective Date].[Date].&[2015-12-01T00:00:00], [Measures].[Plan Price]), filter(

Is there a performance gain using + rather than Aggregate(Union

走远了吗. 提交于 2019-12-11 12:36:02
问题 I was looking at this post in MSDN: http://msdn.microsoft.com/en-us/library/ms145493.aspx It states that + and Union are equivalent ... not exactly in the following as Aggregate needs to be applied if I choose to use Union . It's more readable but is there any performance gain in choosing + over Aggregate(Union ? WITH MEMBER [Employee].[Employee].[blah] AS [Employee].[Employee].[Amy E. Alberts] + [Employee].[Employee].[Garrett R. Vargas] MEMBER [Employee].[Employee].[blahblah] AS Aggregate (

Lower Date Granularity for FactBudget

…衆ロ難τιáo~ 提交于 2019-12-11 12:02:49
问题 I'm currently struggling with the following problem: In our fact table Budget we define a monthly budget. Each entry has therefore a date key 'YYYYMM'. This is however a lower granularity compared to our dimension Date where we have entries per day (-> date key is 'YYYYMMDD'). Therefor I created the dimension PeriodMonth , where we have the primary key as 'YYYYMM' and separate fields for the month, month name and the year. To link the table to our main time dimension, I added a foreign key