Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

Power shell

$
0
0

Hi All,

I'm new to Powershell, a set of Powershell script is written in SQL server agent job to create and refresh Partition in a Tabular Cube. I need to debug this code and understand the functionality.

In the script I can find usage of "WriteLine" but I do not know where to check the values. Please suggest me how should I check the "WriteLine" values which is written in SQL server agent job. Thanks much!!

Cheers

Jim


Cube Failure issue

$
0
0

Hi all,

I have a Dimension table based on Key value columns ResourceID,Resource Name,Location,Designation..etc

I have a Fact_Resources Table which is maitaining the "Skills" and "Rating" of the Resources ,one resource have one or more Skills and their Rating Respectively.see the below screenshot of Dimension and Fact Table records and Dimension Skills,

"Fact_Resource" table below,

"Dim_Resource" below,

"Dim_Skills" table for Skills ,

Now i need to find the "Count of Resource by Skills and Rating" based on above three tables .When i created the cube with relating "ResourceID " from "Dim_Resource"  table and "Fact_Resource" - "ResourceID" with regular relationship,the cube got failure.So how to fix this issue like what type of model needs to update and how the relation should be done.

Thanks,

BhupeshR


2 Time tables or 1 for time calculations in SSAS Cube -

$
0
0

Hi ,

I am developing a cube for time calculations such as YoY, YTD,MTD for calendar year and financial year.

So is it a best practice to use 1 time table in DSV for both types of years or 1 time table for each.

I tried using one table for both and used time intelligence, but there is a warning which says to consider having just one non aggregatable calculations.

Thanks,

Sushma

SSAS - Time Intelligence YTD not showing in excel

$
0
0

Hi , 

I added YTD and MTD from business intelligence - time intelligence into my cube and I could see the values on cube browser but not on excel pivot table. 

I can see other calculated members but not the YTD .

What should I change in order to get them displayed ?

Thanks,

Sushma

MDX CustomData returns #N/A when connecting over http msdmpump and IUSR removed as SSAS adminstrator

$
0
0

We connect to a SSAS cube using SSMS via the msdmpump as described here. We use the Anonymous Authentication option.

In the additional connection parameters in SSMS, we pass in CustomData=1

Using the MDX example here to return the value of the CustomData function, we correctly get the value 1 when the IUSR account is a SSAS administrator. The ISUR account is the credentials used by Internet Information Services to connect to the SSAS cube when a user connects via the HTTP pump.

When we remove IUSR as a SSAS administrator and instead assign the account to a role, the function now returns #N/A.

Any ideas why this would be the case?

ascmd for SQL Server 2012

$
0
0

Hi everyone!

Till now, I used ascmd to execute some queries to SSAS 2008R2. My company begin to install some new SSAS 2012 servers and I want to re-use all my maintenance scripts with these new servers. I can't find any ascmd tool in SQL Server 2012 neither any documents or relatives on the internet.

Does anyone have some information about that? Or a link to download the tool?

When I try to execute a query with my version, i get the following message:

"Microsoft (R) Analysis Services 2008 Command Line Tool
Version 10.0.87.5 X86
Copyright (C) 2008 Microsoft Corporation.  All Rights Reserved.
Ascmd: Exception trying to impersonate user: Could not load file o
crosoft.AnalysisServices, Version=10.0.0.0, Culture=neutral, Publi
5dcd8080cc91' or one of its dependencies. The system cannot find t
ied.
Ascmd: Execution failed: Could not load file or assembly 'Microsof
ices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd80
 of its dependencies. The system cannot find the file specified."

When I check in C:\Windows\Assembly, I can see that I have the 11.0.0.0 version.

How can I deal with it? I can't use PowerShell script...

Thanks!

DSV is changing date column to string

$
0
0

I noticed this issue when I ran the BIDs Data discrepancy checker.

It wants to change my date field to WCHAR because the DSV has set it to String.

The field in SQLServer is a date column.

However when I add the table to the dsv it changes it to String.

I have tried manually changing it in the xml file, but if I refresh, it changes it back to string.

Everything appears to work, should I just ignore the BIDS checker or follow its recommendation and change it to WCHAR

Thanks

Jon

SSAS Tabular - Using SSDT to connect to Access database

$
0
0

I'm beating my head against a wall here.

I'm trying to pull data from an Access database into my tabular model in SSDT.  I've ran into the dreaded "Microsoft.ACE.OLEDB.12.0 is not registered" error.  Here is my environment:

  • Windows 8.1 64 bit
  • Office 2013 32 bit
  • SQL Server 2014

I've tried the following solutions:

  1. Installed 64 bit Access Database Engine for Office 2010 - same error when connecting
  2. Uninstalled 64 bit engine and installed 32 bit for Office 2010 - same error
  3. Installed both 64 and 32 bit engines for Office 2010 - same error
  4. Installed 64 and 32 bit engines for Office 2010 and 2007 database engine - database format not recognized
  5. Uninstalled 64 and 32 bit engines for Office 2010 and installed 2007 database engine - database not recognized
  6. Uninstalled everything - ACE not registered error

The database I'm trying to connect to is a accdb file that was first created in Access 2007 and is currently maintained using Access 2013.

The solutions I've tried seem to have covered all the scenarios I've found searching the forums and the internet.  Any ideas from anyone else?  This one is driving me nuts.

Thanks!


Error when processing dimension using XMLA script

$
0
0

I am hopeful that someone has an answer for this...

I am in the process of deploying SQLServer 2014 and have been running in parallel with my production environment for 2 weeks with no issues.  Yesterday morning, my primary data load job failed while executing a process dimension script.  The script does a process update on multiple dimensions, but fails on the product dimension.  This is the script:

<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"><Parallel><Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"><Object><DatabaseID>WestLakeSales</DatabaseID><DimensionID>Dim Product</DimensionID></Object><Type>ProcessUpdate</Type><WriteBackTableCreation>UseExisting</WriteBackTableCreation></Process></Parallel></Batch>

It processes the attributes and starts processing the associated measure groups, then fails with a return code that I cannot find any information on:

<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="3238133769" Description="" Source="Microsoft SQL Server 2014 Analysis Services" HelpFile="" /></Messages></root></results></return>

At the end of the job log it just shows this:

*****

Finished processing the 'Inventory Weekly 2009 08' partition.
Processing of the 'Inventory Weekly 2009 06' partition has started.
Finished processing the 'Inventory Weekly 2009 06' partition.
Processing of the 'Inventory Weekly 2010 02' partition has started.
The job completed with failure.
The job completed with failure.
The job completed with failure.

Execution complete

********

When I run process update from Studio it processes all of the attributes and measure group partitions, then throws a single 'error' result with no description or message.  It appears that all partitions process successfully.  See the screen shot:

This script ran fine up until yesterday.  There were no system changes.  The same script is currently running fine on the production SQLServer 2008 instance.

Anyone see anything like this happening in SSAS 2014?  Any tips on further trouble shooting?

Cube Partitions

$
0
0

Dears

I have certain measure groups that need to be reprocessed. they are partitioned in weekly manner for almost 4 years time period. The cost of reprocessing all these partitions is too high, it may take weeks, and even a month, due to huge data in the data warehouse.

luckily, we have a backup of the analysis service DB, but old (2014). Can I migrate the old partitions of 2014 and backward from the backup cube to the new cube (some thing like switch partitions in databases) ??

Regards

Showing Zero values in OLAP Pivot Table for Excel 2007

$
0
0

Hello,

I needed a help to a problem. Is it possible to show the values with No sales in an Olap Pivot Table ??

I have a sales Cube, and brwsing it via excel i wanted to filter on a Product Category and see how many products in this category had made no Sales. By default the Pivot table doesn't shows the empty values, so if i check the Showm empty rows option for Pivot Tables, i see the whole of the products populated with and without sales, and i can't filter further. Is there a way i can only get those which have no sales.


Vinish Viswanathan

Pivot Table Report

$
0
0

I have a pivot table in Excel that connects to an OLAP cube. When adding dimension attributes the more I add the slower it gets until the connection times out. I am trying to mimic a tabular or SSRS report so I so I don't need the aggrations at the detail level.

Is there a property or setting on the on the dimension that can address this. I am using SSDT or Visual Studio 2012 and SQL Server 2012.

SQL Server 2012 Profiler can't connect to SSAS - Class not registered (pfutil)

$
0
0

From a specific application server A with the SQL Server Management Tools installed, the SQL Profiler tool is able to connect to the SQL Server engine on the SQL Server B, however when attempting to connect to Analysis Services on the server B it fails with the message below:

Cannot connect to Server B

Additional information: Class not registered (pfutil)

I have done the following tasks to troubleshoot but the issue persists

* Applied SQL Server SP3

* Execute the repair option from SQL Server Setup

* Remove the Management tools and re-install

None of this actions have fixed the issue. Any advice to fix this issue will be greatly appreciated.

Thx,

Creating calculated measure based on multiple dimension filters

$
0
0

Hi All,

I have created cube having three dimensions and two measures.

I have to create one calculated measure which derive data based on multiple filter of dimension of one of the measures

in Normal MDX 

Select NON EMPTY {[measures].[A]} on columns

from Cube Name

WHERE

([DimensionA].[DImensionAttribute].AllMembers *[DimensionB].[DImensionAttribute].AllMembers )

I want to create calculated measure for aforementioned MDX 


Amit
Please mark as answer if helpful
http://fascinatingsql.wordpress.com/

How to Modify Excel Connection to bring data from SSAS tabular instead of PowerPivot.

$
0
0

Hi All,

I have excel file with around 10 sheets and all sheets are getting data from Sql Server DB via PowerPivot. Now in SSAS I have imported this PowerPivot as Tabulat DB.

Question: Is there a way I can now decouple PowerPivot and read data from SSAS tabular DB instead PowerPivot? I can create new .XLSX file and bring data from SSAS but doing this I have to re-do all my graph etc again which I created using data from PowerPivot.

Thanks


An error was encountered in the transport layer. File system error: The following error occurred while reading from the file 'Compressed stream'.

$
0
0

I am retrieving data from SSAS using c# .net console application. In this process, I created an OleDbConnection and trying to fill the dataset using OleDbAdapter. I get this error 'An error was encountered in the transport layer.
File system error: The following error occurred while reading from the file 'Compressed stream'.' at the line where I am filling the dataset using this adapter.And this does not fail always. We run this every weekend(sunday) and at the month end we run it continuously for 6-7 days.

so when it runs consecutively for 2-3 days, it fails on 3rd or 4th day and it keeps on failing till 6th day. However, we don't get this issue when we run this on other sundays (when we run only once in a week).

Also, we run this from two servers namely quality and production. We don't face this issue at all in quality server though we point to prod database. Also, we don't face this issue when debugging in development pointing to prod database. We face this issue only in production server.

I am not sure how this is happening. Please help me in solving this.

SSAS TABULAR - query SQL Server to obtain (estimated) size of tabular cubes?

$
0
0

Hi, how can i query SQL Server to obtain (estimated) size of tabular cubes, and eventually other useful info as nr of rows?

Ideally i could run this code in a T-SQL query, but i don't know if possible.

Regards


YTD and MTD made by Business Intelligence Wizard not working

$
0
0

I tried to add Business Intelligence by using the BI Wizard. It does not work with Calculated Members. So it works for [Qty - Bottles] but it does not work for [Qty - Bottles per day] which is a calculation based on 

NOTE: Now that I am writing this, I realize that [Qty - days] is not in the code below. I will first try to add this!!

This is the standard code that is made:

// Month to Date
  (
	[DimSalesDate].[Year - Month - Date DimSalesDate Calculations].[Month to Date],
    [DimSalesDate].[Month].[Month].Members,
	[DimSalesDate].[Date].Members,
    {
      [Measures].[Qty - Bottles per day],
      [Measures].[Qty - Bottles]
    }
     )
    =
  Aggregate(
             { [DimSalesDate].[Year - Month - Date DimSalesDate Calculations].[Current DimSalesDate] }
             *
             PeriodsToDate(
                            [DimSalesDate].[Year - Month - Date].[Month],
                            [DimSalesDate].[Year - Month - Date].CurrentMember
             )
  )

Does anybody know what is going wrong?

The BI Wizard made an additional attribute in the Time Dimension named "Year - Month - Date DimSalesDate Calculations".

I read somewhere that relationships must be set. Is that correct? If so, how does this attribute relate to Year, Month and Date?


"[Measures].[Qty - Bottles]/[Measures].[Qty - days]"

SSAS measure displaying 0 when browsing the cube

$
0
0

Hi everyone,

I added a calculated member to an existing cube to show purchase price currency exchange (GBP to USD). But for reasons, this measure displaying ZERO when browsing it. I am using Analysis Services 2008 and Visual Studio 2008. I have tried three calculations and neither way worked. See my calculations below:

Calculation 1:

CASE WHEN
           [Item Revision Properties].[Item Location] = 'Montainville' THEN [Measures].[PurchasePrice]*1.43
ELSE 0
END

Calculation 2:

CASE WHEN
           [Item Revision Properties].[Item Location] = [Montainville] THEN [Measures].[PurchasePrice]*1.43
ELSE 0
END

Calculation 3:

CASE WHEN
           [Item Revision Properties].[Item Location].&[Montainville] THEN [Measures].[PurchasePrice]*1.43
ELSE 0
END

and i set the visible is "True".

Does anyone know what's going on here? Any help will be so appreciated.

Li

What is the difference between full cube processing and full database processing?

$
0
0

Hi All,

I'm having a hard time finding any explanation of the difference between full processing of a database and full processing of a cube.  Our SSAS 2014 database contains a single cube.  Full processing of the cube fails very regularly.  (I came to this job naively thinking that full processing a cube would always solve any processing woes.)  Usually, the error is about a missing dimension key, but the key is always there when I query the view that the dimension depends on.  With no other ideas, we default to processing the entire database, which almost always succeeds and never gives us a missing dimension key error.

Yesterday, we changed the data source view but nothing else.  Scheduled Job cube processing failed with another dimension key error, of which I promptly disregarded after finding the dimension member key present.  We logically determined that the DSV is part of the cube but not a dimension or fact, so thererefore it makes sense to us that the entire DB needs full processing.

I don't like "logical determinations."  I've built cubes before, but recognize I need to become a true SSAS expert because nobody else is going to.  I know I need to really nail down processing methods, attribute relationships, and processing order before I can become an expert, but I don't find much on the web detailing the differences.  Could somebody please assist?  

Thanks,
Eric

Viewing all 14337 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>