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

Full and Incremental Processing Takes the Same Time

$
0
0

Hi,

I built a tabular model containing 15 dimensions and 5 fact tables.

Two of the fact tables are large tables (27 M and 154 M records) so i decided to partition them by month (using transaction date column).

i built 2 SSIS packages:

Incremental Processing - All Dimensions - Process Default, Small Facts - Process Default, Big Facts - Process full for last 3 partitions (last 3 months)
*The different processing sequences runs in parallel.

Full Processing - Process full for the whole model.

for some reason the incremental process and the full process takes the same time to complete!

any ideas as to why the incremental processing is not significantly faster?

Thanks!



Getting error while using Excel Cube member functions to get dimension attribute members.

$
0
0

Hi Everyone,

I am getting error while using  Excel Cube member functions to get dimension attribute members in excel. Whenever we select multiple values in excel slicers.

Version: - Excel 2013

Excel Function. We are using in this way.

CUBESET("DWH_CUBE","Cube MDX Query”, PPMByAssetCount_Utilization")

Cube MDX Query: -

Select {}oncolumns,

topcount(

NonEmpty(

[Employee].[Employee].[ Employee].Members,

([Measures].[Internet Sales Amount],

[CalendarDate].[Month].[Nov-16],

{[Account].[Account Name].[ Select Account], [Account].[Account Name].[Test]},

[Scope].[Scope].&[True],

{[Loc].[Country].[India],[Loc].[Country].[USA]})

,100,

([Measures].[Internet Sales Amount],

[CalendarDate].[Month].[Nov-16],

{[Account].[Account Name].[ Select Account], [Account].[Account Name].[Test]},

[Scope].[Scope].&[True],

{[Loc].[Country].[India],[Loc].[Country].[USA]})

)

Onrows

 

From DWH_CUBE

 

Getting below error in SSMS.

 

Executing the query ...

Query (3, 1) The TOPCOUNT function expects a string or numeric expression for the 3 argument. A tuple set expression was used.

Run complete

Can someone suggest the way to achieve  this and what i am doing wrong in MDX. How we can use TupleSet in TopCount.

It works fine with single selection only when i remove the set ({}) and go with strings only.

Thanks,

Shishupal


Thanks, Shishupal

Problems with scheduled SSAS 2016 SP1 cube processing using SQL Server Agent on Azure Windows Server 2016 VM

$
0
0

Hello all,

I wonder if anyone experienced the same problem. Scheduled SSAS 2016 SP1 cube processing using SQL Server Agent fails on Azure Windows Server 2016 VM with error message: "Errors in the metadata manager. Either the database with the ID of 'xxxxx' does not exist in the server with the ID of 'yyyy', or the user does not have permissions to access the object."

First I tried the default settings, SQL Server Agent was running under "NT Service\SQLAGENT" account, the account had full control/process/read definition to SSAS database. I verified "NT Service\SQLAGENT" had "Log on as a service","Replace a process-level token", "Bypass traverse checking" and "Adjust memory quotas for a process" local server permissions.

I have tried running SQL Server Agent as Local Service account and either the same account SSAS runs under (NT Service\MSSQLServerOLAPService).

Still no luck. Exactly the same configuration works just fine on another 2012 R2 Windows Server configured in the same way. I mean, I really do not do it for the first time.
I am certain server and local database names are correct. All the services run on the same machine. Cube processes manually with no problems. Nothing unusual found in server logs.

Please advise, I am clueless.

Thomas

Environment: Azure VM, Windows Server 2016, SSAS 2016 SP1, SQL Server (Agent) 2016 SP1

YTD function

$
0
0

Is this an appropriate way to write a YTD function? I think the point is to eliminate extra months with no values. Any other ways to write this? Grazie. 

Calculated Field 2:=calculate([Calculated Field 1],filter(ALL(table3),Table3[MonthID]<=max(Table3[MonthID])),VALUES(Table3[Year]))

Reconstruct the WideWorldImportersDW database

$
0
0

Hi,

Using SQL 2016 Developer VS 2015 Community.

Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3

Following this tutorial : http://bit.ly/2fKcqrG

I'm stuck at Step 7 when I try to open the sln file : WWI_Integration.sln , I receive an error : "The selected file is not a valid solution file"

Any thoughts what the problem might be?

thx

w

SQL Count all boolean fields with TRUE in ACCESS 2016

$
0
0

I've a table containing a number of fields of various types.  There're over 10 fields of type boolean,  I need to count these boolean fields with "True" value.  Is there any query for the issue?

Thank you in advance.

NT100

a set has been encountered that cannot contain calculated members

$
0
0

While using the calculated member "YTD" from my dimension, I am facing an issue "a set has been encountered that cannot contain calculated members "

The confusion is that it works fine in SSAS 2008 when i use it as a filter. but in the higher versions, I am getting this error.

"a set has been encountered that cannot contain calculated members"

Here is my MDX query for calculating the YTD member in my time dimension.

aggregate(
periodstodate([Dim Time CCE].[CCE Calendar].[Fiscal Year],
StrToMember("[Dim Time CCE].[CCE Calendar].[Day].&[" + Format(now(),"yyyy-MM-dd")  + "T00:00:00]" )
))

Please help me resolve this as early as possible.

Thanks in advance


Deploy SSAS 2016

$
0
0

Dear Ms

I have solution in visual studio 2015 about SSAS tabular ,when I deploy it on SSAS server it give me the following error.

Failed to save modifications to the server. Error returned: 'Received unexpected non-null value in the column 'SourceProviderType' of the 'Columns' rowset.
'.

I will appreciate your quick feedback.

Thank you all


Duplicate a Time Dimension

$
0
0
In my current solution, there was added a 2nd DateId. So I would like to duplicate the time dimension, along with the named calculations and all the configuration. I copy the dim and try to added an existing item, but I get an error that cannot be loaded because it has the same ID. What exactly I have to change in order to have the same dim with different name?

USERELATIONSHIP SSAS 2016 Issues? Could it be me?

$
0
0

Hi,

I have upgraded my DEV environment to SSAS 2016 Tabular.  I have noticed that measures that worked perfectly in 2014 now produce odd/random figures.

I have isolated this to measures that make use of the USERELATIONSHIP function within a calculate function.  My DAX isnt that strong but these measures are very simple and function fine in SSAS 2014.

I have upgraded to 2016 CU2 but can find no reference to this issue anywhere.  Has anybody experienced similar issues?

Im not able to post much more but will follow up with the measures tomorrow when im at my desk.

Henry

Cross Active Directory Domain Access issues

$
0
0

Hello All

I have an issue at present which has been driving me a little bit insane.  Within our company we have a number of different domains.  The majority of people I work with (and business users) work on a certain domain (Let's call it UK for simplicity).

We have an SSAS 2014 MDX instance installed on a server that also lives within this domain and the instance itself and also running using a service account on the domain.

eg Server:  - server123.UK.company.ent .. Service user SSASService.UK.company.net .. and i am david.UK.company.net .. SQL Server Browser is running as a local service

My own account is permissioned to be able to browse active directory to see everyone within my domain only.

ISSUE:

Users on a different domain cannot access the cube ..  eg .. JoeBloggs.EUROPE.company.net.  they receive the following error: "errors in the OLE DB Provider. Could not connect to the redirector. Ensure that SQL Browser service is running on the 'server123' server"

We use AD groups to permission people. So most people belong to OurAccessGroup.FM.company.net .. So we added these Europe people to that group.  As i dont have access to browse their domain, I can only see a reference that they are in the group but cannot view their details.

I also manually added their permission by scripting their permission .. eg

<Alter ObjectExpansion="ExpandFull" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"><Object><RoleID>XXXXXX</RoleID><DatabaseID>XXXXXXX</DatabaseID></Object><ObjectDefinition><Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400"><ID>XXXXXXX</ID><Name>XXXXXXXXX</Name><Members><Member><Name>UK\OURGROUPROLE</Name><Sid>S-1-5-21-3992624814-4061582147-3480973501-1069154</Sid></Member><Member><Name>EUROPE\JoeBloggs</Name><Sid>S-1-5-21-1606980848-861567501-725345543-1584021</Sid></Member></Members></Role></ObjectDefinition></Alter>

So even thou i can't browse AD myself, i could still add the user.  However they still cannot access the cube

Does anyone have any experience of this?

Many Thanks , David


Cheers David

SQL/Excel Reprting, Turn into Cubes, one MD or Tab Model?

$
0
0

Hello,

I currently have an SSAS instance of a Tabular model, where I have several cubes which are loading Fact and Dimension tables via SSIS.

In taking SQL report code on a DW, wrap a Create Table statement around it, and putting the output into a single table on the DW, I want to source that data into a Cube. In this case, does the cube have to be a Multidimensional or a Tabular model?

I've already determined that the MD and Tab must have their own separate SSAS instance.

I'm trying to find a way to turn a large amount of regular SQL Report code to Excel File placed on a SharePoint/Share drive, into cubes, which can be published on a PBI Gateway, and move away from so much manual SQL/Excel. Should this process of cube building be done in a MD model, and not a Tabular model?

Thanks,
JPQ

Help me understand: Table relationships (Tabular Model)

$
0
0

Hi,

Hopefully someone can help me understand this issue.  I've got a tabular model with multiple fact tables and and two dim tables, as such:

  1. Fact - Orders
  2. Fact - Quotes
  3. Fact - Inventory
  4. Dim - Items
  5. Dim - Time

Each fact table contains an item key consisting of the item number + location + product code.  Each fact table is related to the Items table on this key.

The Items table contains a record for every item that has ever been set up in our system.

The Orders table contains a record for each order recorded.  Since we have items that have been set up in the Items table but never ordered, the items found in the Orders table is a subset of those in the Items table.

The Quotes table contains a record for each quote entered in our system.  Again, since we have items that were set up in the Items table that have never been quoted, the item items in the Quotes table are a subset of those in the Items table.  Similarly, since we have items that we quote that are not converted to orders, the items in the Orders table are a subset of the items in the Quotes table.

The Inventory table contains a record for each item that is held inventory at the end of each month.  We have items in Inventory that have never been ordered or quoted, so the items in the Orders and Quotes table are a subset of the items in the Inventory table.

Here's the part I'm having trouble understanding. When I load the model in Excel and set up a pivot table with Items in the Rows, Months in the columns, and Inventory Qty in values, I get a listing of all the items that have a corresponding entry in the Orders table along with their Inventory amounts.  Any items that are included in my Inventory table but not in the Orders table are all lumped into a (Null) record on the row field.

Is this expected behavior?  Does SSAS restrict the dimensions that it will return to the most restrictive join in the tabular model?  In this case, since the Orders table has the smallest subset of items, are the items found in the Orders table the only ones I would see in the tabular model output?

Thanks!

SSAS Tabular Model Delay on Each small change

$
0
0

Hello..!

I'm fairly new to SSAS Tabular model, when i'm trying to create hierarchy or alter a column or to the matter any small change to the structure seem to be slow. Is there any best practice on deploy/build/Mode that needs to be used while the model is under development? 

Issues with migrating from Analysis Services 08 - Analysis Services 16(Protocol error in TDS stream)

$
0
0

We are trying to migrate some of our old Analysis Services MOLAP cubes from Analysis Services 2008 to Analysis Services in SQL Server 2016. This server(which has Analysis Services installed, lets call it CUBE) is trying to pull data from a completely independent server(Relational database, lets call it RELATIONAL). CUBE also has an additional instance of Analysis Services in the form of Tabular.

Current Environment -


When processing the cube it fails midway with the following error(s).

"OLE DB error: OLE DB or ODBC error: Protocol error in TDS stream; HY000; Protocol error in TDS stream; HY000; Protocol error in TDS stream; HY000; Communication link failure; 08S01; TCP Provider: An existing connection was forcibly closed by the remote host.; 08S01."

Or

"OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionRead (recv()).]General network error. Check your network documentation.; 08S01"
Errors in the OLAP storage engine: An error occurred while the 'UserID" attribute of the 'DimUser' dimension from the 'Analysis' database was being processed.
Server: The current operation was cancelled because don’t drop anywhanother operation in the transaction failed"

So far i have tried these things and none of these have worked -

- disable Receive-Side Scaling
- set MTU to 1500
- disable TCP Connection Offload
- verify settings of TCP Chimney Offloading

- https://blogs.msdn.microsoft.com/ramoji/2009/12/30/ssis-package-fails-with-protocol-error-in-tds-stream/

I am not sure if there is any sort of version incompatibility that might be causing this. I am sort of running out of options and here to seek help. Has anybody faced the same challenges when trying to migrate? My gut feeling is that there is a small NIC change that might be the culprit but hard to say.

Any help would be greatly appreciated. Thank you!


SS


MDX: Get parent of leaves of ragged hierarchy

$
0
0

Hi all,

I'd like to return a set containing the parents of the leaves of a ragged hierarchy

eg

SELECT Measures.value on 0,
DESCENDANTS(strtomember(@param),,leaves).Parent ON 1
FROM CUBE

Obviously this doesn't work, but that's the logical behaviour I want (the @param could be [Dimension].[Hierarchy].[All] or a member at a lower level)

I can't just grab the first leaf member, grab its parent, get all the siblings and cross filter that against @param because it's a ragged hierarchy so the first member's parent might be below the leaf of another branch, be the leaf of another branch or be n levels above another branch.

Any tips?


Jakub @ Melbourne, Australia Blog

Difference Between SSAS and Power BI

$
0
0

Hi Guys,

I'm new to BI and I'm trying to understand what's the difference between SSAS and Power BI,

My initial impression is they provide same result such as graphs, dashboard & etc. Power is a cloud service whereas SSAS is hosted locally?

Also, not sure what's the Pros and Con of those tools. 

Lastly, on which instance should I choose from one to the other.

Thanks in advance for shedding some lights.


While selecting the Measure how to Exclude UnknownMember from Dimension

$
0
0

Hi All,

In date dimension i have performed nullProcessing that will convert null value of date dimension to unknown Member and now in Calculated Member i want to exclude that unknown member while selecting any measure.

e.g.

AGGREGATE( EXCEPT([Incident Date].[Calendar Date].[Calendar Year].[ALL]
,[Incident Date].[Calendar Date].[All].UNKNOWNMEMBER)
,[Measures].[Count of Features]
)

the mentioned expression does'nt work so do we have any other way ?

Thanks,

Zohaib


SSAS Tabular Process Error - partition override

$
0
0
Is the Override both the ConnectionString and query definition of a partition example onhttps://msdn.microsoft.com/en-us/library/mt697588.aspx valid? We tried it and it didn't worked for us.

{"refresh": {"type": "data","objects": [
            {"database": "tmtestdb","table": "sales"
            },
            {"database": "tmtestdb","table": "customer"
            }
        ],"overrides": [
            {"dataSources": [ // Bindings for Data Sources
                    {"object": {"database": "tmtestdb","dataSource": "contoso"
                        },"dataSource": {"connectionString": "Provider=SQLNCLI11;Data Source=localhost;Initial Catalog=contoso;Integrated Security=SSPI;Persist Security Info=false""
                        }
                    }
                ],"partitions": [ // Bindings for Partitions
                    {"object": {"database": "tmtestdb","table": "sales","partition": "2015"
                        },"partition": {"source": {"query": ["SELECT sales.salesamount, customer.customername FROM sales","JOIN customer on custKey = sales.custkey","JOIN date on date.DateKey = customer.OrderDate","WHERE date.CalendarYear='2015'"
                                  ],
                            }
                        }
                    }
                ]
            }
        ]
    }
}   

A terrifying issue with SSAS Tabular 2016 - Cannot re-deploy calculated table without erasing partitions

$
0
0

Dear Gurus

I just discovered a Nasty thing with SSAS Tabular 2016 which I find highly outlandish. I am sincerely hoping this is just a bad dream and that there is a work around for it.

When you have a cube with a Huge fact table (billions of rows) that is partitioned, of course when you need to re-deploy a newer version of your cube metadata thatdid not undergo any changes on your big Table. What you would do is use thedeployment wizard and tick the "Retain Partitions" option.

Now if you have a calculated table, and if at some point you have to change its code a bit, if you re-deploy the way described above it does not work... of course since you choose not to erase your partitions. So what you would do is go to the cube through SSMS, right-click on table then choose partitions to update the DAX yourself... with my calculated table I get the following:



Is this a "Feature" ? If there is a fix for this could you please provide me with directions ?

Many many thanks for your much appreciated assistance

Miloud

Viewing all 14337 articles
Browse latest View live


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