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

calculated member apply formula

$
0
0
SENARIOI have an Measure from DSV - [Measures].[Total Water Qty].When year dim selected > 2012, Apply formula on measure when year > 2012 , [Measures].[Total Water Qty]/ [Measures].[Total Production Qty] On using scope, i am able to see only if year = 2012. Need Formula to apply for all the years greater than 2012.SCOPE STATEMENT USED :SCOPE ([Period].[Calendar Hierarchy].[Calendar Hierarchy - Year].&[2012],[Measures].[Total Water Qty]);This =[Measures].[Total Water Qty]/ [Measures].[Total Production Qty];END SCOPE;ShanmugaRaj

SSAS DIMENSION USAGE ISSUE

$
0
0
Hi,Can some one help me to set up DIMENSION USAGE for below tablesFact: SQLExecutions_FactNo of Executions ( measure )Physical_TableNameIDDimension 1: PhysicalTableName_DimPhysical_TableNameID (PK)Dimension 2: LogicalTableName_DimLogical_TableNameID (PK)Physical_TableNameIDDimension1 -> Dimension 2 is one to many relationshipPlease let me know how to set up this.V

Time table created on server

$
0
0
Hey all,I am new to SSAS and having a play.I have created a dimension, said i wanted a time table on the server (as this seems to suit my needs the best).The dimension is created and added to the cube. What i cant work out is how i then use this? It seems thats its not related to the data at all - and i am now unsure how i can get this to work with a date i have in the fact table.Any guideance gratefully recieved.Dan

Memory and File system error in cube processing

$
0
0
Hi All,I am facing file system and memory error(most of the time) problem in cube processingI tried to execute it through a process as well as running it with normal xml scriptBut every time they are getting failedIt is giving me the following errorExecution failed: File system error: A FileStore error from WriteFile occurred. Physical file: \\?\E:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\OLAP\Data\PV_OLAP.0.db\Ev Data Source 19.0.cub\PVC Tab Resource Hours Fact.0.det\PVC Tab Resource Hours Fact 2.0.prt\13.fact.data. Logical file: . : Not enough storage is available to process this command. .File system error: The following error occurred while writing to the file 'LazyWriter Stream': Not enough storage is available to process this command. .File system error: The background thread running lazy writer encountered an I/O error. Physical file: \\?\E:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\OLAP\Data\PV_OLAP.0.db\Ev Data Source 19.0.cub\PVC Tab Resource Hours Fact.0.det\PVC Tab Resource Hours Fact 2.0.prt\13.fact.data. Logical file: .File system error: A FileStore error from WriteFile occurred. Physical file: \\?\E:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\OLAP\Data\PV_OLAP.0.db\Ev Data Source 19.0.cub\PVC Tab Resource Hours Fact.0.det\PVC Tab Resource Hours Fact 2.0.prt\13.fact.data. Logical file: . : Not enough storage is available to process this command. .File system error: The following error occurred while writing to the file 'LazyWriter Stream': Not enough storage is available to process this command. .File system error: The background thread running lazy writer encountered an I/O error. Physical file: \\?\E:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\OLAP\Data\PV_OLAP.0.db\Ev Data Source 19.0.cub\PVC Tab Resource Hours Fact.0.det\PVC Tab Resource Hours Fact 2.0.prt\13.fact.data. Logical file: .The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\E:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\OLAP\Data\PV_OLAP.0.db\Ev Data Source 19.0.cub\PVC Tab Resource Hours Fact.0.det\PVC Tab Resource Hours Fact 2.0.prt\13.fact.data', Logical file: '' : Not enough storage is available to process this command. .File system error: The following error occurred during a file operation: .Errors in the OLAP storage engine: An error occurred while processing the 'Pvc Resourcemixbycompetence 2' partition of the 'Demand' measure group for the 'Capacity Planning NCCM' cube from the PV_OLAP database.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully. at Microsoft.AnalysisServices.AnalysisServicesClient.SendExecuteAndReadResponse(ImpactDetailCollection impacts, Boolean expectEmptyResults, Boolean throwIfError) at Microsoft.AnalysisServices.AnalysisServicesClient.Process(IMajorObject obj, ProcessType type, Binding source, ErrorConfiguration errorConfig, WriteBackTableCreation writebackOption, ImpactDetailCollection impact) at Microsoft.AnalysisServices.Server.Process(IMajorObject obj, ProcessType processType, Binding source, ErrorConfiguration errorConfig, WriteBackTableCreation writebackOption, XmlaWarningCollection warnings, ImpactDetailCollection impactResult, Boolean analyzeImpactOnly) at Microsoft.AnalysisServices.Server.SendProcess(IMajorObject obj, ProcessType processType, Binding source, ErrorConfiguration errorConfig, WriteBackTableCreation writebackOption, XmlaWarningCollection warnings, ImpactDetailCollection impactResult, Boolean analyzeImpactOnly) at Microsoft.AnalysisServices.ProcessableMajorObject.Process(ProcessType processType, ErrorConfiguration errorConfiguration, XmlaWarningCollection warnings) at Primavera.Datamart.Olap.AnalysisServer.OlapDriver.CmdMain.ProcessCubes(Server server, Database db) at Primavera.Datamart.Olap.AnalysisServer.OlapDriver.CmdMain.ProcessOLAPDatabase(Server server) at Primavera.Datamart.Olap.AnalysisServer.OlapDriver.CmdMain.Main(String[] args)or mostly this errorExecution failed: Memory error: Allocation failure : Not enough storage is available to process this command. .Errors in the OLAP storage engine: An error occurred while processing the 'Resource Mix' partition of the 'Resource Mix' measure group for the 'Resource Mix NCCM' cube from the PV_OLAP database.Memory error: Allocation failure : Not enough storage is available to process this command. .Errors in the OLAP storage engine: An error occurred while processing the 'PVC Tab Resource Hours Fact 2' partition of the 'Supply' measure group for the 'Capacity Planning' cube from the PV_OLAP database.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully.Memory error: Allocation failure : Not enough storage is available to process this command. .Errors in the OLAP storage engine: An error occurred while processing the 'Resource Hours' partition of the 'Resource Hours' measure group for the 'Resource Hours' cube from the PV_OLAP database.Memory error: Allocation failure .Errors in the OLAP storage engine: An error occurred while processing the indexes for the PVC Tab Resource Functional Areas partition of the Resource Functional Areas measure group of the Capacity Planning NCCM cube from the PV_OLAP database.Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully. at Microsoft.AnalysisServices.AnalysisServicesClient.SendExecuteAndReadResponse(ImpactDetailCollection impacts, Boolean expectEmptyResults, Boolean throwIfError) at Microsoft.AnalysisServices.AnalysisServicesClient.Process(IMajorObject obj, ProcessType type, Binding source, ErrorConfiguration errorConfig, WriteBackTableCreation writebackOption, ImpactDetailCollection impact) at Microsoft.AnalysisServices.Server.Process(IMajorObject obj, ProcessType processType, Binding source, ErrorConfiguration errorConfig, WriteBackTableCreation writebackOption, XmlaWarningCollection warnings, ImpactDetailCollection impactResult, Boolean analyzeImpactOnly) at Microsoft.AnalysisServices.Server.SendProcess(IMajorObject obj, ProcessType processType, Binding source, ErrorConfiguration errorConfig, WriteBackTableCreation writebackOption, XmlaWarningCollection warnings, ImpactDetailCollection impactResult, Boolean analyzeImpactOnly) at Microsoft.AnalysisServices.ProcessableMajorObject.Process(ProcessType processType, ErrorConfiguration errorConfiguration, XmlaWarningCollection warnings) at Primavera.Datamart.Olap.AnalysisServer.OlapDriver.CmdMain.ProcessCubes(Server server, Database db) at Primavera.Datamart.Olap.AnalysisServer.OlapDriver.CmdMain.ProcessOLAPDatabase(Server server) at Primavera.Datamart.Olap.AnalysisServer.OlapDriver.CmdMain.Main(String[] args)or in a simple way it gives the below error when running through xml script<return xmlns="urn:schemas-microsoft-com:xml-analysis"> <results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults"> <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty"> <Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" /> <Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception"> <Error ErrorCode="3238002695" Description="Internal error: The operation terminated unsuccessfully." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3238199297" Description="Memory error: Allocation failure : Not enough storage is available to process this command. ." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3240034318" Description="Errors in the OLAP storage engine: An error occurred while processing the 'Resource Mix' partition of the 'Resource Mix' measure group for the 'Resource Mix NCCM' cube from the PV_OLAP database." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3238002695" Description="Internal error: The operation terminated unsuccessfully." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3238002695" Description="Internal error: The operation terminated unsuccessfully." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3238002695" Description="Internal error: The operation terminated unsuccessfully." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3238199297" Description="Memory error: Allocation failure : Not enough storage is available to process this command. ." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3240034318" Description="Errors in the OLAP storage engine: An error occurred while processing the 'Resource Hours' partition of the 'Resource Hours' measure group for the 'Resource Hours' cube from the PV_OLAP database." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3238199297" Description="Memory error: Allocation failure : Not enough storage is available to process this command. ." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> <Error ErrorCode="3240034318" Description="Errors in the OLAP storage engine: An error occurred while processing the 'Resource Mix' partition of the 'Resource Mix' measure group for the 'Resource Mix NCCM' cube from the PV_OLAP database." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" /> </Messages> </root> </results></return>The action I have taken to resolve thisOne most important thing I forgot to say is the m/c is having 4 gb ramI have tried to change the low level memory properties of SQL server analysis services instance in msmsdrv.ini filebut not fruitful also tried to change the SQL server database instance max server memory used to be changed as 1536 from 2048 to resolve the issue but no usePlease help me in this case to resolve this issue

SSAS CUBE PROCESSING ERROR

$
0
0
I am new bie trying to learn SSAS. I have these errors in trying to process my cube after it has shown to have deployed successfully. I need help. 1. OLE DB error: OLE DB or ODBC error: login failed for user 'NT AUTHORITY\NETWORK SERVICE.; 28000; cannot open database "AdventureWorksDW2008R2" requested by the login. The login failed.2. Errors in the high-level relational engine. A connection could not be made to the Data source with the Data source ID of 'AdventureWorksDW2008R2', Name of 'AdventureWorksDW2008R2'.3. Errors in the OLAP storage engine: An error occured while the dimension with the ID of 'Dim Date', Name of 'Dim Date' was being processed.4.Errors in the OLAP storage engine: An error occured while the 'Date key' attribute of the 'Dim Date' dimension from the 'SSAS Project' database was being processed.5. Internal error: The operation terminated unsuccessfully.6. Server: The operation has been cancelled.

Accessor is not a parameter accessor

$
0
0
Hello thereim using SSAS 2008 .my data connection is oracle and whenever im trying to process my cube i got this error (Pic no.1)there is column in my fact table that is the measure filed and it's type is Decimal.when i put a dummy value ('1' for instance) so the process succeeded... so the problem is that decimal filed.i was trying to cast it to int/varchar and etc but it's not helping. also tried to round it...can anyone help plz?another error i get in pic 2....something regarding a key....thanks

Group By MDX for YTD

$
0
0
HI,I'm New to MDX querying, so looking for some help here :This is the query that got generated out of profiler : [code="sql"]SELECT CROSSJOIN( { [Fiscal_Year].[2014] },{ [Period].[Jun], [Period].[Jul] }, { ADDCALCULATEDMEMBERS([Function].[All Function].Children) })ON 0 ,NON EMPTY CROSSJOIN( { [Fund].[10]}, { [Account_Code].[ABCD] }) ON 1FROM [TFA_Budget2]WHERE ( [Measures].[Value])[/code][center] 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 Jun Jun Jun Jun Jun Jun Jul Jul Jul Jul Jul Jul A B C D E F A B C D E F 10 ABCD 10 20 30 40 50 60 10 20 30 40 50 60 [/center] Result Set [center]2014 2014 2014 2014 2014 2014 Total Total Total Total Total Total A B C D E F 10 ABCD 20 40 60 80 100 120 [/center] So we total sum(A) for Jun and JUly and put it in Total.Thanks in advance.

Drill Through from ssas to ssrs

$
0
0
Hi, I tried ReportAction in SSAS and tried to drillthrough to a ssrs report. But my question is how can users use cube in frontend? do we need to create a report with that cube and publish to ReportServer? Or there any way where I can drill through from a summary report to drill through report where summary report has lot of parameters and only one dimension and 2 measures. We need to pass the parameters which we select in summary report to detail Report.Any help is appreciated.

calcualte average by flag value in dimensions

$
0
0
Hello Everyone,I am trying to find the average sales by day if the flag value in dimension is Y or N. I am able to do it without Y or N and its working fine. But i dont know how to get average when flag value(whichis in flag_dimension). Here is my data model is attached.The overallAvg below column i found it by a calculated member by followign 3 steps.1. Find sum of price measures2. Find the count3. Sum/count and this gave me exact result.But what if i want to find average only if FlagA is Y and average when FlagA is Y and flagB is Y/N.Any help will be greatly appreciated.Thanks

Can't Backup SSAS DB/Cube

$
0
0
File system error: The following error occurred while writing to the file '': An unexpected error occurred. . (Microsoft.AnalysisServices)I can't get one AS DB to backup successfully. It gets to 2 GB and fails with the above error. Plenty of disk space. I backed it up successfully 6 months ago and it was 1.9 GB.

Accessing SSAS Cube Remotely

$
0
0
I need to remotely access a clients SSAS cube within SSMS. Apparently, they client has created a local domain account for me, but I can't seem to change my login/password when I enter the IP address of the server. What am I doing wrong?

SSAS2012 - Is There A Query To Show Cube Processing Time

$
0
0
Is there a query in SSAS 2012 that will show the total time a cube took to process? If yes then is there a way to see this same info historically so that the duraction of 2 or more rebuilds can be compared? What about a history of processing exections that shows each time the cube has been proceessed?Thanks

SSAS Attach DB - Error detach_log Access Denied

$
0
0
Hi,I am trying to move SSAS db from one drive to another,I detached the DBstop servicecopied Data, log and backup folders from the old into the new drivestart servicedoing attach , when I get to the folder of the DB I get this message:[b]The following error occurred while opening the file '\\?\E:\OLAP\Data\events_daily 1.0.db\events_daily 1.detach_log': Access is denied. . (Microsoft.AnalysisServices)

MDX Query: Every end of each month on rows

$
0
0
Hi all, I'm new to MDX, I want to create a query to get on Rows every end of each month.The basic query on AW gets all days,[code="plain"]SELECTNON EMPTY { [Measures].[Sales Amount] } ON COLUMNS,NON EMPTY { [Date].[Calendar].[Date] } ON ROWSFROM [Adventure Works][/code]But I want to get only month's ends:[font="Courier New"].................... Sales AmountJuly 31, 2005....... 15,012.18 $August 31, 2005..... 20,859.78 $September 30, 2005.. 35,782.70 $October 31, 2005.... 6,749.98 $November 30, 2005... 18,590.45 $December 31, 2005... 22,168.72 $[/font]Thanks in advanceTito

ALLMEMBER function error

$
0
0
Hello,I have a query statement below but whenever I run it I get an error: The ALLMEMBERS function expects a hierarchy expression for the argument. A member expression was used.SELECT [Measures].[Time Entry Hours] ON COLUMNS , [Time].[day].[Fiscal Year].ALLMEMBERS ON ROWSFROM [TestCube]I have set the AttributeHierarchyEnabled to True. Am I missing anything on my query?thanks!

MDX Query where value is greater than

$
0
0
I'm a newb to MDX queries and I am just getting started with the concepts. I know that I am supposed to forget what I know about SQL since the structure of MDX is completely different.To that end, I'm trying to run a pretty simple query, but I'm kind of hung up on the concept of a WHERE clause and Tuples. I get the data on the intersection of the cube, but then I want to limit it to a specific value for one member in one of the measures.Here's my query:[code="sql"]SELECT {[PC].[Code].Members } on columns,{[EE].[Em].members} on rowsfrom[Cube]where([PC].[Code].&[Reg1]) > 200[/code]If I get rid of the WHERE the query runs, but I see all of the data. In this case, I only want to see where there is a value of 200 or greater for Reg1. All of the members would show, but only when the WHERE condition was met.I hope I'm giving enough information. :w00t:

SSAS 2008 with Adventure Works

$
0
0
I'm working on setting up a 2008 SSAS database using Visual Studio 2008. We have AdventureWorksDW2008R2 as our database in SQL Server 2008 R2. We created a cube in VS 2008 and brought in the dimension "Dim Date" with the fact table called "Internet Sales".We can deploy no problem but the issue is when we try to build attribute relationships. When we build this relationship, it works fine:Date Key --> Full Date Alternate Key --> English Month Name --> Calendar Quarter --> Calendar SemesterThe moment we add Calendar Year, it fails saying: "Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_DimDate', Column: 'CalendarSemester', Value: '2'. The attribute is 'Calendar Semester'."Date Key --> Full Date Alternate Key --> English Month Name --> Calendar Quarter --> Calendar Semester --> Calendar YearWhere are we going wrong? We're having issues with this duplicate error in almost every other attribute relationship we setup. We created a different attribute relationship for our Customer dimension for Gender and Martial Status and we got the exact same issue - except duplicate value in Martial Status is (S).We are creating the relationships because we intend to setup hierarchies. The hierarchies work fine without the relationships so we are a bit perplexed.Here is what we've checked:1.) Quarter, Semester and Year contain NO NULLs2.) Quarter, Semester and Year do duplicate (as we'd expect for each date). What is wierd is why does it work without Year in the relationships but it works with Semester & Quarter?Where are we going wrong here?

Cumulative Sum via Calculated Measure

$
0
0
Hey all I'm hoping you can help me with an MDX problem I am having. I will use adventure works for this example. Basically I have been asked to create a calculated measure in the cube that will display a cumulative or rolling sum of another measure. I have found quite few solutions but all of them use a specific dimension such as date with YTD in the SUM but I was hoping to create a measure that was not dependent on any specific dimension.The simplest MDX I could find is in the example below. While this works in MDX on the fly, I can't use it in Excel in any other dimension besides the product line. I was hoping there was a way to make it dynamic so that it would provide the cumulative sum no matter what dimensions are dropped on.I was thinking that i would have to somehow use the Descendants function with a specified Axis but my knowledge of MDX is so limited that I am probably way off. Any ideas?[code="sql"]with member [Measures].[Running total] as Sum(null : [Product].[Product Line].CurrentMember, [Measures].[Internet Sales Amount]), Format = "Currency"select {[Measures].[Internet Sales Amount],[Measures].[Running total]} on 0, [Product].[Product Line].[Product Line].Members on 1from [Adventure Works][/code]

mdx - MIN and MAX not in context with SUBLECT

$
0
0
Hi All,My journey into mdx is always one step forward and three back (a story for another day...). Using adventure works i have my own user defined CalendarHierarchy on year,month and daytodays puzzle : 1st query ...taking the min and max values over a year range ...results as expected..min and max occurs at 2005 and 2007 respectivlyWITH MEMBER [Measures].[MinValue] AS MIN([Order Date].[CalendarHierarchy].[Year].Members, [Measures].[Sales Amount]), FORMAT_STRING = '0' MEMBER [Measures].[MaxValue] AS MAX([Order Date].[CalendarHierarchy].[Year].Members, [Measures].[Sales Amount]), FORMAT_STRING = '0' SELECT {[Measures].[Sales Amount] ,[Measures].[MinValue],[Measures].[MaxValue]} ON 0, [Order Date].[CalendarHierarchy].[Year].Members ON 1 FROM MyFirstCube Year Sales Amount MinValue MaxValue2005 3266373 3266374 97910602006 6530343 3266374 97910602007 9791060 3266374 97910602008 9770899 3266374 9791060however when doing a subselect on year 2006 which is a sub cube on 2006 I get WITH MEMBER [Measures].[MinValue] AS MIN([Order Date].[CalendarHierarchy].[Year].Members, [Measures].[Sales Amount]), FORMAT_STRING = '0' MEMBER [Measures].[MaxValue] AS MAX([Order Date].[CalendarHierarchy].[Year].Members, [Measures].[Sales Amount]), FORMAT_STRING = '0' SELECT {[Measures].[Sales Amount],[Measures].[MinValue],[Measures].[MaxValue]} ON 0, [Order Date].[CalendarHierarchy].[Year].Members ON 1 FROM( SELECT [Order Date].[CalendarHierarchy].[Year].[2006] ON 0 FROM MyFirstCube)Year Sales Amount MinValue MaxValue2006 6530343 3266374 9791060NOTE the Min and Max values are still from 2005 and 2007 ...why ? shouldn't it be 6530343 for min and max...isn't the data completely filtered out for 2006 now ...dohThe following shows i only have the 2006 year in left my member listSELECT [Order Date].[CalendarHierarchy].[Year].Members ON 0FROM( SELECT[Order Date].[CalendarHierarchy].[Year].[2006] ON 0 FROM MyFirstCube)Year Sales Amount2006 6530343rgds allrobin

Rank with report filter

$
0
0
I have a simple rank that I am doing same as http://www.powerpivotblog.nl/powerpivot-denali-new-dax-function-to-rank/Problem is I need the rank to "re rank" when someone filters so if I have a rank of 1 to 10 and I filter out 1 I need a rank of 1 to 9. RANKX leaves me with 2 to 10
Viewing all 1341 articles
Browse latest View live