Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all 2472 articles
Browse latest View live

Browsing SSAS cube from excel throwing error

$
0
0

Hi,

We have SSAS cube created on 2008 R2 version. We are using 32-bit PCs and trying to browse cube from excel. When adding columns from one of the huge dimension table we are facing "Memory Error" saying that "Data could not be retrieved from external source". upgrade to 64-bit or increase memory of the system.

upgrading to 64-bit is not possible right now. 

Is anyone has any idea to resolve this issue. It is very critical as user testing is going on and we can't say any exceptions.

Quick response will be really appreciable.

Thanks & Regards,

Sindhu


Can we provide security to levels in ssas?

$
0
0
Can we provide security to levels in ssas?

Action Report - Open SSRS Report with à list of parameters

$
0
0

Hi,

I have builted a SSAS Cube for a Call Center. I would like to know first If what I want to do is possible.

Let's say that in my cube, I want to know the number of call that doesn't respect the SLA. I drag some attributes and put the "number of call" measure and it's showing me the number of call that doean't meet the SLA.

Let's say that the number of call is 10. I have created a drillthrough action that show the 10 call details in excel (right click the cell with the number 10 and choose the drillthrough option and It open the 10 call details)

What I would like to do with the "10" calls is to open a report with SSRS showing in a more presentable way, the 10 call details (Using a Action report when I right click on the number 10 from the cube). It is possible to pass the 10 "Call ID" to a report in SSRS ?

What I have done for now is to create a report with no parameters. At the moment, I can open the report from SSAS but there's no parameters passed to the report so it's always opening the same empty report.

Sorry for the bad english, it's not my main language !

Richard


Richard Martin Web Developer / BI Developer


Error message in Excel 2010: "Server:The operation has been cancelled."

$
0
0

Hello,

I'm working with a SSAS 2008 R2 solution that include several cubes. The current year partitions are processed every half hour IF new data have been loaded into DW.

Some of our users has started to receive the following error message in Excel 2010 : "Server:The operation has been cancelled." When the users press OK the pivot table updates fine.

The users also states that this problem dosen't occur in Excel 2007.

Does anyone have an idea how we could solve this error?

Thanks i advance.

Best regards

AL

Get first non-null values for all customers

$
0
0

Hi,

I am using SQL 2008R2, the Adventure Works database and I need to retrieve the first date with non-null Sales Amounts for each customer. The query is the following:

SELECT
{
     [Measures].[Sales Amount]
} ON 0,
NONEMPTY
(
     [Due Date].[Date Key].&[20010701]
    :[Due Date].[Date Key].[All].LastChild
    ,{
         [Measures].[Sales Amount]
    }
).ITEM(0)
ON 1
FROM [Adventure Works]
WHERE
(
    [Customer].[Full Name].&[11000]
)

While this correctly returns the first date in the specified interval with non-null sales amounts for customer 11000, I would need to achieve this for all customers and this is where I get stuck. So I need to incorporate the Customer dimension in the SELECT statement somehow and remove it from the WHERE clause.

Any help would be greatly appreciated!

Thank you!

Admin access issue

$
0
0

Hi,

I have two users part of the same Admin group. This Admin group has complete admin access to an SSAS database: full control (administrator), process database, read definition. But one of them can see all members of a certain dimension, the other can only see some members. What could be the issue behind this?

I am using version 2008R2.

Thank you!

Browsing a cube: Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)

$
0
0

When I try to reconnect using the cube browser (in both Visual Studio and SQL Management Studio) I get the following error:

===================================
Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)
------------------------------
Program Location:
   at Microsoft.Office.Interop.Owc11.PivotView.get_FieldSets()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.TranslatePivotTable()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.UpdatePivotTable(Boolean translate)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.UpdateAll(Boolean translate)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.ReconnectCanFail()
   at Microsoft.AnalysisServices.Browse.CubeBrowser.SupportFunctionWhichCanFail(FunctionWhichCanFail function)

And when I try to drag stuff from the measure group (the left panel) I get:

===================================
Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft Visual Studio)
------------------------------
Program Location:
   at Microsoft.Office.Interop.Owc11.PivotView.get_FieldSets()
   at Microsoft.AnalysisServices.Controls.PivotTableHash.get_FieldSetsEnumerator()
   at Microsoft.AnalysisServices.Controls.PivotTableHash.GetFieldSet(String uniqueName)
   at Microsoft.AnalysisServices.Controls.PivotTableBoundMetadataBrowser.GetPivotTableDataObject(NodeObject nodeObject)
   at Microsoft.AnalysisServices.Controls.PivotTableBoundMetadataBrowser.GetDataObject(TreeNode node)
   at Microsoft.AnalysisServices.Controls.MetadataTreeView.OnItemDrag(ItemDragEventArgs e)
   at System.Windows.Forms.TreeView.TvnBeginDrag(MouseButtons buttons, NMTREEVIEW* nmtv)
   at System.Windows.Forms.TreeView.WmNotify(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at Microsoft.AnalysisServices.Controls.MetadataTreeView.WndProc(Message& msg)
   at Microsoft.AnalysisServices.Browse.CubeBrowser.CubeBrowserMetadataTreeView.WndProc(Message& msg)


Does anyone have any idea what's going on here and how I could fix it?!?

I'm running SQL Server 2008 SP1 on Windows 7 RTM.

Format string suffix

$
0
0

What do I need to enter in the "Format string" text box in the calculated member form in the "Calculations" tab in SSDT to add °F after a numeric value? '# "°F"' (without the outer single quotes) worked for a regular measure's"FormatString" property, but that isn't working for a calculated measure.


Perspective vs Cube

$
0
0

Hello, I found one strange issue, I have a cube and a perspective. When I chose the perspective the grand total for the measure I'm using is not correct, but when u chose the Cube the grand total is correct. So what can be possible happening? That's strange. Thanks!

Cube:

          xxxx:   2     3     4

Grand total:  2     3     4

Perspective:

           xxxx:  2    3     4

Grand total:  4    5     6

Update: 

I think it is an Excel problem, I tried it in the cube and the perspective is working, tried in Excel 2003 and works, but in Excel 2010 it doesn't, that's weird.

Need some help on setting write access to a cube

$
0
0

Hi,

I have setup a cube for Write back access, but are struggeling with setting the write access (and read for that matter) the way I want.

It's for the start, just a simple cube with one measure and 4 dimensions - a Units measure and a Year, SalesChannel, ProductCategory and Manufacturer dimension.

What I'd like to do, is to set the permissions so I can "control" at which dimension level the user can enter data. This is to avoid the case where the user forget to use e.g. the SalesChannel and then he enter 1000 units which is then distributed accross all SalesChannels.

I'm basically looking for a way to define security, so a user only can enter data in the cell for a single year, a single SalesChannel, a single Product and a single Manufacturer.

Id this possible in some way by setting the "write" security on the cube?


Steen Schlüter Persson (DK)

Multidimensional to Tabular conversion -- Excel issues

$
0
0

hi all,

I have managed to convert an entire multidimensional (SSAS2012) to Tabular, apparently without many hiccups.  -- so far, much better performance, but not yet fully quantifiable.

The only issues that I've run across is the fact that, in the Excel 2010 client, I have to change all dataset pointers to the new connection.  Is there a way to do that as a whole? -- apparently there's this one large excel file with many sheets, where each sheet points to the same connection in the same location.  I don't want to change the source connection as that'll still be in use w/ the existing multidimensional project.

It appears that also, all filters in this Excel spreadsheet are being reset, when repointing, manually, to the Tabular cube.  Is this something to be expected?  

A third minor concern, it appears that, when adding attributes to the Report filter area,Excel does not expose the dimension names, but just the attributes.  Is there a way to expose both dimension and attribute names in the filter, in Excel?

thx much,

Cos



SSAS Tabular Cluster Node Faliure

$
0
0

Hi,  We have a cluster environment  of Server 2012, SQL Server 2012, with two Nodes. We have three Roles (SQL Server, SSAS and SSAS Tabular) The first two switch between both nodes and come up fine, however SSAS Tabular will only operate on node 2.  When forced to node 1 we get the following error:

"Clustered role 'SQL Server (TABULAR)' has exceeded its fail-over threshold.  It has exhausted the configured number of fail-over attempts within the fail-over period of time allotted to it and will be left in a failed state.  No additional attempts will be made to bring the role online or fail it over to another node in the cluster.  Please check the events associated with the failure.  After the issues causing the failure are resolved the role can be brought online manually or the cluster may attempt to bring it online again after the restart delay period."

In addition in the Application event log we get this message:

"The service cannot be started: Message-handling subsystem: The message manager for the default locale cannot be found. The locale will be changed to US English. Message-handling subsystem: The message manager for the default locale cannot be found. The locale will be changed to US English. The following system error occurred:  Insufficient system resources exist to complete the requested service. "

This only occurs on node 1, both of which are set to English (United Kingdom) all other roles switch fine, we have checked the service account is the same on the tabular service (which will not stay up on node 1) and computer administrators are the same on both machines.

I'm running out of ideas, any assistance would be greatly appreciated.

Regards,

Tim

Which Processing Option is Better?

$
0
0

Processing full is taking ten and a half hours, I definitely need incremental processing. Reading different posts on the forum, I found the following two options for incremental processing.

Option 1:
1. Process Update - Dimensions
2. Process Full - Latest cube partitions
3. Process Index - All historic partitions

Option 2:
1. Process Add - Dimensions
2. Process Data - Latest cube partitions
3. Process Default - All historic partitions

Which of these two processing options is faster, and why should I choose one or the other?

Thanks.

Date Dimension

$
0
0

Hi,

I've very new to SSAS so sorry if this is a very basic question.  I have a basic cube and as part of that I have a date dimension (1900 until 2100).  The problem is that when this is applied as a filter when browsing the cube you see all of the records (IE every year from 1900 to 2100).  What I want to be able to do it show from year 2010 up until the current year (IE a new row would be displayed each time we move into a new year).

Thanks in advance!

Measure Group Design

$
0
0

Which of the following two design options is better in terms of performance and other things.

Design 1: Transaction measure group (25 million transactions) has CustomerID which links it to a Customer dimension. This Customer dimension (10 million customers) has CustomerID and has CustomerStatus description.

Design 2: Join Transactions to Customers in the view that generates the Transaction measure group, now Transaction measure group has CustomerID and CustomerStatusID which is linked to a Customer dimension (the dimension has only 4 records).

Thanks.


MDX security problem

$
0
0

Could you please help me with security ? I don't have idea why it doesn,t work. I see all dimension but I shoudn't see produdct 2.

                       Values                    Security Count

Product1           100                            1

Product2           200                          

Product3           150                            1

Grand Total       450                            2

and my security MDX

NonEmpty(
[Product].[ID].Members,
(StrToMember("[CK_SECURITY].[Login].["+UserName() +"]"),
[Measures].[CK Security Count]
)

It looks like Dimension Data doesn't join with measures.

Thx


calculated measure disappears when an attribute selected !!!

$
0
0

I have the following:

  • [D project]: a dimension that contains projects attributes
  • [D services]: a dimension that contains services attributes. Each service has a unite price. One or more services can be done in a project.
  • [F TC]: a fact table contains the number of hours spent doing a service under a project.

I've created a calculated measure and named it [SOR COST]. This calculated measure multiplies[Service Unit Price] attribute from [D services] with[No. Hr.s] from [F TC] to get the cost of service. The expression of this calculated measure is: 

sum( [D Services].[Service Unit Price].children,[D Services].[Service Unit Price].membervalue*([measures].[No. Hr.s]))

This calculated measure usually works as expected, for example:

 

The problem is when I select to show [D Services].[Service Unit Price] in the above excel, strangely the Service cost disappears, as follows:

As you can see, even though the total of the SOR Cost is still there the detailsdisappear, what is happening ?!! and how can i fix this ?
Please do not suggest to include the unite price in the fact table, i need to know the reason of the above and how to fix it


Type 2 SCD browsing

$
0
0

I have a Customer dimension modeled as a Type 2 SCD.  The only attribute that will change over time is a bit field that stores the "Is Married" status.

So lets say I have a Customer named John Smith who was not married before 2012-01-01 and was married on 2012-01-01 and after.  This would have 2 rows in my Customer dimension with 2 different Surrogate Keys (e.g. S1 and S2) but both rows would have the same Business Key (e.g. B1).  So far so good and nothing out of the ordinary to my knowledge.

Now lets say I have a fact table named Sales.. any sales for this customer before 2012-01-01 would be linked to the S1 row (non married)and any sales on 2012-01-01 and after would link to the S2 row (married).

My question is this:

Using a very basic browser like the one that comes with SQL management studio even, how can I let the user to only look at sales that occured while the Customer was married.  So in my example, only the Sales records that are linked to the S2 record.  This seems very basic to me and I cannot seem to find an answer.

So assuming the following:

[Customer].[Customer] = Business Key

[Customer].[Customer SCD] = Surrogate Key

I tried 2 different named sets to see if that would work for me...

The following named set will include any customers who have EVER been married.. not just the ones married at the time of the sale:

EXISTS

[Customer].[Customer].Children,
FILTER(
[Customer].[Customer SCD].MEMBERS,
CBool(
IIF(
[Customer].[Customer SCD].CurrentMember.Properties("Is Married") = "True",
1,
0
)
) = True
)
)

Whereas the following does exactly what I want.. but will not show up unless I make the Customer SCD attribute hiearchy visible.. which I read you are not supposed to do because that would expose the surrogate key to the client tool:

FILTER(
[Customer].[Customer SCD].MEMBERS,
CBool(
IIF(
[Customer].[Customer SCD].CurrentMember.Properties("Is Married") = "True",
1,
0
)
) = True
)

The solution does not have to use a named set.. I just want the user to be able to do it themselves.  Does anyone have some wisdom to dispense to this poor lost soul?

Grand Total Errors With Calculated Member

$
0
0

I'm pretty sure this is a simple one.

I am an MDX novice working on "Report Months" query, getting incorrect "All" calculation.  See the report below.  The "All" total should be 278 if you add all the all the report months members (23 X 12 + 1 + 1 = 278), but report keeps calculating as the Grand Total as 289.

Report months are simply a count of the Date - Paid Months in the report.  

I'm certain the answer has something to do with the IIF portion of the code.  I'm checking DatePaid to see if it's the current year and if the current month is < 12 and am returning Month(Now()) if that is the case.  

Mdx  = 

with member ReportMonths
as
IIF([Date - Paid].[calendar].CurrentMember.MEMBER_CAPTION = "Calendar " + CStr(Year(Now())) AND MONTH(Year(Now())) < 12
, MONTH(Now())
, Count(Existing([Date - Paid].[Calendar].[Month]))
    )

SELECT ReportMonths  on columns,
[Date - Paid].[Year].Members on rows
from [My Cube]

Report look like this.  



Thanks so much for your time,

Cary


How to get count excluding null in SSAS 2008

$
0
0

If my table contains

              
SHIVA                                    
Reddy

   1                                       1

   2                                   NULL

  3                                        2

How to get count(SHIVA)=3 and COUNT(Reddy)=2 in SSAS.

Please suggest any function or an MDX query.

Viewing all 2472 articles
Browse latest View live


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