ssas

SSAS Tabular on Azure?

浪尽此生 提交于 2019-12-07 01:07:26
问题 I'm attempting to deploy an ssas tabular model (I don't know what I'm doing ) I have made multidimensional on SQL Server 2008 R2 with VS2013. I wanted to try Tabular in conjunction with power BI. So I set up a SQL Azure DB, I have Azure SQL database and Visual Studio 2013 Pro I can get the connection to the Azure DB in VS2013 and write T-SQL against it but when I try and create a tabular model and select the Azure database as the SQL Server workspace it fails to make a connection. Is it

SSAS cube with multiple DB

让人想犯罪 __ 提交于 2019-12-07 00:37:41
问题 I have 3 databases with the same structure, but different data, since they are from different clients. Now, I have an existing SSAS project. Its Data Source Views, Cubes and Dimensions can only use or access one DB. What I want is to be able to use multiple databases with the same structure, and create a cube using them. Each client must also be able to use the cube, but they can only see their own data. Are these possible? Can you please provide insights and some useful references? 回答1: Easy

AdventureWorks date dimension shows different results depending on selected hierarchy

风格不统一 提交于 2019-12-06 21:49:05
Here are two simple queries which shows data on month level filtered by dates. In the first query I am using Month level of "Date.Calendar" user hierarchy. SELECT NON EMPTY { [Measures].[Internet Sales Amount] } ON 0, NON EMPTY { [Date].[Calendar].[Month].&[2013]&[1] } ON 1 FROM [Adventure Works] WHERE {[Date].[Date].&[20130105]:[Date].[Date].&[20130106]} And recieved - January 2013 -> $857,689.91 Results In the second query I am using "Date.Month of Year" attribute hierarchy. SELECT NON EMPTY { [Measures].[Internet Sales Amount]} ON 0, NON EMPTY { [Date].[Month of Year].&[1] } ON 1 FROM

How to automate MDX testing of SSAS

自古美人都是妖i 提交于 2019-12-06 15:32:25
I've developed some MDX queries which are used to test our SSAS cube. I would like to automate these queries so that I could execute them all with a click of a button and ideally green bar/red bar based on their output. Is there a way I could hook these queries up with Visual Studio to get this behavior? You can try any unit testing framework here. Although unit tests aren't intended for such use, they can be useful there - test runners have red/green indicator out of the box. Write test which executes mdx using ADOMD.NET ( http://j.mp/NtKFih ) and exception during execution will fail test.

Creating a Calculated Time Periods Hierarchy

倾然丶 夕夏残阳落幕 提交于 2019-12-06 15:27:19
In order to give a nicer Cube browsing experience to end users, I am trying to create a Time Periods hierarchy consisting of Calculated Members. Currently I have used a Calculated Column in my DSV to create a column with the same value on every row in my Dates table (value is All Time ). Then within my Date and Time dimension I have created a single level, single member hierarchy using that Calculated Column, which looks like this: Now what I have already successfully done is add Time Periods to my Calendar hierarchy with the following calculation: CREATE MEMBER CURRENTCUBE.[Completion Date].

percentage difference with month and year and count in table using DAX

泪湿孤枕 提交于 2019-12-06 10:51:07
问题 I am trying to get percentage difference with month and year using DAX function Month Year records Jan 2015 100 Feb 2015 120 Mar 2015 140 Apr 2015 160 and I am trying to calculate percentage diff in a new column Month Year records %change Jan 2015 100 0% Feb 2015 120 20% Mar 2015 140 17.02% Apr 2015 180 22%.03 回答1: In your current setup, something like this could work. Using a datetable would be better and easier though. %change = VAR StartLastMonth = ( DATE ( 'table'[Year], 'table'[Month] -

What is the best way to obtain the complete list of permission of a given user using AMO in C#

折月煮酒 提交于 2019-12-06 10:39:32
I am using Visual Studio 2013(C#) and SSAS 2014 (through AMO). I need to prepare a list of permissions of a given user in the SSAS database. For example, domainName\userName has permissions on the 2 dimensions out of 5 available in the database. I like to prepare a list like this. Dimension Name | Attributes | Dimension used in Cube | VisualTotal | Mdx Set (if any) | Role Name I can loop through Roles and members and get some information. But it seems that it is a long shot and will not be performance friendly in the production environment. Any advice is much appreciated! Try checking out

What does the SSAS setting None in AggregateFunction do?

柔情痞子 提交于 2019-12-06 09:36:42
As I understand Microsoft's explanation setting the AggregateFunction of a measure to "None" should null out the value unless you are viewing the data at the lowest possible level. (i.e. the data element is a copy of the value in one exact cell in the cube). I've created a fact table at the grain product id and sales date, and have set AggregateFunction property of a few measures (they are percentages of some sort) to "None", and I nulls at every level in the cube, even the product/sales date level (I am using Excel to connect to the cube and drilling through a pivot table). I'm sure that

SSAS - Data Cube Hierarchy not visible in Excel

霸气de小男生 提交于 2019-12-06 08:30:26
Initial Request: Create hierarchies over customer names and product descriptions. Problem: I created several similar hierarchies and the product description hierarchy is not visible in Excel Supporting details The computed columns for each hierarchy look like this: Column Name: Product Description Prefix1 Expression: CASE WHEN [ProductDescription] = 'N/A' THEN 'N/A' ELSE LEFT([ProductDescription], 1) END Column Name: Product Description Prefix5 Expression: CASE WHEN [ProductDescription] = 'N/A' THEN 'N/A' ELSE LEFT([ProductDescription], 5) END Column Name: Product Description Prefix10

Is it possibile to remotely process an SSAS cube throgh script?

此生再无相见时 提交于 2019-12-06 05:53:27
I have an SQL Server Analysis Service ( SSAS ) cube (developed with BIDS 2012 ) and I would like to give the opportunity to the users (that use cube through PowerPivot ) to process the cube in their local machines. I found some material on how to make a scheduled job on the server through Powershell or SQL Agent or SSIS but no material on remotely process the cube. Any advice? There are several possibilities to trigger a cube processing. The low level method is issuing an XMLA statement to the database containing the cube. To see how this looks like, open SQL Server Management Studio, connect