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

SSAS Cube Backup fails

$
0
0

Hi.

I am having trouble when I try to backup an SSAS database. I try to do it manually in SSMS. It doesn't matter which option I tick or untick (Allow file overwrite, Apply compression, Encrypt backup file) (I tried everything) or which directory I choose. After 1 - 2 seconds an empty backup file is created and I get the following error message:

Systemfehler:  Invalid procedure call or argument

(Microsoft.AnalysisServices)

------------------------------

Program Location:

   at Microsoft.AnalysisServices.AnalysisServicesClient.SendExecuteAndReadResponse(ImpactDetailCollection impacts, Boolean expectEmptyResults, Boolean throwIfError)

   at Microsoft.AnalysisServices.AnalysisServicesClient.Backup(Database database, String file, Boolean allowOverwrite, Boolean backupRemotePartitions, ICollection locations, Boolean applyCompression, String password)

   at Microsoft.AnalysisServices.Server.Backup(Database database, BackupInfo backupInfo)

   at Microsoft.AnalysisServices.Database.Backup(BackupInfo backupInfo)

   at Microsoft.AnalysisServices.ManagementDialogs.OlapBackup.OnRunNow(Object sender)

   at Microsoft.SqlServer.Management.SqlMgmt.PanelExecutionHandler.Run(RunType runType, Object sender)

   at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.DoPreProcessExecutionAndRunViews(RunType runType)

   at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.ExecuteForOlap(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult)

   at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.Microsoft.SqlServer.Management.SqlMgmt.IExecutionAwareSqlControlCollection.PreProcessExecution(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult)

   at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.RunNow(RunType runType, Object sender)

My colleagues and I don't have an idea? Can someone please help?

Thx in advance!


MDX for BOTTOMPERCENT in Cube Calculation

$
0
0

First let me start with the business requirement. I need to return the average of all values less than or equal to the 95th percentile of a measure. The new measure needs to be a calculation in the cube so users can use it in Excel. I believe that the BOTTOMPERCENT function may help derive the correct answer but I cannot figure out the proper MDX.

Let me translate this into Adventure Works. The Reseller Average Sales Amount divides the Reseller Sales Amount by the Reseller Order Count. The calculation is:[Measures].[Reseller Sales Amount] / [Measures].[Reseller Order Count]

I want to sum the bottom 95 percent of Reseller Sales Amount and divide by the corresponding Reseller Order Count. I want to exclude any data where Reseller Sales Amount is empty.

If anybody could provide the MDX, it would be much appreciated.

Rob

Limitations on CustomData property of ConnectionString

$
0
0

Is there any place where I can find detailed documentation for the CustomDataproperty of ConnectionString for Analysis Services?

I've read MSDN Documentation for

  1. Connection String Properties (Analysis Services)
  2. AdomdConnection.ConnectionString Property

Both of the links do not mention anything at all about CustomData.

The information I need is:

  • What are the restrictions on CustomData parameter with respect to its length and datatype?
  • Can I pass a formatted string, that I can process later maybe through an assembly in cube, as a parameter inCustomData?

Regards,
Akshay

How to find out by MDX that the current users is member of a role - Default member issue

$
0
0

Hi,

just imagine you have a dimension with a few members (A, B, C...). I defined a role which gives some users only rights to "B". On the other hand the default member for the dimension is set to "A". Now users part of the role get an error that the member "A" is not found. So while https://msdn.microsoft.com/en-us/library/ms175626.aspx says the default member setting in the role "overrides" the overall default member this is not completely true because first the general default member is selected and after that the role specific one.

So the solution might be that I explicitly define the default member in all roles. This might be possible but there is one issue: you can't define a role specific default member for users part of the adminstrator role. So all admins don't have a default member which is quite some restriction for some users...

So the question is how to solve that problem. An idea would be that I use some MDX to determine the default member in the dimension based on the actual user's role membership. But how to do that? Or any better idea?

Thanks,


Thomas Pagel

Synchronization Issue backup and restore errors

$
0
0

Hi,

I have implemented synchronization in local on two instances and worked well for me. But when I am trying to implement the same in Prod server, it is giving exception backup and restore errors. Please let me know, is it possible to implement Synchronization on same server in two different instances ?

Thanks,

Moorthy

Modifying Online Cube

$
0
0

Dear Pros

We have an online cube in a production server in our company. A new sql server view was created by other department and I want to add it as a measure group to the existing cube.

How can I modify this cube with its online state?

Regards

Dimension processing problems

$
0
0

Hi am trying to process a Dimension table but I always get the same error :A duplicate attribute key has been found when processing: Table: 'dbo_DimRestaurants', Column: 'RestoCity', Value: 'Richmond'. The attribute is 'City'.

After an health check this is the problem I get :

Attribute relationship [City] -> [Province] is not valid because it results
in a many-to-many relationship.
RestoCity  RestoProvince  
    Richmond  Colombie-Britannique  
    Richmond  Québec  
    Waterloo  Ontario  
    Waterloo  Québec  
    Windsor  Ontario  
    Windsor  Québec

How can I get this to work, this is something I do not quite get , yes the same city name can be repeated across different province, this dim have an hierarchy like this : restaurant -> city -> province -> country
This dim also contain ProvinceID and CountryID but I do not use it for mow or should I ?

Am I making a concept mistake here ? if so, I can I make the proper corrections

Thanks

SSMS Import from PowerPivot doesn't refresh

$
0
0

Hi all,

I am importing an Excel powerpivot workbook in SSMS through the restore from powerpivot GUI.

Having done that, I add another row of data to the original Excel file in order to check if the updated data is refreshed in the attached database.

However when I right-click and process full the attached database, the model is not updated with the added line but remains in the previous state.

Could you please let me know why I have this problem and/or if there are any alternatives to refresh data in the attached database after I update the powerpivot workbook with data and new measures?

Thank you in advance for your help


Scoped Assignments for mutiple measures

$
0
0

Hi,

   I have 15 measures in my cube. The name of Measures are like 'Sales1,Sales2....Sales10,Revenue1...Revenue5'. I have a calculated Dimension member. Let's say X.

  If I select X in the filter and Measurename starts with 'Sales' i need to apply a calculation.. Sales*10; Any idea would be greatly appreciated. In can write the scope statement for each sales measure but I want a single scope(or anything) that's enough for this calculation.

Regards


Venkata Koppula

Drillthrough with set function???

$
0
0

Hi all,

Here is the MDX query i have in which i want to use drillthrough functionality.

 WITHSET [PDCount]AS '{[Calendar].[Day].&[2011]&[7]&[1]:[Calendar].[Day].&[2011]&[8]&[30]}'

SET [CDCount]AS '{[Calendar].[Day].&[2011]&[8]&[1]:[Calendar].[Day].&[2011]&[9]&[30]}'

MEMBER Measures.[Val1]AS 'Aggregate([CDCount],[Measures].[Canon Number Of Openings])'

MEMBER Measures.[Val2]AS 'Aggregate([PDCount],[Measures].[Canon Number Of Openings])'

MEMBER Measures.[Val3]AS '0'

MEMBER Measures.[Per1]AS 'Round((Measures.[Val1])*100/sum(Root(),Measures.[Val1]),2)' 

MEMBER Measures.[Per2]AS 'Round((Measures.[Val2])*100/sum(Root(),Measures.[Val2]),2)'

MEMBER Measures.[Per3]AS '0'

SELECT {[Measures].[Val1],[Measures].[Val2],[Measures].[Val3],[Measures].[Per1],[Measures].[Per2],[Measures].[Per3]}ONCOLUMNS

,NONEMPTY ([Onet Code].[JobFamily].Children )ONROWS

FROM (SELECT ( -{ [Onet Code].[JobFamily].&[UNKNOWN]

, [Onet Code].[JobFamily].&[], [Onet Code].[JobFamily].[All].UNKNOWNMEMBER

, [Onet Code].[JobFamily].&[NA] } ) ONCOLUMNS

FROM [LICUBE] )   

 

But it has been clearly stated by the microsoft that the drillthrough cannot be used with the calculated cells.

Can anyone please let me know how can we reformate it to use with drillthrough?

Thanks,

Aish

Maximum Number of Processors Supported by SSAS/SSRS 2008/2008R2

$
0
0
I want to know what is the maximum number of processors (socket or core) supported by SSAS/SSRS 2008/2008R2 per SQL Server Edition 

Annualised Revenue - SUM of revenue for last 12 complete months SSAS mdx calculation

$
0
0

Hi,

I'm new to MDX world and currently enhancing ssas cube where i need to develop few calculated members or MDX query.

I’m trying to create calculated member in SSAS cube to get Annualised Revenue(SUM of revenue for last 12 complete months) for each of device(product). As a start created below MDX query, but its showing only device names, Annualised Revenue shows (null).

Any correction needed for this MDX Query? or appreciate, if someone can give me an example based on AdventureWorks cube. 

Here is my MDX query:

WITH MEMBER [Measures].[Annualised Revenue]
AS SUM(ClosingPeriod([Invoice Date].[Calendar Month].[Invoice Calendar Month],
[Invoice Date].[Calendar Month].[All Periods]).Lag(12)
: ClosingPeriod([Invoice Date].[Calendar Month].[Invoice Calendar Month],
[Invoice Date].[Calendar Month].[All Periods]),
[Measures].[Amount])
SELECT [Measures].[Annualised Revenue] ON 0,
[Terminal].[Terminal ID].MEMBERS on 1
FROM [cube_txn]

Do i need to add where cluase as “where ( [Invoice Date].[Calendar Month].[Invoice Calendar Year].&[2013])”

Whenerver it runs it should pickup current month as base and calculate for last 12 months revune

I am expecting results as below(ignore jan14 & Jan15):

deviceID    SumOfAnnualisedRevenue  Jan14   Jan15
---------   ----------------------  -----    ------
A10001      12,4500                5000    15000
A10003      45,50000               15000   78000
A10006      78,00                  12000   890
A10008      8,945                  450     120

Any help much appreciated.

Thanks, Niel

Time dimension question

$
0
0

Hi,

I just created a time dimension from a table that contains all the info I need, Once processed, I went to the browser to finalise the viewing, I have a time period from 2009 to 2025 and once I expand the levels, I see a level unknown right under the year 2025, the table I use for this dim is not missing any rows at all, all the columns I need are properly populated, no missing info at all.

What can cause that and how to suppress this unknown level

Thanks

Date dimension showing only 'UNKNOWN'

$
0
0

Dear All,

We have a cube, which gets processed once in a day. Recently we changed 'end date' in Date dimension to '2020/03/31' from '2015/03/31' and processed it. After process, Date dimension is not showing any dates except 'UNKNOWN'. 

I have troubleshooted by checking the view and the also did 'Explore data' in Data source view too and it is showing data and no change in the view in recent times.

Also tried by 'Process clear' and 'Process full' on date dimension, But no luck. Can someone shed some light into it.

Thanks a lot.



Regards Suneel


incremental partition processing with changing dimensions?

$
0
0

today i tried out an incremental processing technique on my cube. I have a partition by date which had 100 rows and an account dimension which had 50 rows.

i executed a process full and then added 10 rows to the fact and modified 2 rows in the dimension as well as adding 10 rows to the dimension...

i imagined that I could just do a process full on the dimension and process update on the partition, but upon doing that my cube was in an "unprocessed" state so i had to perform a process full...is there something i did wrong or do updates to dimensions require full rebuilds of all partitions?

this was just an example on small data sets. in reality i have 20+ partitions and 500m rows in the fact table and 90m in the dimension.

 

thanks in advance!


Craig

Process ADD dimension

$
0
0

 

I have a very large dimension for which i want to change the Process ADD option for processing, but apparently for some reason i could not find a reasonable document. I saw certain websites have information about furrmags blog but now it is not available and needs a access.

http://www.artisconsulting.com/Blogs/tabid/94/EntryID/2/Default.aspx

http://www.artisconsulting.com/Blogs/tabid/94/EntryID/3/Default.aspx

 

 

Currently all my dimension are set to Processupdate in my AMO code and my fact table is set to a process full for the last two partitions.  However now i have a scenario in  my new developement where i would closely have 50-100millions rows of  dimension rows alone which is causing few problem's i would want to set my DImension to processADD.

 

Any one would or could guide with any information about ProcessADD would be highly appreciated. I know their is no UI but if some one who has dones helps suggesting how to do this would be highly appreciated.

 

One more thing i would  want to ask since my AMO code is set to process update , if i change the process ADD for one single dimension which would have 100 million rows , what happens to the other dimension  and what happens to the process update that is set for all dimension in AMO Code.

 

Any feedback on the above would be highly appreciated.

 

Thank you

New calculated member based on existing measure and a dimension value

$
0
0

Hi

I’m trying to create a new calculated member in my cube based on an existing measure and a dimension value.

 

I can do it easily in DSW but I want to do it as a Calculated Member in Calculations tab from my cube.

 

I have a dimension called Product in which one attribute is UOM (unit of measure) and a measure called Quantity. The relationship with the fact table is “Regular”.

 

For each product we have a unit of measure and an associated quantity measure:

 

Product Name   UOM     Quantity

Product 1             Km           50

Product 2             Kg            60

Product 3             Kw           25

Product 4              L               15

Product 5              T              1.5

Total                                     151.5

 

The calculated member I want to create is “Kw” and has to contain the value from Quantity measure when Product.UOM is “kW” and should look like this:

 

Product Name   UOM     Quantity    Kw

Product 1             Km           50           

Product 2             Kg            60

Product 3             Kw           25            25

Product 4              L               15

Product 5              T              1.5

Total                                     151.5        25

 

So far I tried using the MDX with “IIF” or “Case” but with no results.

 

What statement I should use in this case?

 

Thank you.

count key links to dimension

$
0
0

Hi all,

I have a fact table with a lot of production checks. The checks are all dimension tables with value 0 (rejected) and 1 (pass). For the moment I'm only interested in the rejects.

FactProduction: Factkey, LineNrKey, DateKey, Check1Key, Check2Key, ...Check30key, Weight

DimCheck1 , DimCheck2, ...

Fact table:

Factkey; LineNrKey; DateKey; Check1Key; Check2Key; ...;Check30key; Weight

1;2; 20150102; 0; 1; ...; 1;   0,250

1;2; 20150102; 1; 0; ...; 0;   0,253

1;2; 20150102; 0; 1; ...; 1;   0,248

Result should be:

columns: Weight/FactProductionCount/Check1Reject/Check2Reject/Check3Reject 

row Product110658/7450/30/18/22

Product27856/5000/25/3/10

...

What's the best way to achieve this?



Calculated Member Visibility by variable

$
0
0

Hi All ,

I'm facing a situation which I need to show or hide a calculated member depending another measure value .

Let me explain ... I have a dimension data security role for the branch dimension, so user can browse NY and LA members .

Now I want to create a new calculated member [Dim Branch].[Hier].[Cool Places] as {[Dim Branch].[City].&[LA],[Dim Branch].[City].&[NY]} which will be visible only if the user allow to browse both NY and LA .

Creating a new measure for checking if NY and LA BOTH are exists in the allowed cities for the relevant user, and placing 0/1 for show/hide the new calculated member .

But I can't use it in the VISIBILITY clause of the calculated member, only explicit 0 or 1 .

Any workaround ?


Regards, David .

Unable to view newly added data to fact table

$
0
0

Hi,

I have load some data into my fact table and dimensions to test my cube and make sure everything is OK, works fine so far.
Now I have loaded data for another year 2013 into my fact table, all OK I have re-process the cube , all OK here too.

When I want to browse the data, I can only see the data for 2014 in the browser but when I look at the totals the amount of rows are OK ( the count of sales transaction 8M for 2014 and 7.5M for 2013), I cannot see any thing under the year 2013, I have re-process and reload the cube 2-3 times but still the same results , I have looked under the partition tab and the estimated rows is OK, on the aggregation tab, it shows the original amount (8M) instead of 15.5M ( should this number be the same as the partition  estimated rows ?)

How can the data not showing in 2013  but the totals row being OK ? I will need to add data until 2010 1 year at time ( very slow dev machine).

Need to understand this

Thanks

Al

FYI I just found out that the info is in the Year unknown instead of being displayed in year 2013
Viewing all 14337 articles
Browse latest View live


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