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

SSAS Tabular - slowlyness when adding new dimensions in Powerpivot over tabular model

$
0
0

Hi,

im working with a tabular model in Excel's Powerpivot.

the model has a factual table with 2,5 Million lines, each line with 7 surrogate keys,  and some 4/5 calculated columns, all hidden.

In the end i only show one metric that is some kind of average over the entries, let's call ABC.

So i add ABC and an dim observation date (2558 entries) and in 2 minutes i get results, dim location (26 entries) in another 2 minutes, i then add dim product (66798 entries) and it took 6 minutes to appear the results, when i finally tried to add dim Variant (3418 entries), it took 7 minutes to nothing...Excel frozes and i ESCaped... i can't say if it would take half an hour, 2 hours to get results or if it would simply broke Excel.

My question is, generally speaking, what justifies the slowliness of adding dimensions to powerpivot, and what can be done to get better performance.

The server is a XEON CPU E5645 @ 2,4Ghz, with 20GB of RAM.

Kind regards and thanks in advance.



Customize the attribute value different than the key

$
0
0

Hi,

In a standard Date-dimension, I have the Date ID as an Integer and a separate string value for the date in "yyyy-mm-dd" format. I am using the integer as primary key and also for the lowest level of the Year-Month-Day hierarchy. I would like to have the string value displayed with the integer value for the key. Therefore I set the following settings in the Date ID attribute:

KeyColumn: Date ID
NameColumn: FullDateString

Now my issue comes with the underlying attribute values, this is displayed as follows:

[Time].[Year - Month].[Day].&[20160921]

I would like to have this as follows:

[Time].[Year - Month].[Day].&[2016-09-21]

Is there a way to keep the KeyColumn to the integer-value and the underlying attribute in "yyyy-mm-dd" format?

Thanks!


- If a post answers your question, please click "Mark As Answer" on that post!


How To hide a calculated member in SSAS Security

$
0
0

I have a security role and would like to hide a calculated measure. I tried not[measures].currentmember is [measures].[total].

but is not working and I am able to see the measure when I browse the data in excel 2013.

Thanks

pivot table can‘t refresh the datasource(offline cube)

$
0
0

Hi guys,

i encountered a problem in excel. I pull an offline cube file into the excel,then i drag some fields in powerpivot table. finally i save this excel.

one situation:

when i reopen the excel and i want to change the new data source(the structure of offline cube file has changed). what i expected is when i change the data source,the powerpivot table updated. But it didn't work. 

another situation:

when i reopen the excel and i want to change the new data source(the data of offline cube file has changed). and it worked.

how can i solve the first situation? if can't, can you tell me the reason why it's different?

Thanks a lot.


books on analysis services data mining?

$
0
0

Hi experts,

 

Quick question… In my company we had a BI manager, and  a BI expert… unfortunately both left and the company decided to hire nobody! To lower costs L

 

So I am on my own… problem is a lot of stuff was done in Analysis services, (datamining, cubes, etc), real problem is opened ssas like twice in my life, so I need to get familiar to at least start kinda “supporting” it…

 

I know there are great blogs out there, but I always preferred to get knowledge from books… any book to recommend that will explain from scratch how to create a cube or a datamining tree in ssas?

Excel pivot table taking 45 minutes to refresh - weird StrToMember queries running

$
0
0

I have an SSAS cube which is behaving quite weirdly when using Excel with a Pivot Table.

The user sent me a spreadsheet that was taking 45 minutes to refresh. This user has dimension member security turned on.

When I refresh their pivot table, I can see the following events in the Profiler running which is what is taking the cube so long to refresh (I've cut out the majority of the event but it was doing this multiple times, 128 columns at a time:

WITH MEMBER [Product].[Style].[XL_PT0] AS 'strtomember("[Product].[Style].&[BA11S7871]").UniqueName' SELECT {[[Product].[Style].[XL_PT120],[Product].[Style].[XL_PT121],[Product].[Style].[XL_PT122],[Product].[Style].[XL_PT123],[Product].[Style].[XL_PT124],[Product].[Style].[XL_PT125],[Product].[Style].[XL_PT126],[Product].[Style].[XL_PT127]} ON 0 FROM [Retail] CELL PROPERTIES VALUE


What is going on here? Why is this happening?

I myself don't have dimension security, and have taken all filters off the pivot table, however refreshing it is still using these members and hence the pivot takes about 45 minutes to run.

Help With MDX

$
0
0

Hi,

I'm trying to build a query which will retrieve values from a cube and build a month to date and year to date SSRS report based on the current date. I'm basically trying to build a report that should look something like this...

TypeCustomer Product Group  Quantity Shipped MTD Quantity Shipped YTD

OECompanyXBikes5396

Helmets10254

CompanyYRepair Kits93653

T-shirts 38564

Shoes 10120

I'm really struggling with this and so far, this is what I've come up with...

 WITH 
 MEMBER [Measures].[Quantity Shipped YTD] As Sum(YTD([Date].[Dates].CurrentMember),[Measures].[Quantity Shipped])
 Member [Measures].[Quantity Shipped MTD] As Sum(MTD([Date].[Dates].CurrentMember),[Measures].[Quantity Shipped])
 SELECT NON EMPTY { [Measures].[Quantity Shipped MTD], [Measures].[Quantity Shipped YTD] } ON COLUMNS,
 NON EMPTY { ([Customer].[Business Type].[Business Type].ALLMEMBERS * [Customer].[Customer].[Customer].ALLMEMBERS * [Customer Sales].[Summary Prod Group 1].[Summary Prod Group 1].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
 FROM ( SELECT ( -{ [Customer Sales].[Summary Prod Group 1].&[Missing Product Group] } ) ON COLUMNS 
 FROM ( SELECT ( { [Customer].[Customer Code].&[2.254E3], [Customer].[Customer Code].&[2.063E3], [Customer].[Customer Code].&[2.183E3], [Customer].[Customer Code].&[2.261E3], [Customer].[Customer Code].&[5.3753E4], [Customer].[Customer Code].&[1.3084E5], [Customer].[Customer Code].&[1.37058E5] } ) ON COLUMNS 
 FROM ( SELECT ( { [Customer].[Business Type].&[OE] } ) ON COLUMNS 
 FROM ( SELECT ( [Date].[Day].&[Now()]) ON COLUMNS
 FROM [Sales])))) WHERE ( [Customer].[Customer Code].CurrentMember )  
 CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

The query above doesn't retrieve anything though. All I get is a blank resultset. There are alot more fields that I need to pull through but I'm assuming if I can get quantity shipped to work, I can get everything else. Please help. Tx

Hide a measure group in excel 2007 'Show Fields Related to'

$
0
0

Hi All,

I know that if a I want to hide a measure group to users I have to set the properties 'Visible' to false for all the measure of the measure group.

But when I open a connection to the cube with Excel 2007 I see again the measure group in the drop down list 'Show Fields Related to' in the 'Pivot Table Fields List'.

I don't see it in the measure group list when I choose 'All' in the 'Show Fields Related to', but i don't want to see it in the list 'Show Fields Related to' too.

 

How I can do to hide permanently the measure group?

 

Thank you all,

SimonaP


Hide a Tabular cube, so that end users only see the perspectives when connecting?

$
0
0

It is with Multi Dimensional cubes possible to hide the cube only leaving the perspectives visible to excel or other end user when connecting to the SSAS instance.

I cannot find that option for Tabular cubes - is there a work around within the XML file (in meta data) or is it just bad luck.

"No mapping between account names and security IDs was done" error when deploying project

$
0
0
Hi,
I'm getting the following error on deploying a cube in analysis services to my local machine:
"No mapping between account names and security IDs was done" error when deploying project

Can anyone suggest a solution to this problem, its had me going for hours?!?


Dynamic Security is not working when connection performs via https

$
0
0

Hi,

I've realized a HTTPS connection like in the link below:

https://msdn.microsoft.com/en-us/library/gg492140(v=sql.110).aspx

The problem is when I tried to implement dynamic security based on the DimUser dimension (there is an attribute contains Login) I faced an interesting issue. I'm using well-known MDX script over the Login attribute:

{StrToMember("[Users].[Login].&[" + UserName() + "]")}

When I connect to the cube from the local intranet(not the https) it works fine. But when I connect over the internet ( via https ) it's not working. I've checked the user in the SQL Profiler from which the MDX query is executed and it defines the same in both ways.

I have a ROLAP storage mode and use "Real Time Olap=True;" option inside the connection string. I've also tried a MOLAP mode but it behaves the same. 

Could anyone tell me the reason it mays come, please. I'm trying to resolve this problem within 3 days and can't move forward((

Migrating cubes from SSAS 2005 to SSAS 2016

$
0
0

Hi,

I need to migrate 6 cubes written in SSAS 2005 to SSAS 2016. What should be the best approach to analyse the changes? If the direct upgrade is not possible, what would be the alternate ways/intermediate steps to do it?

Thanks,

Neena Paul

skip parition while processing

$
0
0

Hi Guys,

Can we skip certain partitions in measure while processing the cube; Process full.. As have late arriving dimensions; we want to process them later point of time.

We are planning to update the design; for now we want ad-hoc solution which process the measure ignoring certain partitions.

Regards,

Navin


Navin.D http://dnavin.wordpress.com

when Tabular will support inner joins in direct query mode?

$
0
0

Hi,

when Tabular will support inner joins in direct query mode like power BI is able to do it now?

how to find the distinct members count changed their program with in the period with start and end date dimension using calculated measure in ssas

$
0
0

Hi i am having a table with memberkey, programKey, startdate and end date with multiple entries for single member.

someone give me a suggestion.


I have 2016 CRM and I get the error "object reference not set to an instance of an object."

$
0
0

I have 2016 CRM and I get the error "object reference not set to an instance of an object." This error comes up when we are tracking emails from Outlook to CRM. Can you help?

Sql analysis services role full administrator permissions restarted

$
0
0

Dear SQLAS users,

I have a strange problem with Analysis services. When I created new roles in a database in a analysis services instance, I gave the users inside this roles full administrator permission. But when I checked it after a day or two the full administrator permission was unchecked. I redone the procedure and it has unchecked it again.

Why is this happening?

Sincerely,
Petar

 

Get error [Value cannot be null. Parameter name: inServiceProvider] when renaming Dimension attribute in SSAS

$
0
0

I got an error when I renamed a Dimension's attribute in the SSAS.

I am using the Microsoft Visual Studio 2013 (Version 12.0.21005.1 REL). The SSAS service is running on SQL Server 12. Ididn't get the error when I use Microsoft Visual Studio 2015 (Version 14.0.23107.0 D14REL).

The screenshots of the process is shown below:

1, the original name is [State Province Name]

2, I tried to rename it to [State-Provice]

3, I got the error. The rename doesn't work in the Attributes pane. However, it works in the Properties pane.

4, I tried to rename again. This time I didn't get the error and the name changed in the Attributes pane this time.

I cannot attached photos now. Please refer the question http://stackoverflow.com/questions/39712422/get-error-value-cannot-be-null-parameter-name-inserviceprovider-when-renamin

The whole stack is shown below:

===================================

Value cannot be null.
Parameter name: inServiceProvider (Microsoft Visual Studio)

------------------------------
Program Location:

   at Microsoft.AnalysisServices.Design.AR.ARDiagramDataProvider.ListNode..ctor(DimensionAttribute attribute, IGraphModify g, ISelection inSelection, IServiceProvider inServiceProvider, IValidationInfoProvider inValidationInfoProvider)
   at Microsoft.AnalysisServices.Design.AR.ARDiagramDataProvider.InitGraphStructure(IEnumerable`1 attributes)
   at Microsoft.AnalysisServices.Design.AR.ARDiagramDataProvider.RefreshUIContents(IList`1 changesList)
   at Microsoft.AnalysisServices.Design.AR.BaseChangeTrackerEx.RefreshUIContents()
   at Microsoft.DataWarehouse.Design.ChangeTracker.OnRefreshUIContentsAndSelection()
   at Microsoft.DataWarehouse.Design.ChangeTracker.RefreshUIAppropriately()
   at Microsoft.DataWarehouse.Design.ChangeTracker.transactionService_TransactionClosed(Object sender, ScopeTransactionCloseEventArgs e)
   at Microsoft.DataWarehouse.ComponentModel.ScopeTransactionCloseEventHandler.Invoke(Object sender, ScopeTransactionCloseEventArgs e)
   at Microsoft.DataWarehouse.ComponentModel.ScopeTransactionService.OnTransactionClosed(ScopeTransaction transaction, Boolean transactionCommitted)
   at Microsoft.DataWarehouse.ComponentModel.ScopeTransaction.OnCommit()
   at System.ComponentModel.Design.DesignerTransaction.Commit()
   at Microsoft.AnalysisServices.Design.DimensionBuilder.SetComponentName(INamedComponent inamedComponent, String strNewName)
   at Microsoft.AnalysisServices.Design.DimensionBuilder.RenameAttribute(DimensionAttribute attr, String name)
   at Microsoft.AnalysisServices.Design.DimensionBuilder.Microsoft.AnalysisServices.Design.IDimensionTreeViewDataProvider.SetAttribute(Int32 nAttr, String strAttr)


MDX cube calculation help (long)

$
0
0

Hello All,

I have been working with SSAS/Multidimensional for a few years now, although I would classify my MDX skills as fair at best. I’ve recently constructed a cube with Human Resources content and have an interesting (and baffling to me) problem I am trying to solve through MDX. The end goal here would be to come up with a few cube calculations for the measures of interest.

Background: One of the measures in the cube surrounds personnel actions (hires, terminations, promotions, organization changes, job changes, etc.) and provides an action type/employee identifier. The principal measure value used is a Distinct Count on the Employee ID. For this problem, I am only interested in the action type = TRANSFER, which is a record that indicates a person has moved from one department to a different one. Part of the referential information in the TRANSFER record is the department ID of the FROM department and the TO department.

The cube has a role playing Organization dimension hierarchy that is used for both the FROM department ([Org PIT – FROM ACTION]) and the TO department ([Org – PIT]). The non-ragged hierarchy has the following levels (highest to lowest): [Lab], [Executive VP], [Division], [Center], [Group], [Department], [Team]. The query that follows focuses on the Division level, however I would like it to be able to be flexible enough to work at least the top 4 levels of the hierarchy (Lab, Executive VP, Division, Center) if possible. (Side note:  The TO Organization structure is used almost exclusively in the cube and has relationship to many other measures. The FROM Organization structure is only used in this calculation and will be hidden from general use so as not to confuse the user population.)

This pivot table demonstrates the employee counts at the Division level of the Organization hierarchies. On rows is the Organization that the employee comes FROM.  On Columns is the Organization that they are going TO as a result of the TRANSFER action.

Note that the intersection of where a FROM Division equals a TO Division represents internal movement of employees within that Division (e.g. there were 125 employees that moved FROM a department within Division “D”, TO a department within Division “D”, highlighted in yellow). 

I’ve been able to replicate the movement at the Division level with this query:

SELECT
  [Measures].[Employee Count - JOBHIST] ON COLUMNS
 ,NON EMPTY
    (
      [Org - PIT FROM ACTION].[Org Hierarchy].[Division]
     ,[Org - PIT].[Org Hierarchy].[Division]
    ) ON ROWS
FROM [ARCHR]
WHERE
  {
    (
      [Time].[Fiscal].[Fiscal Year].&[2016]
     ,[Actions].[Action Hierarchy].[Action].&[XFR]
    )
  };

A partial result set…

FROM Division

TO Division

Employee Count - JOBHIST

A

A

2

A

C

1

A

D

1

B

B

109

B

C

3

B

D

4

B

E

1

B

J

1

C

B

4

 

Which you will note replicates the values at the appropriate intersections in the pivot table above.

My hope is to use this as a portion of the overall calculations I am trying to accomplish.

  1. Transfers WITHIN an Organization Level (how many employees transferred to departments within Division highlighted in yellow)
  2. Transfers OUT OF an Organization Level (how many employees transferred to departments outside of the Division, e.g. 5 + 4 + 1 + 2 + 3 highlighted in orange
  3. Transfers INTO an Organization level (how many employees transferred into departments within the Division from outside Divisions, e.g. 1 + 4 + 8 + 4 + 1 + 1 = 19, highlighted in green.

I have been fooling around with IIF statements within the member to hopefully display the employee count when the value of the FROM Division equals the value in the TO Division, or display a NULL when they are not equal:

iif([Org - PIT FROM ACTION].MemberValue = [Org - PIT].MemberValue
    ,{[Measures].[Employee Count - JOBHIST]}
    ,NULL
)

Which seems like a reasonable approach, but doesn’t work.

Can anyone offer guidance?  Thanks in advance.

-Jim




Expose Time dimension attribute that represents hour mins second in SSAS Cube

$
0
0

Hi,

User Requirement to see time in Hour : Min : Second in SSAS

Please suggest an optimized approach to implement this logic in both Data Warehouse and SSAS Cube

Viewing all 14337 articles
Browse latest View live


Latest Images