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

Cannot open model.bim (SSAS tabular data model)

$
0
0

Hello

I am getting the below error when I try to open my SSAS Tabular model in Microsoft Visual Studio 2015.

I had a look though the XML code but couldn't find the value "1150" anywhere.
Any suggestions on how to fix this issue?

Thanks

Freddy



SSAS - EXCEL remote connection

$
0
0

Hi, I migrated to SQL Server 2014 from 2008 version. I have Windows Server 2012 with IIS 8.5.

I'm trying to configure remote access to my OLAP database . I followed all the steps as described here:

https://msdn.microsoft.com/it-it/library/gg492140(v=sql.120).aspx.

The IIS version mentioned is the 8.0, does it fit for the 8.5 too?

When I try to test the configuration using the Management Studio I get this error:

TITLE: Connect to Server
------------------------------

Cannot connect to http://localhost/OLAP/msmdpump.dll.

------------------------------
ADDITIONAL INFORMATION:

The connection either timed out or was lost. (Microsoft.AnalysisServices.AdomdClient)

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

The remote server returned an error: (405) Method Not Allowed. (System)




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

   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.EndRequest()
   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility)
   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Discover(String requestType, String requestNamespace, ListDictionary properties, IDictionary restrictions, Boolean sendNamespacesCompatibility)
   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.SupportsProperty(String propName)
   at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect(Boolean toIXMLA)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.ConnectXmla()
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

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

The remote server returned an error: (405) Method Not Allowed. (System)

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

   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.AnalysisServices.AdomdClient.HttpStream.GetResponseStream()
   at Microsoft.AnalysisServices.AdomdClient.HttpStream.GetResponseDataType()
-----------------------------------------------------------------------------------------------------------------

What can I do to get more details in order to find what goes wrong?

Thank you in advance for your help!


Get last cube processing times

$
0
0

Hi all,

I'm looking for a query to get the last process time of a cube. I know the query below

SELECT LAST_DATA_UPDATE FROM $system.mdschema_cubes

But this only gives me the last process time when I ran the query for a specific cube. How do I get this for all cubes? Kinda like when you run it from the master schema. I don't seem to find a possibility...

Security settings in SSAS to avoid Data base being opened in Visual Studio

$
0
0

I'm trying to find the permission which restricts users from opening the cube in Visual Studio via --> Open --> Analysis Service Database --> Server Name and Database name to which they have read only access on the cube and the dimensions. This actually exposes the DSV which shows the underlying tables from the Enterprise Data Warehouse (We Use Teradata for data feeds). Also exposes some restricted calculations related to certain metrics in the cube calculation area. Is there a way to restrict that, since I couldn't find any option where this capability is restricted after granting users read only access to the cube (no local/drillthrough) & dimensions.

++ Edit :: Running SQL 2014 for all SQL components.

MDX for last non empty

$
0
0

Hello All,

My Greetings for the day!!!

I am trying to find solution for an issue. Please understand the scenario mentioned below :

In my SSAS Sales cube I have Sales for last 5 years.

I have been asked for YTD figures for which I have used the formula:

The problem is While viewing the data We get data for all the quarters, months etc. I am trying to restrict the YTD figures will today or the last recorded sales for current year & other years. At present it shows for June, July till December 2016.

For ex:

While browsing the measure on Time Hierarchy it should not show YTD figures after Today(27-May-2016).

Can you please help?

Regards,

Hiren


Hiren Parikh

grand total doesnt equal measures

$
0
0

 The measures produce the correct results by month, but Grand Total doesn't match. This logic should only apply to Current Year.


SUM(EXISTING [DateParm].[Year].[Year].Members,
  IIF ([DateParm].[MM].currentmember.member_value >= [Current Month]
    , [Measures].[Final Fcst]
    , [Measures].[Sales History]
    )
  )
 Thanks.

Is it possible to restrict full table download in Visual Studio Tabular designer?

$
0
0

I'm now becoming a less of a novice with Tabular modeling and one thing that I've wondered is whether it's possible to tell visual studio not to download the entire table when in design model. Right now I'm having to go into the SQL Serer view, turn it into a select top 1000, then bring it into designer. But it should really be an option within Visual Studio I would argue.

If this feature does not exist I shall see if I can request it.

SQL Server 2014 SP1 and Windows Firewall

$
0
0

Hi

During the first phase of installation of SQL Server 2014 SP1 64 bit on Windows Server 2014 R2, SQL warns that my firewall is not enabled even if Windows Firewall (the only one I) is activated and configured with default ports of SQL as shown below:

So, how can I fix this?

Thanks

Bye


Balubeto


row level security in SSAS multidimensional

$
0
0

We have implemented row level security in our SSAS database. In our business case we have property level security and account level security. In property level security user should be able to see data for only those properties which are assigned to him, and in Account Level security a user should be able to see data of only those accounts for which he is authorized to access.

After security implementation we noticed a problem due account level security implementation, users were not able to see correct totals for those hierarchies which were having some accounts which were not accessible to the user due to security restriction. e.g. if a user is head of purchase department he is having access to sales accounts only, but when he browse cube for net profit he is seeing wrong net profit, as the net profit only calculates based on sales department accounts.

when I enable visual totals on the role it shows correct totals, but also shows all underlying accounts even though they are not accessible to him

I want to know for the possible solution to sort out this issue.

MDX to get the dimension used

$
0
0

Hi All,

I want to have a MDX statement in SSAS where i wand to restrict one measure for dimenstion. What i want to do is if Currency measure is selected i want that Country heirarchy cancnot be used or the values is blank.

so what i want is some think like this

Scope ([measure].[Currency]);

case

when (Dimension country is selected)

''

else

[measure].[Currency]

end

 

Thanks you all

 


;-) Cheers

Bottomcount does not sort correctly

$
0
0

when using the following mdx on ADW 14 the pnComp columns returns unsorted. Seems like bottom count does not work well with correlate mdx function

with
set [pnSet1] as {[Geography].[Geography].[City].members}
set [pnSet2] as {[Product].[Product Categories].members}

member [Customer].[Customer Geography].[pnEmptyTest] as sum([Customer].[Customer Geography].defaultmember,[Date].[Fiscal].prevmember*[Date].[Fiscal].currentmember)
set [pnSet] as nonempty([pnSet1]*[pnSet2],[Customer].[Customer Geography].[pnEmptyTest])


member [Customer].[Customer Geography].[pnComp] as 
sum([Customer].[Customer Geography].defaultmember,
correlation(lastperiods(6,[Date].[Fiscal].currentmember) ,[Measures].[Reseller Sales Amount], [Measures].[Reseller Order Quantity]))
,format="0.0000"


set [pnResult] as

bottomcount([pnSet],100, 
[pncomp]
)


select [pnResult] on 1, {pncomp} on 0

from [Adventure Works]
where ([Measures].[Reseller Sales Amount],[Date].[Fiscal].[Fiscal Quarter].&[2013]&[2]
)

How to set dimension attributes of SSAS cube to hidden using C# code in script task

$
0
0
How to set dimension attributes of SSAS cube to hidden using C# code in script task

Scope seems not working while doing multiple selection in where clause.

$
0
0

I am trying to find out number of months. If I select 2014, it should be 12 months (for example). If I select both 2014 and 2015, it should be 24(12+12). I am trying to use scope  for years. It is working if I select a year. But if I have to do multiselect such as years 2014 and 2015 in where clause, value of measure [NumberOfMemberMonth] comes null. It looks like scope is not working for multi select. I have two different codes below. 

1)

scope([Measures].[NumberOfMemberMonth]);
scope( [Service Date].[Service Date].[Service Years]);  
this = SUM(EXISTING([Service Date].[Service Date Month-Year].[All Service Dates].children,[Measures].[MemberMonth_Svc]));
end scope;

scope( [Paid Date].[Paid Date].[Paid Years]);
this =Sum(EXISTING([Paid Date].[Paid Date Month-Year].[All Paid Dates].children,[Measures].[MemberMonth_Pd]));
end scope;
end scope;

2)

scope([Measures].[NumberOfMemberMonth]);
this =iif (
(
[Service Date].[Service Date].currentmember.level is [Service Date].[Service Date].[Service Years]
),
SUM(EXISTING([Service Date].[Service Date Month-Year].[All Service Dates].children,[Measures].[MemberMonth_Svc]))
,
iif
(
(
[Paid Date].[Paid Date].currentmember.level is [Paid Date].[Paid Date].[Paid Years]
),
SUM(EXISTING([Paid Date].[Paid Date Month-Year].[All Paid Dates].children,[Measures].[MemberMonth_Pd]))
,null
)

But, both fail to handle multiselect on where clause.  I get null in NumberOfMemberMonth when I select both 2014 and 2015 (for example) in where clause..Please let me if there are any solution on multi select on scope.

Migration of Analysis server upgrade from 2003 to 2008R2

$
0
0

Hello All,

we have been migrated our analysis server from 2K3 to 2K8R2 , we are using SSIS Package to trigger the Cube database but facing below issue.

Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Login timeout expired".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "TCP Provider: No connection could be made because the target machine actively refused it.

what can be the solution to fix the issue.. please help

Regards,

Praveen K.

SSAS dimension attribute with subsets?

$
0
0

Hi!

I've stumbled across an issue with a DATE-dimension that I'm hoping to get some help with. In this date dimension table there's a PERIOD-attribute that I'm interested in turning into a slicer in Excel, but not sure how. The problem is that values in this field can be subsets of each other.

Let's say this field can have three different values, LAST 7 DAYS, LAST 30 DAYS and LAST YEAR prioritized in that particular order, meaning that all dates between getdate() and getdate()-7 will be assigned value = LAST 7 DAYS, All the rest back to getdate -30 will be assigned value = LAST 30 DAYS and beyond that LAST YEAR.

What I'd lke to achieve is to use this PERIOD-attribute in a single slicer in excel, where I can let users pick either LAST 7 DAYS, LAST 30 DAYS or LAST YEAR. Note that I DON'T want users to have to pick both LAST 7 DAYS and LAST 30 DAYS. Only one choice should be made!

This seems a bit tricky (for me at least) as I need to be able to pass more than one value from the slicer down to the underlying data, if there's a subset that needs to be picked up as well. For example if I choose LAST 30 days, I need data to be retrieved for both records containing LAST 7 DAYS and LAST 30 DAYS, as the 7-day records should be included in the 30 days.

Is it possible to do this by somehow manually configuring/coding the slicer in excel, or does it require some re-modelling in the cube/dimension or underlying datamodel? And if so, what would you suggest?

Thanks in advance!

/Z


PrevMonthToDate calc not showing accurate numbers.

$
0
0

I am trying to build a scope with MDX, in order to get the previous month to date value. 

For the levels of dates it works accurate and gives me the previous period to date value, but when I collapse to months gives me same value as previous period.

example of not accurate values:

With filter, I have selected 1-25 may 2016.At the levels of month and PrevMonthTodate measure I expect to get the sum of 1-25 April 2016.But I get the sum of all days of April.

Below is the current calculation 

AGGREGATE
(
    {[Date Calculations].[Date Calculations].[CurrentPeriod]} *
PERIODSTODATE
([Date].[Calendar Hierarchy].[Month],
PARALLELPERIOD
     (
       [Date].[Calendar Hierarchy].[Month],
       1,
       [Date].[Calendar Hierarchy].CURRENTMEMBER
     )
  )
);


cube full process fail when it runs from XMLA script but success when run manual

$
0
0

We are preparing XMLA script with 10 cubes full process script , and it is failing when it ran from XMLA script ,throwing error saying one of cube in the cube database processing failed 
(Internal error: The operation terminated unsuccessfully. Server: The operation has been cancelled. Errors in the OLAP storage engine: An error occurred while processing the 'XXX' partition of the 'Rates' measure group for the 'Rates' cube from the XXX_databse database.)

When we process same database manually it is getting success.

please help me to understand the problem

How to Write MDX query in Excel cell

$
0
0

Hi,

I want to dynamically populate result using MDX query in Excel cell, I need to store those queries in excel sheet.

How can I achieve it?

Thanks

How to migrate fixed tables to memory tables?

$
0
0

Hi there,

Primary platform is SQL Server 2014 SP1

I want to test my application pulling directly from memory tables (approx we have 90 tables).

Our application has a couple of databases; one per data and another one for keeping references, items for all the GUI. Every time that one end-user runs the application by using one remote desktop our Server Application must load all the references for the Model-baselines databases and it takes a while.

I think we can take advantatge of this facilities

Thanks in advance and regards,


Views and Cube process

$
0
0

Hi All,

Could someone please clear my doubt?

I have a SSAS cubes and partitions.

For this cube, the source I have used is database views.

Now my question is, When I process my cube whether it affects views means views will get refreshed everytime?

Viewing all 14337 articles
Browse latest View live


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