ssas

testing mdx query with parameters in SSAS

杀马特。学长 韩版系。学妹 提交于 2021-02-10 05:48:20
问题 I'd like to test a MDX query in SSAS. I did the following steps until now. I opened the SQL Profiler and ran the SSRS report I found the query I needed (with parameter values) and selected it sql profiler I pasted the code in ssas Since my SSRS MDX query used StrToMember and StrToSet functions, I surrounded the parameter values with quotes, e.g. “[Measures].[Return On Average Assets]”. The query SELECT { [Measures].[Broj Pristapi] ,[Measures].[Broj Nalozi] } ON 0 , Except ( StrToSet("[Dim

Automatic processing of cube after every 1 hour?

笑着哭i 提交于 2021-02-07 22:23:31
问题 I am using Microsoft SQL 2008. In Microsoft Visual Studio, I have created a cube. I want to schedule the processing of this cube after every 1 hour. Can somebody tell me how to achieve this? Thanks. 回答1: On the same solution with your SSAS project create an new SSIS project Under SSIS Packages, open the dtsx file Go to Control Flow and select the Analysis Services Processing Task from the SSIS toolbox Add the Task to the control flow On the connection manager add a new Analysis Services

Automatic processing of cube after every 1 hour?

妖精的绣舞 提交于 2021-02-07 22:21:01
问题 I am using Microsoft SQL 2008. In Microsoft Visual Studio, I have created a cube. I want to schedule the processing of this cube after every 1 hour. Can somebody tell me how to achieve this? Thanks. 回答1: On the same solution with your SSAS project create an new SSIS project Under SSIS Packages, open the dtsx file Go to Control Flow and select the Analysis Services Processing Task from the SSIS toolbox Add the Task to the control flow On the connection manager add a new Analysis Services

MDX Calculated Measure Count

泄露秘密 提交于 2021-02-07 10:55:47
问题 I'm attempting to add a calculated measure to a simple MDX query. Although I have managed simple calculated measures before I clearly don't understand MDX sufficiently to make this work. Anyway, what I am trying to do is count the number of distinct orders per each of our truck routes. I have tried counting the Order Dimension Keys but all this does is produce the total number of orders in the system rather than the number of orders per route. Can someone help me out? I feel that once I

An M partition uses a data function which results in access to a data source different from those defined in the model

安稳与你 提交于 2021-01-29 19:50:22
问题 I have about 5 Web Service (API) calls I am using, and none of them are working for me... 4 of them are returning this error: An M partition uses a data function which results in access to a data source different from those defined in the model. But guess what, these very same Web Services work in Power BI desktop. I am in VS working on an AAS Tabular model. Please help - I think this is just a VS bug... 回答1: We had a similar problem but with getting data from an SQL Server in an on-premise

How to find lineage between SSAS (Tabular Model) and SQL database

好久不见. 提交于 2021-01-29 18:43:14
问题 We have 20+ tabular cubes with 300+ dimensions and was hoping to find - if there is some automated way to find what is the source for this dimension Yes manually, I can get into Tabular model > Table Properties and can find what view and table are used to populate dimension. However not practically possible to get for 300+ dimensions. And yes, I know some 3rd party provider such as SQL Sentry has some tools which can find that lineage. But just wondering, is there any SSAS DMVs or any other

SSAS MDX Previous Year - Ignore Filter

倖福魔咒の 提交于 2021-01-28 20:19:20
问题 i try to get actual turnover and the turnover of the previous year in the same period. I write this query: with member [Measures].[Turnover PrevYear] as IIF( IsEmpty([Measures].[Turnover Actual] ), NULL, SUM( (ParallelPeriod( [Date].[Year - Quarter - Month - Date].[Year],1,[Date].[Year - Quarter - Month - Date].CurrentMember)) , [Measures].[Turnover Actual] ) ) Select non empty{[Measures].[Turnover Actual],[Measures].[Turnover PrevYear]} on Columns, non empty{[Store].[Store].[Store].members}

Error in deploying SSAS cube to SQL Server Analysis

我只是一个虾纸丫 提交于 2021-01-28 19:22:20
问题 I am having issue deploying SSAS package to SQL Server Analysis. It is complaining of duplicates keys whereas the column is referencing is not a primary key column. I queried the dimension table to see that the primary keys have same values in the affected columns which is normal and possible. The attribute usage and type property are already set to regular in SSDT. Please find the error I am receiving below. I will appreciate an idea to fix this issue. Thank you. Errors and Warnings from

In a MS SSAS Project, creating a Data Source View over Npgsql (PostgreSQL) Data Source produces 42601: syntax error at or near '['

ぐ巨炮叔叔 提交于 2021-01-28 09:39:03
问题 I'm trying to create Data Source View in a Multidimensional SSAS project using MS Visual Studio 2017 with SSDT installed. In the Data Source View Wizard, I select my Npgsql (v. 11.00) based datasource connecting my PostgreSQL 10.5 I created before. No matter which options I select or which tables I choose to work with in the dialogues that follows, after I click the final Finish button I always retrieve a message box stating that "42601: syntax error at or near '['" and preventing me from

In a MS SSAS Project, creating a Data Source View over Npgsql (PostgreSQL) Data Source produces 42601: syntax error at or near '['

拜拜、爱过 提交于 2021-01-28 09:31:04
问题 I'm trying to create Data Source View in a Multidimensional SSAS project using MS Visual Studio 2017 with SSDT installed. In the Data Source View Wizard, I select my Npgsql (v. 11.00) based datasource connecting my PostgreSQL 10.5 I created before. No matter which options I select or which tables I choose to work with in the dialogues that follows, after I click the final Finish button I always retrieve a message box stating that "42601: syntax error at or near '['" and preventing me from