Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all 1341 articles
Browse latest View live

Sync SSAS design files to deployed/production

$
0
0
Came across something new that I need help with.Been given a project to review several SSAS databases that were designed by someone else long ago who is no longer available. I need help confirming the latest design files and/or synicjng them to production versionI can view the dbs in SSMS. And, I believe I located the design files from Visual Studio (BIDS). When comparing the two, all the main objects match. However I noticed some members of a role in SSMS was diff than in BIDS. I assumed the designer must have made some changes dirextly in SSMS or that I wasn't looking at the real/latest design flies.I've searched and searched for design files but decided rather then continue that (the designer wasn't clean and has stuff all-over the place), best solution was to just sync this design project to the production version . How do I do that?Of course I didn't want to redeploy because don't want to accidentally overwrite production version with old or wrong configuration.

Extending SSAS tabular model?

$
0
0
I've just started playing with SSAS Tabular 2016 after learning the basics of DAX. (I know enough to be dangerous, I think.)It doesn't seem possible to "extend" the model in any way if you're not the developer - I can't add calculated columns or measures to any model that uses SSAS Tabular. Am I missing something or is this by design?

MDX Cube Calculation Help (long)

$
0
0
Hello All,I have been working with SSAS/Multidimensional for a few years now, although I would classify my MDX skills as fair at best. I’ve recently constructed a cube with Human Resources content and have an interesting (and baffling to me) problem I am trying to solve through MDX. The end goal here would be to come up with a few cube calculations for the measures of interest.Background: One of the measures in the cube surrounds personnel actions (hires, terminations, promotions, organization changes, job changes, etc.) and provides an action type/employee identifier. The principal measure value used is a Distinct Count on the Employee ID. For this problem, I am only interested in the action type = TRANSFER, which is a record that indicates a person has moved from one department to a different one. Part of the referential information in the TRANSFER record is the department ID of the FROM department and the TO department.The cube has a role playing Organization dimension hierarchy that is used for both the FROM department ([Org PIT – FROM ACTION]) and the TO department ([Org – PIT]). The non-ragged hierarchy has the following levels (highest to lowest): [Lab], [Executive VP], [Division], [Center], [Group], [Department], [Team]. The query that follows focuses on the Division level, however I would like it to be able to be flexible enough to work at least the top 4 levels of the hierarchy (Lab, Executive VP, Division, Center) if possible. (Side note: The TO Organization structure is used almost exclusively in the cube and has relationship to many other measures. The FROM Organization structure is only used in this calculation and will be hidden from general use so as not to confuse the user population.)This pivot table (uploaded attachment) demonstrates the employee counts at the Division level of the Organization hierarchies. On rows is the Organization that the employee comes FROM. On Columns is the Organization that they are going TO as a result of the TRANSFER action.Note that the intersection of where a FROM Division equals a TO Division represents internal movement of employees within that Division (e.g. there were 125 employees that moved FROM a department within Division “D”, TO a department within Division “D”, highlighted in yellow). I’ve been able to replicate the movement at the Division level with this query:SELECT [Measures].[Employee Count - JOBHIST] ON COLUMNS ,NON EMPTY ( [Org - PIT FROM ACTION].[Org Hierarchy].[Division] ,[Org - PIT].[Org Hierarchy].[Division] ) ON ROWSFROM [ARCHR]WHERE { ( [Time].[Fiscal].[Fiscal Year].&[2016] ,[Actions].[Action Hierarchy].[Action].&[XFR] ) };A partial result set…FROM Division TO Division Employee Count - JOBHISTA A 2A C 1A D 1B B 109B C 3B D 4B E 1B J 1C B 4Which you will note replicates the values at the appropriate intersections in the pivot table above.My hope is to use this as a portion of the overall calculations I am trying to accomplish.1. Transfers WITHIN an Organization Level (how many employees transferred to departments within Division highlighted in yellow)2. Transfers OUT OF an Organization Level (how many employees transferred to departments outside of the Division, e.g. 5 + 4 + 1 + 2 + 3 highlighted in orange3. Transfers INTO an Organization level (how many employees transferred into departments within the Division from outside Divisions, e.g. 1 + 4 + 8 + 4 + 1 + 1 = 19, highlighted in green.I have been fooling around with IIF statements within the member to hopefully display the employee count when the value of the FROM Division equals the value in the TO Division, or display a NULL when they are not equal:iif([Org - PIT FROM ACTION].MemberValue = [Org - PIT].MemberValue ,{[Measures].[Employee Count - JOBHIST]} ,NULL)Which seems like a reasonable approach, but doesn’t work.Can anyone offer guidance? Thanks in advance.-Jim

Duplicate Attribute Key Error Whie Processing Dimension

$
0
0
I've been trying to process a cube (designed by someone else) and have been getting an error. I've been able to narrowed it down to one dimension which produces an error and the following warning:"Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_Dim_time', Column: 'Mth_Name', Value: 'April'. The attribute is 'Mth Name'."The message seems pretty obvious... The underlying 'dbo.Dim_time' table has duplicate 'April' values in the 'Mth_Name'. When I look at the table, it in fact does have duplicate 'April' values, however, from my reviews of that field, it SHOULD! The table is holding multiple years and is repeating the month's name for each year.So not sure why it's causing a problem. It appears the problem may be because of the way he setup the attribute relationships.Any ideas?Please take a look at the attached screen shots.Note:There is a warning message in two of the attribute relationships. The message says:"Design hierarchies for each incoming relationship path when attributes have multiple incoming relationships or, if any of the incoming relationships are unnecessary, you should delete them."

Security on backed up cube

$
0
0
Hi guys, seems obvious, but I have a cube with security applied so certain users cant see certain measures. if i back it up and give it to a user that has these restrictions to attach in his environment, will the security and restrictions still apply?I am sure it should but is there any thing else I need to consider or be aware of?cheersian

Hierarchy, Attributes and browsing levels in isolation

$
0
0
I have just started building my first cube on Visual studio 2015 and need some assistance;I have a product dimension with a hierarchy on Product/Item/Category set up. When browsing a level in isolation, eg Category, I would want to return the results regardless of the levels above as it would do if it wasn't in a hierarchyFor example data as belowProduct / Item / Category / Quantity A / AA / AAA / 1 A / AB / AAA / 1I want it to return the below, in the browser, as it would if it wasn't in a HierarchyCategory/ Quantity AAA / 2Yet it returnsCategory / Quantity AAA / 1 AAA / 1I assume it is doing this as the item is different on two lines. Is there any way to get round this or is it a consequence of using Hierarchies?Thanks in advance

The attribute key was converted to an unknown member

$
0
0
hi fellows, hope someone would have an answer for my issue, i would really appreciate it.So, i have a cube i'm trying to get running. but this error is stopping from being process successfully.Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'dbo_FactSomeFact', Column: 'DimSomeDimWkey', Value: '62'. The attribute is 'Some Dim Wkey'. Errors in the OLAP storage engine: The attribute key was converted to an unknown member because the attribute key was not found. Attribute Some Dim Wkey of Dimension: GL Catalog from Database: MultidimensionalXY, Cube: SomeCube, Measure Group: Fact Some Fact, Partition: Fact Some Fact, Record: 1.some facts and things i already check:- i already process full the dimension "GL Catalog".- the table dimension has no null or unexisting value in the fact, in the facts all dimension member exists in the dimension table.- i deleted and re created the cube several times.some context:- my dimension in (SSAS) is created from 1 primary tables and 6 related tables through foreign key.- in the primary dimension table "DimSomeDim" all foreign keys members exists in the other 6 related tables.- the other 6 related tables has foreign keys to other tables which those are null for some members.

NaN Infinity (how to control these)

$
0
0
SELECT FLATTENED[CODE14] AS [CODE], 2 AS [PARTICIPANT.ID], 'UNITS' AS [FCST.TYP], 'FCST' AS [FCST.VERSION],(SELECT $TIME AS [QUARTER] ,[PIZZA UNITS] AS [VALUE] ,PREDICTVARIANCE([PIZZA UNITS]) AS [VARIANCE] ,PREDICTSTDEV([PIZZA UNITS]) AS [STDEV] FROM PredictTimeSeries([PIZZA_UNITS_FCST].[PIZZA UNITS], 4) AS t) AS FCST FROM [PIZZA_UNITS_FCST];Where value, variance and stdev I am getting a few NAN and Infinity errors. How would you control those? I am trying to insert this script into a flat table using SSIS but I am just having a doozy of a time getting this into the table. I did do some backdoor nonsense setting everything to Max nvarchar and used some transformation task to change the data and then switch it back again and it worked, for the most part. But I'd like to keep the float data type for reporting etc....Thank you

Starting SSAS Jobs from Control-M

$
0
0
Has anyone here ever used BMC's Control-M to schedule SSAS processing jobs? If so, where can I get more information?

Reporting on SSAS Tabular in PowerBI Desktop

$
0
0
I'm a SSAS noob. I created my first really simple SSAS tabular model, and I can report on it in Power BI Desktop... but there are some unexpected things happening... The biggest one is that I can't add any other data sources to my report, and I can't add any anything (no data sources, no calculated columns, no measures, nothing) to the data model.Is this a "one [controlled] version of the truth" thing, where if the source isn't in the SSAS model, then you're out of luck?Thanks,Pieter

Connecting to SSAS Tabular (Import Data option) in PowerBI

$
0
0
Another day, another HUH?!If I connect to SSAS Tabular in PowerBI Desktop and select "Connect Live", I can see a "normal" list of tables and measures. All the columns are with the table... as expected. (Well, looks the same as connecting to a data warehouse in SQL Server.) Has the nice:TABLEColumn1Column2...Measure1Measure2etc thing going on.If I connect using "Import Data", I get one large amorphous mass of columns in the format of TableName.ColumnNameall lumped together, which is pretty hard to read, because I can't hide columns.Am I just plain doing something wrong, or is this a "feature" or intentional? If it matters, I'm using SSAS 2016, and this version of PowerBI Desktop: Version: 2.38.4491.282 64-bit (August, 2016)In order to reproduce what I saw, follow these steps:1. Get Data: Choose [b]SSAS Database[/b].2. On the "Import Data" screen, enter the server and database information and then select the [b]Import Data[/b]3. Select a few columns from the various tables (choose from at least two tables).4. In the Fields window, instead of seeing just the table name and then being able to toggle the visibility of the fields, you get ONE huge list of columns in the format of {Table}.{Column}Did I make a stupid mistake somewhere? (Entirely possible! I don't usually play with SSAS!) How do I get PowerBI to show the same list of tables and then the columns like I get when I connect to a Data Warehouse and not a Tabular model?

SSAS Tabular Row Count from SSMS

$
0
0
Is there a quick way to determine the number of rows in a Tabular table from SSMS? I'm wondering if there is something similar to when you right-click on a "regular" table and get the row count from Properties.

Errors in the OLAP storage engine: The attribute key cannot be found when processing: Even though key Exist in Dim Table..

$
0
0
Hi All,Recently I added new fact table called Orderline to my Order Cube and want to use all the dimension attributes of Order measure group for Orderline, so i added new dimension called Order with only OrderKey and used the same for referenced Dimesnion...under Dimension Usage Tab.However when i process the cube i am getting the following error:Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'dbo_DimProviders', Column: 'ProviderKey', Value: '6729854'. The attribute is 'Admit Prov Key'. Errors in the OLAP storage engine: The record was skipped because the attribute key was not found. Attribute: Admit Prov Key of Dimension:and i found the records in DimProvider table for that correspounding values.I know my data is clean, I am not sure about the problem and i dont want to change processing settings to ignore the errors..while processingIn reading various blogs, I've taken the following steps:1. Successfully processed each dimension separately2. Dropped and recreated my partitionsBut no luck..Any suggestions are really appreciated..RegardsKrishna

Querying SSAS 2016

$
0
0
I have a really dumb question... partly because I don't get the whole Tabular/Multi-Dimensional difference.Does Tabular just lie and tell you that it doesn't create a cube in the background when in fact it does? I thought that if you have DAX, you have a star schema, but no cube. I'm watching Bill Pearson's PluralSight course on Organizational BI with SSAS... and I'm confused...is it all the same cube under the covers and you can query it with either DAX or MDX? (Makes me think I've been listening to software sales people too long... "here's a new feature..." [that's been around under a different name for 25 years].Thanks,Pieter

SSAS Tabular DirectQuery Mode to Netezza

$
0
0
I'm just curious. Has anyone on this forum ever tried to use SSAS Tabular with Netezza in DirectQuery mode?

SSAS 2008 R2 DB Backup failing with below error

$
0
0
Script using for taking backup<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <Object> <DatabaseID>Am_Focus</DatabaseID> </Object> <File>G:\SSAS Backup\Foc_Re.abf</File> <AllowOverwrite>true</AllowOverwrite> <ApplyCompression>false</ApplyCompression></Backup>My SSAS DB daily backup failing with below error.MessageExecuted as user: AUB\BHHQALMDB1$. Microsoft.AnalysisServices.Xmla.XmlaException: Server: The operation has been cancelled. at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForSoapFault(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError) at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForError(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError) at Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility) at Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessageAndReturnResult(String& result, Boolean skipResult) at Microsoft.AnalysisServices.Xmla.XmlaClient.Execute(String command, String properties, String& result, Boolean skipResult, Boolean propertiesXmlIsComplete) at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.ExecuteStatement(String stmt, StatementType stmtType, Boolean withResults, String properties, String parameters, Boolean restrictionListElement, String discoverType, String catalog) at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.SendCommand(String command, Boolean withResults, String properties) at OlapEvent(SCH_STEP* pStep, SUBSYSTEM* pSubSystem, SUBSYSTEMPARAMS* pSubSystemParams, Boolean fQueryFlag). The step failed.Please advice how to resolve this.

Dealing with NaN, Infinity Errors from ARTXP and Mixed Algorithms

$
0
0
So after a long fought battle what I ended up doing was........Setting up a directory folder with an Excel template, with this I set the columns correctly, matching the names in the query (DMX)File System Task to Delete the present templateFile System Task to Copy the template to the new location that was recently deletedActual DMX query to the Excel file3 seperate data flows that utilized a flattened query to the excel file (ARIMA, ARTXP, and Mixed)Loaded my relation table from the Excel fileWith a case statement I updated the table to turn nulls into 0's, for the value, stdev and variance. The reason I used this approach was due to the limitation of the ARTXP and Mixed algorithms, if they start to go wild the forecast craps out and it stops, leaving you with a string NaN, Infinity or something else. This strategy allows you to retain all records and update the table at the end. Probably not the best way to get things done, but I tried the derived table and converting task, I just found them more of a headache to be honest.

From SSAS 2012 to SSAS 2016

$
0
0
Has anyone upgraded from 2012 to 2016 yet? If so, what are some challenges? How did you verify that the Tabular models and/or Multidimensional cubes migrated over properly?

MDX Grand Total Issue

$
0
0
Folks, I am back with the classic grand total issue that we face in MDX. I thought I clearly had my head around the fix but this thing keeps stumping me every now and then. So here is the problem - I want to calculate a calculated measure at a specific granularity of the 2 dimensions - 'Fiscal year' & 'Currency conversion'. I scope my calculated measure - [Amount] along with the 2 dimensions and do the necessary calculation. Here is the snippet -SCOPE ([Measures].[Amount], [Currency Conversion].[Currency Conversion].[Currency Conversion].MEMBERS, [Date].[Fiscal Year].[Fiscal Year].MEMBERS);THIS = IIF(([Date].[Fiscal Year].Currentmember, [Measures].[Budget Rates]) = NULL,[Measures].[Amount FX] , ([Date].[Fiscal Year].Currentmember, [Measures].[Budget Rates]) * SUM([Measures].[Amount FX]) );END SCOPE;I get the granular level data correct with this but grand totals are off. Can anyone help?Thanks

MDX Calculated Measures not affected by slicers

$
0
0
Hi! I'm new with this howl MDX thing and cant seem to figure out how to make the following work.I have a few Calculated measure that calculates a value based on the line related to the rest of the data. eg. The total contribution of sales a single store has to the total of all stores.Here are 2 Expressions that makes this posible: - ([Measures].[Total] / MAX([Store].[Store ID].ALLMEMBERS,[Measures].[Total]) - ([Measures].[Total] / SUM([Store].[Store ID].[All],[Measures].[Total])The problem I'm having is that my slicers do not affect the results. In other words: Lets say a store has a 10% contribution with regards to the total of 100 store (all stores).When filtered by region (for example) it lowers the total number of store to 50, but the contribution still shows 10%. I need the contribution to be relative to the 50 store not the 100.For some reason the date seems to work, but this is probably because it does not affect the axis.I'm not sure how the cube (built in SSAS) construct the query behind the scenes but I would imagine it looking something like this:WITH MEMBER [Measures].[%GT Total] AS ( [Measures].[Total] / MAX([Store].[Store ID].ALLMEMBERS,[Measures].[Total]) --[Measures].[Total] / SUM([Store].[Store ID].[All],[Measures].[Total]) ), FORMAT="Percent"SELECT {[Measures].[Total],[Measures].[%GT Total]} ON AXIS(0) ,NON EMPTY{[Store].[Store ID].CHILDREN} ON AXIS(1)FROM [RMS_BISale]where [Store].[Division].[Division ID].[Wholesale] another example will be the Store Average which is also not affected by slicers: - (AVG([Store].[Store ID].[Store ID].members, [Measures].[Total]))or the region division total of a store... they all seem to have the same problem.Any help\guidance will be very much appreciated.
Viewing all 1341 articles
Browse latest View live