I can't seem to access Analysis Services using SSMS or create a data source in BIDS for Analysis Services.I have two accounts, a regular account and an admin account. Admin account has access on the Analysis Services Server as full administrator. I want to give access to my regular account. Per MSDN, I connected to AS using my admin account in SSMS, created a new role for administrators and added my regular account. (See pictures). Per MSDN, my regular account should have access SSAS, but it doesn't. I created a new report server project in BIDS. I tried to create a Datasource for analysis services. When I try to connect it, it says authentication failed. Same thing works for my Admin account. In SSMS, I can't connect Analysis Services Instance using my regular login, but I can connect to it using my admin account. I know if I give access to my regular login at server level, it will work. But I am trying to figure out why can't I access Analysis Services when I give access to it at the database level? (see picture)I have made sure Analysis Service is running.
↧
Granting Access to Analysis Services with access to server level
↧
YTD Calculation in a Cube?
Hi,Can any one help with the YTD calculation?Based on Define Time Intelligence I have created the Year to Date.The below steps has come up automatically once I created YTD in Time Intelligence.I will show the steps is there in Calculations Tab:1) CALCULATE2) There is a [Year To Date] - New Calculated Member is visible3) New Script Command - (My script is) Scope( { [Measures].[NEW RX], [Measures].[TOTAL RX], [Measures].[NEW QTY], [Measures].[TOTAL QTY], [Measures].[TEB] })4) New Script Command - Script for YTD /*Year to Date*/ ( [DIM TIME].[Hierarchy DIM TIME Calculations].[Year to Date], [DIM TIME].[CALENDARYEAR].[CALENDARYEAR].Members, [DIM TIME].[DIM TIME ID].Members ) = Aggregate( { [DIM TIME].[Hierarchy DIM TIME Calculations].[Current DIM TIME] } * PeriodsToDate( [DIM TIME].[Hierarchy].[CALENDARYEAR], [DIM TIME].[Hierarchy].CurrentMember ) )5) End ScopeA) Do I have to change the code? Is there anything wrong in the code? 2) What is the next step should I follow to bring it up in my measures?NOTE: I processed but it is not displaying my YTD in my measures.This is very urgent requirement for me.
↧
↧
strange behavior from Analysis service
Hi all,so I am new to the company and working on this package that builds cubes.SQL Job constantly fails with Executed as user: (user name). The step failed.opened actual package and was able to drill down to tasks where it fails Analysis Services processing tasks that processes dimensions.so If i run the single task it fails with unhanded exception error (no details)but, if I restart Analysis services first and then run tasks in completed fine.After, I initiate second task, fails with same error, restart services, works fine. and so on.One more thing, if i try to backup OLAP db before restart I am getting same error (unhanded exception), it disappears after restart and reappears after each failed task.Please suggest something. I am not too familiar with redeployment option. Maybe?Thank you in advance
↧
How to direct a data source view to another data source
Hi,We are doing a parallel migration from SQL Server 2005 to 2008 R2. We've moved the database, Integration Services and Analysis Services over to the 2008 R2 server. In BIDS, I've migrated the solution successfully into BIDS 2008 and created a new data source for the 2008 R2 server. Is it possible to piont the Data Source View to the new server? Or, do I need to create a new Data Source View that is based on the new server?Thanks for your help and guidance.
↧
New Named Calculation Expression for Case Statement?
Hi,Can any one help with the case statement?The following CASE STATEMENT is the result in my SQL Management.selectColumn1 = case when Column1 = 'true' then 'Y'ELSE 'N'END ,Column2 = case when Column1 = 'true' then 'Y'ELSE 'N'END ,SHARED = case when Column1='true' AND Column1='true' THEN 'SHARED' ELSE 'NOTSHARED'ENDFROM TableRESULT:Column1 Column2 SHAREDY N NOTSHAREDN N NOTSHAREDY N NOTSHAREDN N NOTSHAREDN N NOTSHAREDY N NOTSHAREDY N NOTSHAREDY N NOTSHAREDN N NOTSHAREDY N NOTSHAREDN N NOTSHAREDY N NOTSHAREDY N NOTSHAREDN N NOTSHAREDI have to create a new named calculation using the above statement. How to do it?When I try this it is displaying the error:Deferred prepare could not be completed.Statement(s) could not be prepared.Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
↧
↧
How do I calculate the subtotal for a calculated column using the subtotals of the other columns used in the calculation?
I have in the underlying database a column computed from other values in the same row. In ssas all these columns are automatically summed to provide the subtotals as I drill down hierarchies. However, rather than summing the computed column values I need to perform the computation again in ssas using the subtotals of the other summed columns.I am new to ssas but I have a sense that this is probably a common problem with a generic answer but I cannot find an example of how to do this.
↧
auto generated mdx from reporting services
hi All,Am trying to get my head around mdx generated from reporting services when a parameter is entered e.gSELECT NON EMPTY { [Measures].[Sales Amount] } ON COLUMNS,NON EMPTY { ([Product].[Category].[Category].ALLMEMBERS ) }DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWSFROM ( SELECT ( STRTOSET(@DateCalendar, CONSTRAINED) ) ON COLUMNS FROM [Adventure Works]) WHERE ( IIF( STRTOSET(@DateCalendar, CONSTRAINED).Count = 1, STRTOSET(@DateCalendar, CONSTRAINED), [Date].[Calendar].currentmember )) I can understand it that it always creates a subselect but why does it also add the "WHERE" slicer clause in the subselect ...surely it is not needed. The subselect itself has already filtered the cube down to the set entered. And what is the WHERE trying to achieve anyway ? The IIF is saying if we only have one member in the parameter list then slice it on the single member else slice it on currentmember. Current member of what though ? Current member usually refers to a named calculation...there is no named calculation in the subselect ...all very confusing.shouldn't the below do the job anyway...much simplerSELECT NON EMPTY { [Measures].[Sales Amount] } ON COLUMNS,NON EMPTY { ([Product].[Category].[Category].ALLMEMBERS ) } ON ROWSFROM ( SELECT ( STRTOSET(@DateCalendar, CONSTRAINED) ) ON COLUMNS FROM [Adventure Works])rgds allrobin
↧
a calculated member cannot be used as an operand of a range operator
hi All in mdx land,I have two queries which would do the same thing...doing a rolling 5 day average at the day levelI have a 3 level calendar hierarchy i.e [year] , [year month], [year month day]the first uses the lag method which works WITH MEMBER [RollingAvgLast5Days] AS avg( [Order Date].[CalendarHierarchy].CurrentMember.lag(5) : [Order Date].[CalendarHierarchy].CurrentMember, [Measures].[Sales Amount])SELECT {[Measures].[Sales Amount], [RollingAvgLast5Days]} ON 0,[Order Date].[CalendarHierarchy].[Year Month Day Desc] on 1FROM Saleswhich gives results ;Date Sales Amount RollingAvgLast5Days01 Jul 2001 14477.3382 14477.338202 Jul 2001 13931.52 14204.429103 Jul 2001 15012.1782 14473.678804 Jul 2001 7156.54 12644.394105 Jul 2001 15012.1782 13117.950906 Jul 2001 14313.08 13317.139107 Jul 2001 7855.6382 12213.522408 Jul 2001 7855.6382 11200.875409 Jul 2001 20909.78 12183.809110 Jul 2001 10556.53 12750.474111 Jul 2001 14313.08 12633.957712 Jul 2001 14134.8 12604.244413 Jul 2001 7156.54 12487.7280i've done the same again but using the parallel period to get the previous 5th dayand then used this member in the average functionWITH MEMBER [Previous5Days] AS ParallelPeriod([Order Date].[CalendarHierarchy].[Year Month Day Desc], 5 , [Order Date].[CalendarHierarchy].[Year Month Day Desc].CurrentMember) MEMBER [RollingAvgLast5Days] AS avg( [Previous5Days] : [Order Date].[CalendarHierarchy].CurrentMember, [Measures].[Sales Amount])SELECT {[Measures].[Sales Amount], [RollingAvgLast5Days]} ON 0,[Order Date].[CalendarHierarchy].[Year Month Day Desc] on 1FROM Salesthis is where it errors with the msg :a calculated member cannot be used as an operand of a range operatoras a sanity check if i replace it with a literal date it does work however...my question is 1) is this a shortcoming in when defining a range in mdx or is there a work around2) is there any other way to define a range using a calculated member so the avg function can take it
↧
Cube performance issue
I am a new one in SSAS. I have cube of almost 800MB size without any partition and aggregation defined. User want data of almost all measures and at transaction level. When user browse data at DateKey level then It stuck for a long time and did not return any result. I have implemented partitions and Aggregations but result is same. In my scenario user want auditing and want 80% of cube data at row levels. Should I go for Caching? Please suggest me any solution.
↧
↧
Filter Dimension Members that don't have any Values in selected Measures
Hi there,I have currently been put up on a Task at work to filter out Members of every Dimension used later in Reports (Reporting Services) or Excel for which there is no Values in the used Measures.My question is straight up, How is this done ?I believe many might have had to deal with this issue at some time,my hope is that it can be done directly on Analysis Services (Some Property field that Needs changing), please avoid any mdx, since i can't use it on Client Tools such as Excel.Many thanks to you all in advance,I'm looking Forward to your Help :)this is my Problem[img]http://bennyaustin.files.wordpress.com/2011/03/032311_1228_ssasconside1.png?w=547[/img]
↧
Training kits for MCTS 70-466 and MCTS 70-467
I want to appear in test below. MCTS 70-466 (Implementing Data Models and Reports with Microsoft SQL Server 2012)MCTS 70-467 (Designing Business Intelligence Solutions with Microsoft SQL Server 2012)Has Microsoft published Training Kits for Exams above?I searched Training kits for tests above but I cant find out. Would anyone Please tell me the available material for the exams.Thanks in advance.
↧
Update Dimension Member
I've been tasked with populating the description of all dimensions and measures in our analysis services cubes to then be able to pull this out as a report for the end user to have a data dictionary. The following code will be the basis of the report. Is it possible to run something similar to update the descriptions rather than manually doing this in BIDS and reprocessing? I thought using UPDATE DIMENSION MEMBER might do it, but can't get it to work.SELECT CUBE_NAME, CATALOG_NAME, REPLACE(REPLACE(CAST(DIMENSION_UNIQUE_NAME AS VARCHAR(100)),'[',''),']','') AS Dim_Name, LEVEL_NAME AS Attribute_Name, LEVEL_UNIQUE_NAME AS Dimension_Attribute_Level, LEVEL_CAPTION, DESCRIPTION AS DescriptionFROM OPENQUERY("<server>\<db>",'SELECT * FROM $SYSTEM.MDSCHEMA_LEVELSWHERE [LEVEL_NUMBER]>0AND [LEVEL_IS_VISIBLE]')WHERE CAST(CUBE_NAME AS VARCHAR(255))= 'X'AND CAST([CATALOG_NAME] AS VARCHAR(255)) = 'X'Thanks
↧
Do I need to create aliased tables in the DSV to support multiple hierarchies hanging off the same table
For example, the table Company sits at the top of every hierarchy, i.e.:Company > Category > Sub Categeory > Product > TransactionsCompany > Type > Product > TransactionsIf I simply create a DSV with these 'natural' hierarchies hanging off the Company and then build a dimension with hierarchies, will this arrangement cause me difficulties, i.e. do I need to create Named Queries to alias my Company table in the DSV for each hierarchy?
↧
↧
Missing SSAS project
Hello,I inherited a data warehouse with cube/dimensions and am being asked to make changes. I do not have the SSAS project used to create the dimensions/cubes. Is there a way to recreate this or how would I go about making changes to them?Thank you very much,Josh
↧
MDX Returning Member Properties
The following query returns a list of customers I am interested in:[b]select {[Measures].[Net Value]} on 0, NON EMPTY [Customer].[Customer].[Customer].Members on 1 from (select ( [Transaction Date].[Date].&[2013-01-25T00:00:00] ) on 0 from [Invoice And Credits])[/b]In my customer dimension I have several member properties which hold address information for the customers. I need to be able to include them in the results and have tried this:[b]with member [Measures].AddressLine1 as [Customer].[Customer].Properties( "Address Line 1" )select {[Measures].[Net Value],AddressLine1} on 0, NON EMPTY [Customer].[Customer].[Customer].Members on 1 from (select ( [Transaction Date].[Date].&[2013-01-25T00:00:00] ) on 0 from [Invoice And Credits])[/b]This returns all customers in my dimension (see image attachment SSAS2.png) - How can I include the member property?
↧
Find Date from SQL Table in Analysis Services
Hi,How can I find date from SQL Table in Analysis Services. Like I have Thousand of date in a table 2013-08-13 10:38:39.003, 2012-12-01 45:30:01.009....... and more, How can I add only Years, Months and Dates from those data?Regards,
↧
How To Find OUt How Long It Took For A Cube To Process
Is there any way to find out how long a cube took to complete processing the last time the cube was processed? If yes is there ay way to see that same info for more then just the last time so as to compare the total processing time between multiple processing executions of the cube?
↧
↧
MDX to Get Customer Status in given date range
I have a fact table that stores customer statuses based on when they last chaged. e.g.Customer Status DateAttainedCust 1 Live 20130801Cust 1 Suspended 20130625Cust 1 Live 20120901 Cust 1 Activated 20120731 So assuming I queried the end of year 2012, I would get a "Live Status" or if I queried their status as of 26th june 2013, I get "Suspended"This is straightforward for SQL but no clue how to do it in MDX.Thanks
↧
Can we use the cube data without deploying the solution?
I'm new to SSAS and I've created an dummy solution of Analysis Services project. I don't have permission to deploy the solution on server. So, my question is Can I use the cube data without deploying the solution?Or any other alternative to check cube data.Thanks,Jagz W
↧
Dimension Hierarchy not building correctly
Evening all,I have a curious problem where dimension hierarchies are not being built in the way I expect. My data relates to vehicle types and the structure should follow as: Vehicle Category ( Truck, Car, Motorcycle etc)Vehicle Type (saloon, SUV, Sports, Supersports etc)Make (Ford, Yamaha...)Model (vehicle Model title)VehicleCode (e.g. 1234567)I have defined attribute relationships to suit the above:VehicleCode > Model > Make > VehicleType > Vehicle Category....but if I build the dimension I have the problem that all values for Yamaha lets say appear under the first vehicle type where there is data?? (so again as a data example all yamaha models -even if they have a vehicle type of classic or super sport are appearing under Quad??? I get no design warnings!Now bizarrely if I define the attribute relationships as VehicleCode > Model > MakeandVehicleCode > VehicleType > Vehicle Category...... would you believe it - it works. However, there is a design warning that one or more hierarchy level are not related?!..... but it works??? :crazy: I do not want to leave the dimension design like this as I know its wrong Can anyone suggest why I'm seeing this behaviour.
↧