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

How to get the count of Transaction on date

$
0
0

Hi,

I have Transaction on date, I have measure with all the transaction. Now I need to get count of transaction on date.

How to get that in Cube.

Thanks.


the destination server is running a sql server edition that does not support proactive caching

$
0
0

we were in sql server 2014 SE . but we need of proactive caching so upgraded the server sql server 2014 EE.  when I try to enable the proactive caching I am getting error saying "the destination server is running a sql server edition that does not support proactive caching" does any one have any idea? pls help

Dates shown with fact dimension attributes and not date dimension attributes

$
0
0

Hi,

I have a built a cube which has 2 date keys in the fact table. I have a custom date dimension which is working fine in another cube. When I build the cube the date dimension is being picked up as I'm not being asked to create one.

When I expand any of the date dimensions (in the cube structure under dimensions) the attributes being show are the fact dimension attributes and not the date dimension attributes as I would expect.

Under dimension usage I am showing the date dimension measure group as "date key".

I have rebuilt the ssis package, refreshed the dsv, run full updates on all dimensions and rebuilt the cube numerous times. As I can't find anything on google relating to this I'm probably missing something really obvious. Can anybody help?

Thank you.

Totals issue when multi select on dimension or dimension hierarchy

$
0
0

Hi,

MDX is not bringing the correct totals when both dimension and its hierarchies are sharing the common level. Here is the one example with Adventure works with customer dimension. AggregatedMember is not considering the slicer expression with its hierarchy to filter the data. 

WITH 
MEMBER [Customer].[Customer Geography].[AggregatedMember] AS
  'Aggregate({[Customer].[Customer Geography].[State-Province].&[FL]&[US],[Customer].[Customer Geography].[State-Province].&[TX]&[US],[Customer].[Customer Geography].[State-Province].&[WA]&[US],[Customer].[Customer Geography].[State-Province].&[BC]&[CA]})'
SET [Provinces] AS
  '{[Customer].[Customer Geography].[State-Province].&[FL]&[US],[Customer].[Customer Geography].[State-Province].&[TX]&[US],[Customer].[Customer Geography].[State-Province].&[WA]&[US],[Customer].[Customer Geography].[State-Province].&[BC]&[CA]}'
SELECT
{ [Measures].[Customer Count] } ON COLUMNS,
NON EMPTY Union ( {[Customer].[Customer Geography].[AggregatedMember]}, Hierarchize ( { [Provinces] } ) ) ON ROWS
FROM [Adventure Works]
WHERE ( [Customer].[Customer].&[15566])

Actual Result:

 Customer Count
AggregatedMember3,829
British Columbia1

Expected Result:

 Customer Count
AggregatedMember1
British Columbia1

Please provide your insights on this.

Thank you,

Rajasekhar

Why everyone can access my Data Model?

$
0
0

Hi Guys,

I'm using SSAS 2012 Tabular Model. And I have created several data model (Cube). However, I find others can access my data models, all data models. I tested it via "runas", it's really working for any known users. But I haven't create any role and they are not in my SSAS Administrator (I checked it in the SSAS--Properties--Security).

What should I do next?

Checking Administrator Group on my server? If there is a user have administrator permission on my server, but not in SSAS Administrator, can it access my data model?

Thank.

passing parameter to link to other report

$
0
0

hi,  below <g class="gr_ gr_43 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="43" id="43">ssas</g> data set which populates a chart  and wants to pass a parameter Year to link to another chart  in ssrs so what I have to change. anyone can help, please. 

this is the code for the first chart:

SELECT NON EMPTY { [Measures].[Fact Loan Behaviour Count] } ON COLUMNS, NON EMPTY { ([Dim Time].[Year].[Year].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Loan Behaviour Data Warehouse] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

this is the code for the first chart:

SELECT NON EMPTY { [Measures].[Fact Loan Behaviour Count] } ON COLUMNS, NON EMPTY { ([Dim Time].[Year].[Year].ALLMEMBERS * [Dim Custormer Information].[Education].[Education].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( STRTOSET(@DimTimeYear, CONSTRAINED) ) ON COLUMNS FROM [Loan Behaviour Data Warehouse]) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS SELECT NON EMPTY { [Measures].[Fact Loan Behaviour Count] } ON COLUMNS, NON EMPTY { ([Dim Time].[Year].[Year].ALLMEMBERS * [Dim Custormer Information].[Education].[Education].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( STRTOSET(@DimTimeYear, CONSTRAINED) ) ON COLUMNS FROM [Loan Behaviour Data Warehouse]) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

Can't display Partition Property "Source" in Management Studio

$
0
0

Hello,

After upgrading my SSMS to 13.0.15700.28 I'm unable to display the source property of an SSAS cube partition (when clicking the button to the right of the property value). I'm currently using SSAS 2012.

When I try to do so, I get an error saying "Object reference not set to an instance of an object".

Is this no longer supported?

Thanks,

Cannot process cube while add attribute to existing dimension in cubes using AMO

$
0
0

Hi There,

i am trying to add attribute to existing dimension. after that i am process the cube but it gives me error:

Internal error: The operation terminated unsuccessfully. Errors in the high-level relational engine. The data source view does not contain a definition for the column.

i am trying to do thins thing using code.

When i drag & drop column from dsv to attribute using design view, and process that dimension. Its working.

but how to achieve that using code AMO.


How much memory is needed during tabular model processing?

$
0
0

Hi Guys,

On my tabular instance I have a cube of about 50gb. When the processing starts the msmdsrv.exe occupies more than 200gb and sometimes runs out of memory.

So what is consuming so much memory? How do I calculate the memory requirement?

Thanks.


Please specify your SQL Server version while posting questions
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue

Nested Rank Function

$
0
0

Hi,

I need help with slow MDX calculation which involves calculating RANK of an employees on various measures. Please find below steps followed for calulation

1) Calculating Year to date of some base measures.

2) Calculating Rank of an employees by 3 different measures i.e.,

RankByWorkitemRANK([DimUsers].[UserID].CurrentMember,[DimUsers].[UserID].[UserID],[Measures].[WorkItemYeartodate])

RankBySLAPerformance=RANK([DimUsers].[UserID].CurrentMember,[DimUsers].[UserID].[UserID],[Measures].[SLAYeartodate]) 

RankBySurveyScoreRANK([DimUsers].[UserID].CurrentMember,[DimUsers].[UserID].[UserID],[Measures].[SurveyYeartodate]) 

3) Calculating rank score by giving some weight-age to each rank

YearToDateRankScore = 60% of  RankByWorkitem +  20% of RankBySLAPerformance+ 20% of RankBySurveyScore (This calulation will return some number)

4) Then again calculatingfinal rank based on above calculated value.

RANK([DimUsers].[UserID].CurrentMember,[DimUsers].[UserID].[UserID],[Measures].YearToDateRankScore) 

When i try to access last (i.e., Final rankmeasure) in an MDX query it is taking lot of time (around 15 min ).

Any help is appreciated on how to improve the performance or any alternate method to do the above calculation may be using some other function in MDX or some other means.

Note :- There are couple of many to many relationship between the tables.

SSAS Tabular Model Repeated Data

$
0
0
I have below tables in my tabular model

product table( productid,active)

product group table(productid,height,type)
orders table( orderid,productid,price,volume)

There are measures on the orders table to calculate like sales,count of parts with orders etc.

When I try to extract the below from excel by connecting to the tablular model. It shows me repeated data.


For example if I extract the below attributes it will show the data like this

productid,type
1             1
              2
              3
2            1
              2
             3
3            1
              2
              3

This is giving repeated data for type attribute. However If i drag a measure I do not see any repeated data. How can I fix this withoutout
adding any measure to avoid the repeated data.

Copy database wizard

$
0
0

Hi, 

I have an instance SQL Server 2008 SE (10.0.55.00) with 12 databases. I want to copy it on SQL Server 2014 SE (12.0.4100.1).

I want to use the copy method to identify and clean SQL problem on this old databases (like trigger not compiling, view with depreciate server linked, ...) and to implement a weekly refresh by SSIS during the transition period.

 10 of this databases was migrated with some problems but not blocking one. I still have 2 databases crash during the copy (strange timeout error).
 Finally, I decide to backup/restore them on SQL 2014 and try to copy it on the same instance. 

Both of them continue to crash during the copy process with the error  "Cannot drop database "DB1" because it is currently in use" 

Source:        SQLISPackage120

Event ID:      12550

Message: Cannot drop database "DB1" because it is currently in use.

StackTrace:    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.SqlServer.Management.Smo.Transfer.ExecuteStatements(SqlConnection destinationConnection, IEnumerable`1 statements, SqlTransaction transaction)
   at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
   at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()


SSAS DB Synchronization failure

$
0
0

Hi all,

I have a sync DB problem between two SSAS 2014 instances that I cannot fix for some time.

Environment:

- Source SSAS instance is on standalone SQL. Version 12.0.4100.1. VM. OS is Win2012R2.

- Destination SSAS instanse is on clustered SQL. Version 12.0.4100.1. SQL cluster consists of two VM nodes (guest cluster). OS on nodes is Win2012R2.

- Source SSAS VM and Destination primary node VM are on the same HyperV cluster node. Host node is Win2012R2.

- IP of source and destination are on the same sublet.

- Both source and destination SSAS instances are in the same AD domain, are running under the same AD service account. Service account and AD account that started the job have administrative permissions on both SSAS instances.

- No Firewall between source and destination SSAS.

Problem:

A DB sync process is performed on a daily basis. The process fails randomly. Sometiomes it is ok, and sometimes it fails.

I have cached traces at the time of failure on destination SSAS:

Progress Report Error    39 - Synchronize    Synchronization failed.

Error The following system error occurred:  An existing connection was forcibly closed by the remote host.  An error was encountered in the transport layer. An error was encountered in the transport layer. Backup and restore errors: An error occurred while synchronizing the '<db_name>' database. An error was encountered in the transport layer. An error was encountered in the transport layer. An error was encountered in the transport layer. An error was encountered in the transport layer. An error was encountered in the transport layer.

Severity - 3

Error -1056112631

Any suggestions will be appreciated.

Thanks!


SSAS Tabular the hierarchies are not visible on perspective

$
0
0

Hi,

I've this problem and I don't know how resolve it.

I've starting using ssas tabular on SQL 2012 (11.0.5058.0)

I've some Dimensions with Hierarchy. On default view when I browse Data (Excel, SSMS) all works fine.

I've added a perpective. When I browse datas in this perspective none hierarchy is visible! I checked all option, I don't undestand.

Can you help me please?

Thanks


Error XMLAnalysisError.0xc10e0002

$
0
0

Hi, 

I'm trying to configure the HTTP Olap, But im getting this error. I'm using windows authentication.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>XMLAnalysisError.0xc10e0002</faultcode><faultstring>Parser: The syntax for 'GET' is incorrect.</faultstring><detail><Error ErrorCode="3238920194" Description="Parser: The syntax for 'GET' is incorrect." Source="Unknown" HelpFile=""/></detail></soap:Fault></soap:Body></soap:Envelope>

Greetings,


SSAS Tabular report for User Queries log

$
0
0

Hi ,

I want to extract a report based on the queries my users are running against the tabular model. The users are connecting to tabular model from excel sheet and applying different filters for running the report.

What is the best way to trace this on the production Analysis server.  Based on this report I want to find out which filters applied by the user are taking long time for extracting the details. Are there any logs stored for the user queries.


Deploy permission for cube

$
0
0

Hello all,

i have a cube that i can deploy it to DEV box with out issues.

but when i try to deploy the same cube to Prod box i cannot . so my DBA added the database in prod and in themembeship added me, the role has full control . still no sucess

"Errors in the metadata manager. Either the database with the ID of 'Xfit' does not exist in the server with the ID of 'XXXXXX_servername', or the user does not have permissions to access the object.
"

can any one suggest what i need to do please ?


Modfying Paramaters for SSRS / DateRanges

$
0
0

I have an SSRS report which I have built against an SSAS Cube. I've successfully modified the three cascading paramaters to be used prior to the date range From and To.

The To will be set to the close of last month (8/31/2016) and the From will be 1 year from the ending date no matter what the end user can select.  How do I default the selection only to be 12 months from the end period in the MDX using SSRS.


KDW

Upgraded SQL Server - Reporting Services no longer includes Refresh for Report Dataset

$
0
0

Been using SSRS for few months.  Recently upgraded SQL version to 11.0.5343 (SP2?).   In my prior version, the Report Dataset properties used to contain a 'Refresh' button that actually worked.  Now when opening Dataset properties for this version, there is no Refresh button.  Now, when adding a new field to the Dataset query, the Report dataset will not refresh to include this new field.  I have tried many workarounds suggested online but have not found anything simple to make work. 

I have tried to refresh by running the dataset query, but the dataset includes several parameters & when entering values, I get a .net permission issue (CLR type does not exist or you do not have permission to access it).   What happened to Refresh in dataset properties?  Any help is appreciated. 

Help with Cube -- Data Rollup Question please and thank you

$
0
0

Hello,

Here is a simplified version of my issue

Table A)

  • Field Key
  • Field (Money) - TotalInvoice

Table B)

  • Field Key
  • TableAFieldKey
  • Field (Money) -- InvoiceLineItemTotal
  • Sku

I then created a Measure / Fact Table like this

  • TableAKey
  • TableBKey
  • TotalInvoice
  • Sku
  • InvoiceLineItemTotal
  • InvoiceLineItem

But what happens is, for each Invoice that has more than 1 LineItem in TableB

I get

TotalInvoice   InvoiceLineItemTotal TableAKey TableBKey Sku       InvoiceLineItem

100               50                            123           123          AAAA     1

100               50                             123           456         BBBB     2

Which looks great.

However in Excel or BIDS or anything else.. when I try to look at the data, what I sent to see are the 3 line items, which DO add up to the TotalInvoice... but what ends up happening is, I get that, BUT if I include the TotalInvoice Field as a Measure, it gets Totalled up..

So the Total is actually 3 times what it should be.

I can get around it by NOT including TableA and TableB in the same Cube (as measures)... in the same Power Pivot etc.

Is there a way to make it automatically (SSAS level) so that the TotalInvoice would only stay whatever it was in the TableA and it would NEVER be "Summed"

Man I hope that makes sense

What I end up seeing

TotalInvoice (total)   InvoiceLineItemTotal (Total)

200                         100

Versuus

100                         100

Thanks!!

Viewing all 14337 articles
Browse latest View live


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