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

New to cubes, is this normal?

$
0
0

I just started a new position and am while I have almost 18 years of experience with development and SQL server, I don't have much with Analysis Services.  We are having issues with our SSAS server and I have been asked to look into it.

I don't want to get into the details of the issues, that is not my main question, but they include very slow response time to developer interaction with the cubes (browsing them) and when we restart the server due to it being unresponsive, it takes 2 plus hours for the SSAS service to recover.

When I look at the cubes at the file level (on the OS level) I see this kind of structure.  I think this odd but wanted to ask and see if anyone else agreed.

D:\OLAP\Data\Cube1 (ther are about 12 -15 cubes)

Under Cube1 is 150 dm folders (the cube dimensions??) (same for all 12 to 15 cubes, each has 125 to 175 dm folders)

Each dm folder has 750 to 1500 items

So when I add it all up, Cube1 is 24 GB in size with 99,000 files. (so that is like 100,000 files X 12 to 15 cubes)

Like I said, I don't have a lot of experience with cubes, but does this sound normal?  It seems to be really really bloated to me.  When I restart the SSAS server, doesn't it have to read through each dimension and all those files as part of it startup process (hence the 2 hour recovery time)? Is that amount of files normal in the cube world?

I am not asking for a indepth analysis of this (that will come later) I am just trying to get a sanity check from some of the more experienced people out there.

Thank you!!!


Excel SSAS cube connection - Upgrading to SQL 2012

$
0
0

Dear friends,

I’m upgrading the BI platform in a customer to SQL 2012. The customer has hundreds of excel tables with pivot tables inside on client PC's.

1.I need a way to dynamically change the SSAS connection to the new server and provider. Do you know any tool or way to do that? I’m thinking to suggest change the ODC files in each client/PC through a SCRIPT… but this will only affect workbooks where the checkbox to "Always Use Connection File" has been checked, correct? How I can change also de the connections stored inside the workbook?

2.Do I need to manully install the MOLAP5 provider for SQL2012 on each client PC’s that currently use Excel 2010 connected to SSAS cubes in SQL 2008R2? Or there is a more eficient option that I'm not seing?

3. I create the connection the the cube via HTTP I still need to install the MOLAP5 provider to connect to the cube?

Thank you all!


Visit My Business Intelligence Blog - If your question is answered, please mark as answered.

No Filter Data Retrieved

$
0
0

Hi

I Want to apply date filter in my dashboard but as i am new with MDX i don`t understand how it works or what i am doing wrong in it. The below code i used in enter mdx formula tab but when i click on finish it gives me an error.

"No Filter Data Retrieved"

Kindly suggest me any thing.

WITH
  MEMBER [Measures].IncidentAssignedToUserCount AS
    Avg
    (
     [AssignedToUserDim].[UserName].MEMBERS
     ,[Measures].[IncidentDim].[IncidentDim_Id]
    )
SELECT
  [Measures].IncidentAssignedToUserCount ON 0
 ,[IncidentAssignedToUserDateDim].[Calendar Year Hierarchy].MEMBERS ON 1
FROM [Totalworksfine];

Thanks

M Ahsan

Filter KPI value

$
0
0

I need to filter KPIVALUE column exclude null rows

This is my MDX Code

select {KPIVALUE("CASH POSITION"),KPIGOAL("CASH POSITION"),KPISTATUS("CASH POSITION"),KPITREND("CASH POSITION")} ON 0,
crossjoin({EXCEPT([Ledger account descriptions].[Ledger account categories - Ledger chart of accounts].[Ledger chart of accounts],[Ledger account descriptions].[Ledger account categories - Ledger chart of accounts].[Ledger chart of accounts].UNKNOWN)},{STRTOMEMBER("[Ledger period time dimension].[Ledger Period Hierarchy].
[Period].&[" + 'DRH' + "]&[" + VBA!MID('2012-01-01',1,10) + "T00:00:00]")}) ON 1
FROM
[General Ledger Cube]
WHERE
(
STRTOMEMBER("[Master Company Reporting Currency].[Currency].&local"),
STRTOMEMBER("[Ledger account descriptions].[CompanyID].&[DRH]")
)

Result :

(null)          4196.082 -1-1
(null)         -7389.2169999999711
(null)         6231.082-1-1
(null)        102.806000000023-1-1
-711709.981058953.379-1-1
(null)         10237.359-1-1

But My Expected Result :

-711709.981058953.379-1-1

Any one known Pls how to filter KPI column level .

Thanks 

Sam

How to create cube with the inner join query.

$
0
0

Hi Experts,

As I'm new to SSAS, I would have to ask a small thing.

I have one sample Query.

SELECT Jobs.*, JobStatusMaster.Status 
FROM Jobs INNER JOIN JobStatusMaster
ON JobStatusMaster.ID = Jobs.JobStatusID
Where JobID = 101

I want to create a Cube for this query and to use that cube in C# application to fetch the data.

Can anyone please suggest the steps I can start with.


Regards,
Dhaval Panchal
Software Engineer
(Fast Track Software Services)

How can I have SQL Server 2012 Analysis Services instance running in Tabular mode ?

Error while processing partion

$
0
0

Hi All,

am sorry as i am new to ssas am learning all the basics.

i have created partion and when i process it deployment is succesd but when i run it am getting error messgae  as below:

"Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.

Errors in the OLAP storage engine: An error occurred while processing the 'Factsales' partition of the 'Factsales' measure group for the 'TITUS DWH DEV' cube from the Analysis Services Project1 database.

Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation."

can anyone suggest me what was the reason and please help me to solve it


vandana

How to write a MDX Query

$
0
0

Hello,

I have Dim table say emplyee fact table  say Sale

let say employee who has sale from 0 to 499 should be under  <&500

         employee who has sale from 500-749 should be under  &500-&479 and so on

any idea to write this MDX Query.



MDX TopPercent across different attributes of same Dimension

$
0
0

Hi,

I have a simple Dimension that has the following format:

BranchAgentContactCode
Branch1Agent1Code1
Branch1Agent1Code2
Branch1Agent2Code3
Branch2Agent3Code4
Branch2Agent3Code5
Branch2Agent4Code6
Branch3Agent5Code7
Branch3Agent5Code8
Branch3Agent6Code9
Branch3Agent1Code10

You can imagine that there are a few hundred codes looked after per agent but this is just for illustration purposes. As you can see, in most cases there is no overlap in the Branch to Agent, apart from a few cases where we have the same agent at different branches (Agent1).

What I would like to be able to do is get the aggregate of the Top N percent of each branch/Agent combination underlying Codes giving something like this:

BranchAgentMeasures.SomeAggregate
Branch1Agent1
Branch1Agent2
Branch2Agent3
Branch2Agent4
Branch3Agent5
Branch3Agent6
Branch3Agent1

Any suggestions are appreciated.

MrHH

SSAS 2008 R2: We need UserName() to return UserPrincipalName instead of SAMAccountName.

$
0
0

Real usernames can be longer as 20 characters, uniqueness can not be quaranteed as usernames are being migrated from source application.

Use https + basis authentication + ASP.NET impersonation to access SSAS and did not find any infos to get UserName() to return UPN.

Apart from writing an assembly, is there another way to achieve this?

Use on NOLOCK while connecting via SSAS

$
0
0

Hi Guys,

I would like to have SQL server uses NOLOCK query hint while connecting to databases for qube processing. Do we have such option? It is in SQL 2008 R2.


Kindly mark the reply as answer if they help

Error: "DimensionPermission(1,2) The dimension '[DataAreaDim]' was not found in the cube when the string [DataAreaDim].[DataAreaID].&[SIN], was parsed"

$
0
0

Hi

Setup:
One role has one AD group as a member
Access = None for Data Sources (Default)
Access = Read and Local Cube/Drillthrough Access = Drillthroughfor Cubes
Nothing set for Cell Data (Default)
Access = Read for all dimensions in Dimensions (Default)
Deselect all members + one value selected (RME selected for one role (Allowed member set= {[DataAreaDim].[DataAreaID].&[RME]}), SIN selected for another role (Allowed member set= {[DataAreaDim].[DataAreaID].&[SIN]}) etc.) for Dimension Data

I get the above error message when an AD account is a member of both the AD group giving access to RME and the AD group giving access to SIN. Can anyone explain?

Addition: I once saw an otherwise completely different problem in relation to T-SQL, with one common point: The two adjacent letters 'a'. In a Danish/Norwegian collation this will sort as the single letter 'å' which is last in the alphabet. My cubes are, as far as I can tell Latin and shouldn't have this issue, but I thought I would add this info anyway. I'm not sure how to rename the dimension. The name is easy, but how about the key?

Cube Builds but gets an error on deployment (DDL300_300: FormatString Line Element cannot appear under...

$
0
0

I am deploying a cube after changing a number of measures and dimensions.  The Cube builds sucessfully (warnings only) with no errors.  When the cube deploys I get an error message as follows:

Error 17 The ddl300_300:FormatString element at line 11558, column 41 (namespacehttp://schemas.microsoft.com/analysisservices/2011/engine/300/300) cannot appear under Envelope/Body/Execute/Command/Batch/Alter/ObjectDefinition/Database/Dimensions/Dimension/Attributes/Attribute.

I am using Visual 2010 and the SQL Server is SQL2008R2.

I think this error means that the XML that is being sent to the server to deploy the cube has an XML element in it in a place that is not expected under the 300/300 engine schema.

 How can I fix this?  Is there a good way to get to the XML that VS2010 is sending to the server so that I can see what line 11558 column 41 is?

Thank You in advance for any help you can provide

Using attributes in calculations with measures

$
0
0

Hello everyone,

I have a Part dimension and each part is associated with a cost.  In my Orders fact table, I have a quantity field for parts placed on an order.  Since the cost is tied to each part, I'm thinking that I need to put the cost value in my part dimension table in my data warehouse.  My question is, where do I put the cost?  Does it go onto the Part dimension as an attribute, or do I create a named query and present the SKPart and cost columns as a fact table with measures?

My main concern is, my users will need to use the cost to multiply by the order quantity to display 'total cost' on reports.  It seems the simplest to add them as attributes, but I'd like some feedback in case there are any drawbacks to doing this.

Thanks in advance.

Jarret

SSAS TABULAR: Not enough memory

$
0
0
Hello everybody, I have an instance of SSAS Tabular that when I build reports from an Excel Pivot Table, sometimes i got the error: "The operation has been cancelled because there is not enough memory available for the application. If using a 32-bit version of the product, consider upgrading to the 64-bit version or increasing the amount of memory available on the machine." I read some posts about this error but I think that it could be a different problem, the system is a 4x2 core and got 32 GB RAM, when you go to the pivot table and build any report by an aggregation level, the response time is very fast but when I go to the lowest granularity level on the fact (product id) and try to obtain product id on a report aggregate by 3 dimensions and 1xMeasure I got this error. The fact table actually have about 30 million records and that dimension (product id) contains a large number of records (around 5-7 millions). The same report but with filtered values takes about 3 minutes to get the result. The Tabular has the default configuration properties. Any tip or help would be appreciate. Thanks in advance. Cheers.

Using CROSSJOIN - GENERATE in Dax formula inside a SSAS Tabular model

$
0
0

Hi,

I need to know if it is possible to use CROSSJOIN, GENERATE functions to create a DAX formula inside a Tabular model to facilitate the querying for a SSRS report instead of using them in a DAX query.

Are there any examples about using CROSSJOIN, GENERATE functions inside a DAX formula?

Many thanks

The server sent an unrecognizable response error when MDX query does not have X axis

$
0
0

Hi All,

I am using following code to execute MDX query using ADOMD:

var connection = new AdomdConnection(connectionString);
            var command = new AdomdCommand(mdxQuery, connection)
            {
                CommandTimeout = 900
             };
            try
            {
                connection.ShowHiddenObjects = true;
                connection.Open();
                using (var adomdReader = command.ExecuteReader(CommandBehavior.CloseConnection))
                {
                 int columnCount = adomdReader.FieldCount;
                 while (adomdReader.Read())
                 {
                      var drResult = dtResult.NewRow();
                        for (int index = 0; index < columnCount; index++)
                        {
                                var v = adomdReader.GetString(index);
                        }
                    }
            }
                }
            }


When I have any mdx query which does not have X or Y axis in the query, ADOMD Reader.Read() thows Server  sent an unrecognizablr response exception.

Here is a sample query:

WITH 
  SET [x] AS 
    {} 
  SET [y] AS 
    SubSet
    (
      NonEmpty
      (
        {[Year].[Year].[All].Children}
       ,{[Measures].[main mesaure]}
      )
     ,0
     ,20000
    ) 
SELECT 
  [x] ON 0
 ,[y] ON 1
FROM [MY View]
WHERE 
  {[Measures].[main mesaure]};

Please provide suggestion how to retrive data when user have not selected any member on X or Y axis.

Thank you



SSAS Tabular Error YTD:=TOTALYTD( (v_SalesFact[Quantity], DimDate[CalendarDate] )

$
0
0

Hi All
I have simple star model

v_SalesFact is fact table
DimDate - Date Table , CalendarDate is unique.

1-st Measure  work ok
Sum_pos:=SUMX( v_SalesFact, [Quantity]*[LineAmount] )

I want to calculate 
YTD:=TOTALYTD( (v_SalesFact[Quantity], DimDate[CalendarDate] )
It produce error :

Warning 1 Measure 'DimDate'[YTD] : The value for column 'Quantity' in table 'v_SalesFact' cannot be determined in the current context.
Check that all columns referenced in the calculation expression exist, and that there are no circular dependencies.
This can also occur when the formula for a measure refers directly
to a column without performing any aggregation--such as sum, average, or count--on that column.
The column does not have a single value; it has many values, one for each row of the table, and no row has been specified. 

v_SalesFact connected to DimDate  thru InvoiceDate (Type : Date)
v_SalesFact.InvoiceDate = DimDate.CalendarDate

What wrong with formula ?
In examples works ok - obnly diffrenece I see that tables were connected using number fields
can error be connected with data type Date of joining fields ?


ps I found here http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/95c2ab06-9113-4991-b2ac-35a44aa4472e

CountYTD:=TOTALYTD(SUM(Fact[Count]),Date[DateKey])

SUM(

still not clear - I took examples from Marko Russo book

[YTD Sales] := TOTALYTD( [Internet Total Sales], 'Internet Sales'[Order Date] )

and there it worked

Why I need to add Sum() ?

Error 1 The 'DataSourceView'

$
0
0
Hello,

The relationships on my datasource view were not correct so I deleted the data source view and recreated it. After I created the new data source view I got the following error and I cannot seem to locate the problem.

Does anyone know what the following error is ?

Error 1 The 'DataSourceView' with 'ID' = 'Contract_Metrics' doesn't exist in the collection.

Thanks,


Kajoo

Proces cube failed

$
0
0

Hello all,

Cube process failed with the below error, can any one please get rid of this... Thanks in advance

 the '2001' partition of the 'Volume' measure group for the ###### Warehouse' cube from the ######## Cube database.  End Error  Error: 2013-04-08 20:18:08.05     Code: 0xC1060000     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.  End Error  Error: 2013-04-08 20:18:08.24     Code: 0xC11F000E     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: Errors in the OLAP storage engine: An error occurred while processing the ################ partition of the ###################measure group for the ############### cube from the Coca-Cola Cube database.  End Error  Error: 2013-04-08 20:18:08.50     Code: 0xC1060000     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.  End Error  Error: 2013-04-08 20:18:08.79     Code: 0xC11F000E     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: Errors in the OLAP storage engine: An error occurred while processing the 'Usr Forecast Facts Financial BP' partition of the 'Financial Forecast BP' measure group for the '######## Warehouse' cube from the ####### Cube database.  End Error  Error: 2013-04-08 20:18:08.96     Code: 0xC1060000     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.  End Error  Error: 2013-04-08 20:18:09.11     Code: 0xC11F000E     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: Errors in the OLAP storage engine: An error occurred while processing the ######### partition of the ######## measure group for the ########## cube from the ##### Cube database.  End Error  Error: 2013-04-08 20:18:09.28     Code: 0x00000000     Source: Analysis Services Execute DDL Task Analysis Services Execute DDL Task     Description: Execution of DDL failed.   End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:34:05 PM  Finished: 8:18:29 PM  Elapsed:  20663.7 seconds.  The package execution failed.  The step failed.

Viewing all 14337 articles
Browse latest View live


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