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

What is the namespace of SQL Server 2017 database?

$
0
0

What is the namespace of Azure Analysis Services / SQL Server 2017 (1400)?

So i have the following script that returns connection string of databases under server

Import-ModuleSqlServer#SSAS 1103 
$oldAS =New-ObjectMicrosoft.AnalysisServices.Server
$oldAS.connect("server1")

foreach ($db in $oldAS.Databases){#$dbName = $db.NameWrite-Host $db.Name-Fore green
  $db.DataSources|ForEach-Object{$_.ConnectionString}}#SSAS 1200-1400 
$AS = new-ObjectMicrosoft.AnalysisServices.Tabular.Server
$AS.Connect("server1")

foreach ($dbt in $AS.Databases){
  $dbName = $dbt.Name
  $dbName
  $dbt.model.datasources[0].ConnectionString}

the first connection/namespace is used for compatibility levels 1103 the 2nd connection/namespace Microsoft.AnalysisServices.Tabular.Server is used for db's 1200-1400

however, we recently got databases that are 1400 but have a completely different format of connection string. the connection seems to be in JSON, even when looking at it from properties, compared to the traditional long connection string

i.e.

UserId=;DataSource=;PersistSecurityInfo=True

VS

json

any databases with a data source of that format in the picture is not displaying back

is there another namespace used to get this type of connection?


Using parameters in a SSAS Tabular databse? Shared expressions?

$
0
0

Hello everyone. Expressions could be a pretty solid way to have "parameters" for processing the database, but unfortunately you can't edit them according to my findings. Just a few example:

  • You have a data warehouse and want to be able to pick the date it should use for the refresh.
  • You have a list with values that should filter the source and multiple queries use this list.

My question is: is there a way to edit these expression using SSMS, or any other tool? Or how would you "parameterize" a tabular database?

SSAS Tabular 2017 - adding a source column to existing model

$
0
0

This seems very trivial, but the UI is not responding when I try and edit the table properties of an existing 1400 model table that references a SQL view to include an additional column.

I am able to go into the table editor, see the new column in the preview, validate the query in the editor, and then when I click OK it SSDT just seems to freeze up and not respond. The table editor is greyed out / disabled and I basically have to End Task on Visual Studio.

I tried to also switch the table in the model to reference a new view, but same behavior.

So how am I supposed to be able to update an existing table to include a new column in the source?

I found this post, but this is in regards to the preview not working. That is not the case here, I see the column, just can't get the the table editor process to take and close out.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/93538eb2-68d1-43d9-8470-8fab96d16160/tabular-2017-adding-a-source-column-to-existing-model?forum=sqlanalysisservices

I am using:

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework

Version 4.7.02556

SQL Server Analysis Services   14.0.1016.232

Microsoft SQL Server Analysis Services Designer 

Version 14.0.1016.232

SQL Server Data Tools   14.0.61712.050

Microsoft SQL Server Data Tools

And the model is a 1400 version using the Tabular Model Explorer.

Thoughts?

I really don't want to delete the table and have to try and add it back in, we have already cleaned up the table names and have existing measures. I don't see any other way around it though right now.

One solution that was able to work, but definitely hack. Add the new column to the Code View of the Model.bim file. Table Editor method does not currently work and just causes us to have to End Task on Visual Studio.


Dan English's BI Blog

SQL Server Analysis Services roles issue

$
0
0

I have this issue:

I have one user assigned in 2 different roles: Read_PMs. This role is to see projects that the user owns.

 -Dimension data section

                 -cube code (filter)

                   All

                      * AA

                      * BB

                      * CC

                      * ...

                      * II

AA, BB, ... are cube codes.   All the cube codes are marked in the checkbox. This means that the user can see their own projects if they are in any of those cube code.

*Read_PM_II:

This role has the following restriction:

-Dimension data section

                 -cube code (filter)

                   All

                      AA

                      BB

                      CC

                      ...

                    * II

Only the checkbox for the cube code II is marked

Suppose that a user that is in the Read_PM role can only see information related to the cube code AA.

Also suppose that user is in Read_PM_II.

It would be expected that in the end only visualize cube code data in AA and in II.

But it is not like that.

The user is viewing data from AA, BB, CC, II.

The problem occurs because:

Read_PM has all the selected cube codes so that the user can see their own projects in any of these cube codes.
The user is in another role (Read_PM_II) the restriction is combined and information is seen in all the cube codes

Does anyone know how to correct this problem?

server

$
0
0
unable to establish connection to sql server, how to fix the erro ,continuously this error happaning 

Error when processing tabular model Azure Analysis Services

$
0
0

I have next error after processing my tabular model :

The DDL JSON request failed with the following error: Failed to execute XMLA. Error returned: 'An unexpected error has occurred.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDbCommand interface.
The exception was triggered by the IDataReader interface.
The exception was triggered by the IDbCommand interface.'..

Technical Details:
RootActivityId: 2404cde3-86fb-471a-b517-5a90470897c6
Date (UTC): 3/4/2019 10:59:16 AM
  0: PFError::SetLastError() line 2160 + 0x0 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  1: PFSetLastError() line 2918 + 0x0 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  2: PFSetLastErrorExTag() line 3474 + 0x27 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  3: 0x00007FFE500F9551 (symbolic name unavailable)

This error occurs in different places of model processing: sometimes in the beginning, sometimes after processing of a part of the model.

When I recreate model from the previous one script, it is processed without error, but in several days the same issue returns.

Thank you in advance for any helping idea.


SSAS Multidimensional - DMV retention of records

$
0
0

Hi Folks,

             I am working on getting a usage report of measures from a SSAS multidimensional model. I am querying the DMVs and I want to know how many days of record does the DMV store. Does it store the record since the last time the ANalysis service was restarted? If yes, how can I find out the last time analysis service was restarted without logging into the server and if the answer is no, then where is the setting to find out the retention period of DMVs for SSAS monitoring.

Happy Friday!

John


VS2015 Pro refresh woes when updating model

$
0
0

hi folks,
I've started working again in SSAS2016 (after previously having no issues w/ development in SSAS2012/2014), and it seems the VS IDE is having problems refreshing (to reflect the updated structures) after renaming a column, a hierarchy name, creating a table relationship or hiding a column from client tools.  It seems the VS 2015 IDE is not refreshing at all, my only option being to close the project and restart it.  Sometimes even getting  "object reference not set to an instance of an object"

So, for example, in Diagram view, when designing a cube, when I create a hierarchy and try to rename it, upon hitting the "Enter" key, the name of the hierarchy is not changing.  Same with a column, and same with a relationship, after making  the respective changes and hitting the "Enter" key, the respective change does not reflect.  My only option is to close the project and re-open it.  This seems to me like a fairly big issue.    

First, I was working with Visual Studio 2015 Shell, Version 14.0.23107.0 D14REL,  then I also installed Visual Studio Pro 2015 14.0.25431.01 Update 3 -- to no avail.   I have SSAS2016 13.0.5081.1.

When working with VS2017 SSDT, I am getting at the top:  "Extension 'Microsoft Analysis Services Projects 2.7', likely caused xx seconds of unresponsiveness, Disabling it may improve your experience"  along with all the same IDE refresh issues above.

Are there any workarounds to get a better, more consistent IDE experience?  or is it the very reason why developers are preferring the Tabular Editor 2.8 instead?    I kind of like the Excel grid/matrix view in VS where I can group the measures in logical areas, but otherwise, I have no strong feelings why I should keep using VS for SSAS development, if all these issues exist and cannot be solved.

Lastly, I will install SSAS2016 and VS2015/17 on a new environment and retry these, hopefully will glean some insight whether this is reproducible or only happens in the original environment -- and report back.

thanks much for any feedback,

Cos




BUG when live to Analysis Services 2017 CU13

$
0
0

I report here what I wrote in the PowerBI forum:

I'm on PowerBI Desktop v.2.65.5313.841 (December 2018) connected live to SQL Server Analysis Services 2017 CU13 v.14.0.239.1.

If on a visual I try to filter using a basic filter or by a slicer, the visual being filtered shows an error "An unexpected exception occurred". The error doesn't occur if I use the Advanced Filter and set manually the condition (of course the same used on Basic filter or the slicer). The error doesn't happen if I point to an instance ofAnalysis Service 2017 RTM (14.0.1.439), of course with same model and same data. If I try instead to import the model, then the version of Analysis Service used by PowerBI desktop is 15.0.2.159 and things works properly.

These are the workaround proposed:

FIX (To Customer):

It will be addressed in next 2017 CU. KB4487751 (not published yet).

ETA is mid-late Feb, 2019.

WORKAROUND (temporary):

Roll back /uninstall the CU13 - Microsoft SQL Server 2017 Cumulative Update Package 13 for SQL Server 2017 - KB4466404

At the time we installed CU13, the regression bug wasn't stated on the KB page. Shouldn't CUs now have the same quality of a service pack, I have read? This is a huge bug that is difficult not to find, if some tests were performed. Before MS changed the servicing model, I would just wait sometime after the SP release just to make sure to avoid this situation. Now, the recommended way is to apply CUs asap because they have the SP grade.

The warning on the KB page only appeared recently and I think the CU who has the bug in it (CU13? but probably it goes a way back) should not be published. If you go to the download page of the CU13 there is no such a warning tough: https://www.microsoft.com/en-us/download/details.aspx?id=56128

BR, Pier

Analogous to GO instruction?

$
0
0

Hi,

This is my firsts steps into AS.

I want to execute the backup of these two Databases in my instances. I have the following intructions:

<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">   <Object>     <DatabaseID>MyDatabaseID</DatabaseID>  </Object>  <File>E:\OLAP\BACKUP\MyDatabaseID.abf</File></Backup><Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">   <Object>     <DatabaseID>MyDatabaseID1</DatabaseID>  </Object>  <File>E:\OLAP\BACKUP\MyDatabaseID1.abf</File></Backup>

I obtain this error:

The 'Backup' element at line 14, column 74 ('http://schemas.microsoft.com/analysisservices/2003/engine' namespace) appears more than once under Envelope/Body/Execute/Command.

Where am I doing wrong? Do I need a batch separator? If I execute the instructions separately they will work properly.

Thanks in advance.

H.



Create an Calculated Member for survey scores in an MDX to show average total score per submitted form

$
0
0

Hi - I've been given a task building some vizes in Tableau using an Cube. I've had to quickly learn some MDX, but still a total novice. I'm connected, built some calculated members...but totally stuck.

I'm working with survey data - basically each Form ID has a load of attributes attached (Country, Team, Time etc). There are only ever 3 identical questions asked, and only 4 possible answers. Responders don't have to answer all questions so these will be NULL.

So far I've built these:

[Count of Answers] – so I can show volume of surveys answered:

IIF([Answer].[SAnswer].currentmember = [Yes], [Measures].[Number Of

Answers], (IIF([Answer].[SAnswer].currentmember = [Probably], [Measures].

[Number Of Answers], (IIF([Answer].[SAnswer].currentmember = [Maybe],

[Measures].[Number Of Answers], (IIF([Answer].[SAnswer].currentmember =

[No], [Measures].[Number Of Answers],0)))))))

And,

[Survery Scores]

CASE

WHEN [Answer].[SAnswer].currentmember = [Yes] THEN 1.00

WHEN [Answer].[SAnswer].currentmember = [Probably] THEN 0.67

WHEN [Answer].[SAnswer].currentmember = [Maybe] THEN 0.33

WHEN [Answer].[SAnswer].currentmember = [No] THEN 0.00

ELSE NULL

END

What I want to be able to do is report the average score per Form ID, at any level of my dimensions.

[Form ID].[001], has 3 questions answered: Q1 = 67%, Q2 = 67%, Q3 = 67% so average is 67%

[Form ID].[002], has 2 questions answered: Q1 = 100%, Q3 = 0% so average is 50%

So if both IDs were were in the same [Country].[Team].[Month] the average score would be 58%

I've tried using table calcs to get this and it doesn't work. I can get a visual showing a list of Form IDs, with a repeat of possible answers, and a count against each when answered. If I was using a flat extract, this would be easy as I'd use a level of detail calculation, but I can't because you can't use dimensions in Calculated Fields in Tableau with cube data. You can only use Measures and Calculated Members. Any assistance would be appreciated as I'm totally stuck at the moment. Thanks.

"The attribute key cannot be found when processing...."

$
0
0

Hi all, tearing my hair out with this.

"Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'dbo_Bridge_ERPOrder_FundingCust', Column: 'CUSTOMERSK', Value: '4413'. The attribute is 'Customer Key'.

Errors in the OLAP storage engine: The attribute key was converted to an unknown member because the attribute key was not found. Attribute Customer Key of Dimension:Customer Funding Source from Database: Ledgers, Cube: Ledgers, Measure Group: Bridge ERP Order Funding Cust, Partition: Bridge ERP Order Funding Cust, Record: 376507."

I've found the record, if I delete it for testing purposes the cube processes without issue. The error is about as clear as it gets.  Customer Funding Source *does have* customersk 4413. If I browse the dimension after processing this separately - the member is there. I've been staring at this record all day and no idea what the problem is. In fact 2 of us have been at it all day and none the wiser.

In order to save our sanity, does anyone have any clues? Thanks.




compression rate in tabular - 10 x what?

$
0
0

Hi. I believe I've heard the 10x compression rate related to tabular before. And our sme says its actually 5-8 times here. But 5-8 times what? 

Asked another way, if i'm looking at a record that on the surface, and according to the data type documentation would consume 100 bytes and my volume is 1 million records (100,000,000 bytes on the surface), what will it consume on tabular?  I'm just looking for a ballpark.

SSAS MDX sum only selected members in time dimension

$
0
0

i have a cube, that need to create a calculate measure that sum only the numbers of days in selected month.  I need this because i have a formula that is like A * Number of days in a month / total days of month selected

I resolve this with dynamics named sets but, Power BI doesnt support it.  Then need to resolve this without using named sets

For example:

Month         number days        Total selected

Q1               59                           59

January        31                           59

February      28                            59

Any know or have an idea how to resolve with MDX in a SSAS MD?

Thanks for any help or idea

Juan 



Juan Alvarado - MVP SQL SERVER

Error processing tabular model

$
0
0

We have problem working with very simple tabular model. After deployment I created job to fully refresh data once per day. Everything was working fine until one day when I got alert from agent. Log looks like:

WarningCode="1092550744" Description="Cannot order ''[] by [] because at least one value in [] has multiple distinct values in [].

Processing database (full) in SSMS works fine. Running XMLA command is producing the same error. Job finish with error too.

Try workaround droping database and deploying again, restarting SSAS,... without success.

Environment: SSAS 13.0.4001, Data source: Oracle 11g

Any idea?


Query Multiple OLAPS with Calculated Measures then Join to other OLAP Queries based off Main query Resultset

$
0
0

Good day, I need help please.

A Business user has 5 cubes with 10 sheets filtered differently with a main sheet Joining these multiple sheets & cubes together using Lookups

I am not too clued up on returning the results in sql 

1. I want to query the 5 cubes and replicate the 10 sheets in SSIS and store in sql tables

2. How would I filter the result of cube1/sheet1 with cube2/sheet2, probably write to table then use sql - other options?

3. would sql be able to return calculated measures accurately as it would be at runtime of OLAP calculated measure

4. with excel as cube presentation, is there a way I can get the MDX used to create the sheets

Example: Sheet1 with specific dimension filters & data grain > insert into sql table. Sheet2 query cube & store results in sql, I will have a main table/query where Sheet2 table rows will be joined/filtered based off Sheet1 table results

I need to do this in sql, so I probably will setup LinkedServers.

Any ideas and examples please

Regards

 



SSAS CUBE in EXCEL - Grand total does not SUM correctly (not calculated member)

$
0
0

Hi,

I have a problem with grand total values when browsing a SSAS cube data through excel.

Grand total does not SUM all values.

When I browse cube and same data through Power BI it SUM it correct.

Al ok when browsing a same data through SSMS:

Data from the source table:

If anyone knows what is the problem or if anyone have some kind of explanation....I would be grateful!!


Problems with SSAS Tabular. I cannot open the tabular.

$
0
0

Hello everyone. 

I have a problem when i tried to open a tabular file (.bim) in Visual Studio 2010-2013. It contains around  136 tables and 145 messeaures.  Sometimes the tabular opens and sometimes not. The issue that VS detected is that the ram memory is not enough but i tried to open the file with differentes cpus with 8 GB, 6GB and 4GB and it not works either.

Maybe someone faces with a similar issue and you can help me!


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.

 

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

An error occurred while opening the model. Click Details for more information.

 

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

Call Stack:

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

 

   at Microsoft.AnalysisServices.BackEnd.DataModelingServer.ExcecuteXMLA(String bismContent, String databaseName, Boolean isAlter)

   at Microsoft.AnalysisServices.BackEnd.DataModelingServer.ExecuteXMLAFromFile(String bismFileName, String databaseName)

   at Microsoft.AnalysisServices.VSHost.VSHostManager.HandleExistingProject(Boolean isImported, Boolean& isRefreshNeeded)

   at Microsoft.AnalysisServices.VSHost.VSHostManager.PrepareSandbox(Boolean newProject, Boolean& isRefreshNeeded, Boolean& isImpersonationChanged, Boolean& saveRequired, List`1& truncatedTables, Boolean isRealTimeMode, Int32 clientCompatibilityLevel)

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

   at Microsoft.AnalysisServices.VSHost.VSHostManager.PrepareSandbox(Boolean newProject, Boolean& isRefreshNeeded, Boolean& isImpersonationChanged, Boolean& saveRequired, List`1& truncatedTables, Boolean isRealTimeMode, Int32 clientCompatibilityLevel)

   at Microsoft.AnalysisServices.VSHost.Integration.EditorFactory.CreateEditorInstance(UInt32 grfCreateDoc, String pszMkDocument, String pszPhysicalView, IVsHierarchy pvHier, UInt32 itemid, IntPtr punkDocDataExisting, IntPtr& ppunkDocView, IntPtr& ppunkDocData, String& pbstrEditorCaption, Guid& pguidCmdUI, Int32& pgrfCDW)

 

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

Thanks.

 

SSAS Tabular 2017 - adding a source column to existing model

$
0
0

This seems very trivial, but the UI is not responding when I try and edit the table properties of an existing 1400 model table that references a SQL view to include an additional column.

I am able to go into the table editor, see the new column in the preview, validate the query in the editor, and then when I click OK it SSDT just seems to freeze up and not respond. The table editor is greyed out / disabled and I basically have to End Task on Visual Studio.

I tried to also switch the table in the model to reference a new view, but same behavior.

So how am I supposed to be able to update an existing table to include a new column in the source?

I found this post, but this is in regards to the preview not working. That is not the case here, I see the column, just can't get the the table editor process to take and close out.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/93538eb2-68d1-43d9-8470-8fab96d16160/tabular-2017-adding-a-source-column-to-existing-model?forum=sqlanalysisservices

I am using:

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework

Version 4.7.02556

SQL Server Analysis Services   14.0.1016.232

Microsoft SQL Server Analysis Services Designer 

Version 14.0.1016.232

SQL Server Data Tools   14.0.61712.050

Microsoft SQL Server Data Tools

And the model is a 1400 version using the Tabular Model Explorer.

Thoughts?

I really don't want to delete the table and have to try and add it back in, we have already cleaned up the table names and have existing measures. I don't see any other way around it though right now.

One solution that was able to work, but definitely hack. Add the new column to the Code View of the Model.bim file. Table Editor method does not currently work and just causes us to have to End Task on Visual Studio.


Dan English's BI Blog

Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of '

$
0
0

When I deploy the cube which is sitting on my PC (local) the following 4 errors come up:

Error 1 The datasource , 'AdventureWorksDW', contains an ImpersonationMode that that is not supported for processing operations.  0 0 
Error 2 Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'AdventureWorksDW'.  0 0 
Error 3 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Customer', Name of 'Customer' was being processed.  0 0 
Error 4 Errors in the OLAP storage engine: An error occurred while the 'Customer Alternate Key' attribute of the 'Customer' dimension from the 'Analysis Services Tutorial' database was being processed.  0 0 

Viewing all 14337 articles
Browse latest View live


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