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

Not able to see 'Process Index' Option in 'Analysis Service Processing Task' to process SSAS cube partition.

$
0
0

Hello ALL,

Previously while configuring the 'Analysis Service Processing Task' to process SSAS cube partition, I was able to select 'Process Index' Option. and there are total 6 options to select such as Process Default/Full/Data/Clear/Add/Index.

I have deployed the same SSAS DB (solution) with different name in the same server and when I am trying to select 'Process Index' Option, it is Not available. and only 4 options to select such as Process Full/Data/Default/Clear.

Is it because my SSAS DB is newly deployed and it has not been processed even single time?

Please guide with why it is so?

Many Thanks,





Calculated Measure in SSAS based on measure group attribute

$
0
0

Hi, 

I have a deal fact table in my cube and am counting the distinct deals by dealnumber using the distinct count function on cube structure --> measures pane, from the measure group. 

I need to exclude deals where dealtype = x in the distinct count. 

Can I do this in calculated measure?

Thanks,

Sushma

Filter a tabular cube to have only rolling last 24 months of data only

$
0
0

Hi,

I have a report based on a perspective and its pretty slow because of a very big fact table.

What is best approach to solve this issue and make the cube smaller please??

This cube has three tables-dimcalendar,facttotals and dimcountries.

Does creating a new perspective with a new calculated calender  table that will have data only from rolling last 2 years will work??

So can someone help me with an idea as how I can get that set up please?

Thanks a lot in advance :)

Jenni




How to put Asterisk (*) in format_string to have it working in excel (for right text alignment)

$
0
0

hello everybody

Format string

;;;* @

In excel delivers right alignment for text values

The problem is when we apply the expression to format_string everything after  the asterisk (*) is being removed from the final format string (visible in excel) so we have 

;;;

And further more it looks like the same thing occures for any format_string with asterisk: everything after the asterisk is being removed.

Thanks in advance about any ideas how to get the asterisk(*) back again or have the right alignment formatting for text values


Sergey Vdovin

SCD type 2

$
0
0
How do we find record that yesterday date using SQL Query SCD type 2?

Get All Linked Member using LinkMember function

$
0
0

Please consider this structure:

Fact:

Sender           Receiver         Amount
----------------------------------------
Reseller1        Resseler2        100 
Reseller1        Resseler3        200
Reseller3        Resseler1        150
Reseller3        Resseler2        50
Reseller1        Resseler4        100
Reseller4        Resseler2        350
Reseller4        Resseler1        500
Reseller4        Resseler3        250

DimReseller:

ResellerCode            ResellerName
---------------------------------------
1                        Reseller1
2                        Reseller2
3                        Reseller3
4                        Reseller4

DimReseller is role-playing dimension and has 2 relation with fact table:

Now I wrote this MDX query to select How much money the resellers have paid each other:

WITH MEMBER SenderAmount AS
[Measures].[Amount], FORMAT_STRING = "Standard"


SELECT    {SenderAmount} ON 0,
NON EMPTY [Sender].[Hierarchy].MEMBERS ON 1
FROM [MyCube]

and I get this result:


Now I want to get how much money the resellers have received from each other and I wrote this query:

WITH 
MEMBER SenderAmount AS
[Measures].[Amount], FORMAT_STRING = "Standard"

MEMBER ReceiverAmount AS
  (LinkMember   
     ([Sender].[Hierarchy].CurrentMember, [Receiver].[Hierarchy])  
     ,[Measures].[Amount]), FORMAT_STRING = "Standard"


SELECT    {SenderAmount, ReceiverAmount} ON 0,
NON EMPTY [Sender].[Hierarchy].MEMBERS ON 1
FROM [MyCube]

and get this result:

I got null for receive amount. I test this MDX query:

select {LinkMember([Sender].[Hierarchy].[Reseller Code].&[1], [Receiver].[Hierarchy])} on 0
from [MyCube]

and I get 650 (the correct amount) for Reseller1 .Now when I change the query this way:

select {LinkMember([Sender].[Hierarchy].currentmember, [Receiver].[Hierarchy])} on 0,
[sender].[Hierarchy].members on 1
from [MyCube]

I get this result(Again for paid):

and when I change the query this way:

select {LinkMember([Sender].[Hierarchy].currentmember, [Receiver].[Hierarchy])} on 0,
[receiver].[Hierarchy].members on 1
from [MyCube]

I got this error:

The Hierarchy hierarchy already appears in the Axis0 axis.

How can I get this result?

Reseller              Received                   Paind                     
--------------------------------------------------------
Reseller1             650                        400
Reseller2             500                        (null)
Reseller3             450                        200
Reseller4             100                        1100

Sorry for too much explanation...

Thanks

Looking for a ssas developer urgently

$
0
0

Hi everyone I'm looking for a ssas developer for a user segmentation the work is remunated

Please let me know if you are interested 

Marie

How could I use AWS S3 as a datasource to on-premise SSAS (Tabular)?

$
0
0

We tried importing Snowflake data into SSAS Tabular (through ODBC) and the performance is just atrocious, unusable.

Someone suggested dumping the data from Snowflake to S3, and then importing the data from S3 to SSAS.

Is it possible to import S3 data into SSAS (on premise)?


Eric Mamet _ MCDBA, SQL Server 2005 MCTS, MCAD .Net


Problem in processing tabular model table in SQL Server

$
0
0

We are using SQL server Management Studio 17.1 and Visual Studio 2015 for deploying and processing the tabular model. We are able to deploy and process cube in Visual Studio but while processing model in SSMS, we are getting the below mentioned error for a particular table. 

"Failed to save modifications to the server. Error returned: 'An unexpected error occurred (file 'tmmdmodeltm.cpp', line 8772, function 'MDModelTM::CreateHierIterRequest'). The current operation was cancelled because another operation in the transaction failed."

We looked around for solutions to this problem and found that people were using the old versions of SQL servers which had issues related to SP. Previously we were deploying our cube in SSAS version "13.0.1782.2" and now we have switched to version"13.0.4410.0" and still facing the same problem. 

Please help us in resolving the issue.

SSAS Tabular Model 1103 unable to connect MSDASQL provider for Hana Database

$
0
0

Hi, I am working on connecting a hana database through SSAS Tabular Model of 1103 compatibility level from SSDT version 10. Test connection works fine with the following string

Provider=MSDASQL;Persist Security Info=False;User ID=XXXX;DSN=XXXX

But when deploying the model to a SQL 2017 version SSAS Instance, table processing fails for the following error:



The driver and connecting in 64 and 32-Bit ODBC Administrators are set and connecting successfully. 

Also if I try to check the connection in SSMS I get the following error:


VAISHALI SINGH

Adding new multiple measures under existing measure group in single go ?

$
0
0

Hi,

I'm trying to add new measures under the existing measure group using SSDT/BIDS. Measure is already exist on the table in the in relational database and now adding on the MG.

In the New Measure option I can just able to select single measure at a time, I've to add new 50 measure on existing measure group.

I'm looking way to select multiple measure at a time from the list just like when we create new measure group?.

SSAS-BIDS-NewMeasure


MDX Dynamic dimension filter based on value of other dimension

$
0
0

How can I filter using values from two dimension in MDX?

The required result should include records where [Purchase Date].[Date] is before today minus number of years from[Accounting Date].[Year]. So, the result should include YoY records from today based on[Purchase Date].[Date] for each [Accounting Date].[Year] member.

I would like something like the following:

 SELECT NON EMPTY [Measures].[Amount] ON 0,
 NON EMPTY [Accounting Date].[Year].[Year].ALLMEMBERS ON 1
 FROM [Tabular_Model]
 WHERE (
    NULL :
    STRTOMEMBER("[Purchase Date].[Date].&["+ Format(DateAdd("YYYY", [Accounting Date].[Year].CurrentMember.member_key - 2020, Now()),"yyyy-MM-ddT00:00:00") + "]")
 )

But it fails with error: Execution of the managed stored procedure DateAdd failed with the following error: Exception has been thrown by the target of an invocation.Year, Month, and Day parameters describe an un-representable DateTime.

SQL 2014 OLAP Cube - Dimensional Attribute Writeback

$
0
0

Hi,

I have a SSAS cube presented in Excel, I need to add a action comment field/attribute to be populated in cube/pivot

please help on setting this up, I know its not the purpose of cube but its a key request on the project.

as it would not only store the actions but also review what was actioned for the specific line etc

please help

regards

SSAS 2008 taking all server memory

$
0
0

We just upgraded to SSAS 2008 64 bit (and windows 2008 R2) a couple of weeks ago and now we have an issue that I can't seem to figure out.  Our cubes have not changed at all.  Previous to the upgrade we were running server 2003 and SSAS 2005 54 bit.

The issue is over the past week the SSAS servers have decided to take up almost all the memory (about 90%) on the server and render itself useless.  It is the SSAS service that is taking up almost all the memory and if I stop other services to free up some it just takes that up too.  So here is a break down of the issue and what I have tried.  The issue seems to be happening faster and faster now so I am at a loss currently.

Setup that has issue:

  • SSAS 2008 SP1 64 bit on SQL 2008 R2
  • Default configs as that worked previously in 2005
  • not structure changes
  • machine has 2 quad core procs and 16 GB mem
  • accessed via web calls and linked server on SQL server on different machine

What I have tried

  • install CU10 (due to other issue)
  • rebuild aggregations
  • reduce memory limits to 40% for low and 50% for max respectively

Results of what I have tried so far: memory still hits the 90% within 24 hours so that tells me the changes have done nothing.  I don't know what to do. 

I know that there are DMVs now in 2008 but have no idea how to access them. Is there anyway to find out what is taking up all the memory?  I am trying to find out if it is something in the website code that access the machine because when I point the websites to another SSAS machine (which eventually gets the issue too) the memory clears out after 15-20 min.

Any help would be greatly appriciated.  I am trying to avoid calling Microsoft unless absolutely necessary but it is on the options list.

 

Can we do transformation in Multidimensional Model?

$
0
0

Hello Everyone,

I am new in Multidimensional model. But, I am familiar with Tabular model.

We can perform transformation like calculated columns and filtering the data in Tabular Model table. 

Can we do the same in Multidimensional Model?

I didn't get the concrete answer on Microsoft sites- 

But, I have visited the below site

https://blog.pragmaticworks.com/ssas-tabular-vs.-ssas-multidimensional-business-logic

Thanks in advance,



In Multidimensional model, is the data pre-aggregated for all the dimensions and store that data in a Cube?

$
0
0

Hello Everyone,

Consider, the below scenario

DimEmployee

DimDepartment

FactSalary

DimRegion

DimDate

So, my question is FactSalary data pre-aggregated for all dimensions?

EmployeewiseSalary

DepartmentwiseSalary

RegionwiseSalary

DatewiseSalary

Does it store the data of all Permutation and Combinations?

Suppose, I am seeing the data based on Department and Employee and then I have applied the filter of Region.

So, does this data is pre-aggregated and stored in a cube or it will calculate at run-time?

Error deploying SSAS cubo

$
0
0

Hi, everyone.

I'm facing a issue when a try to deploy a SSAS project.

See the messages below:

"OLAP storage engine errors: The source measure group from the linked measure group 'Sale' was not found"

"Metadata manager errors. An error occurred while loading 'Sale' measure group, through the file '\\? \ C: \ Program Files \ Microsoft SQL Server \ MSAS14.MULTIDIMENSIONAL \ OLAP \ Data \ 70-768ch1.0.db \ Wide World Importers DW_DM.0 .cub \ Sale.4.det.xml"

But the sale measure group is in fact there in my SSAS Multidimensional cube.

Does anyone have any idea of what should i do solve this problem?

Either the user does not have access to the database, or the database does not exist

$
0
0

When I try to use "usage based optimization" i receive a messagge "Either the user (SERVER/ADMINISTRATOR), does not have access to the database, or the database does not exist" (analysis services 2005)

 

My olapquerylog table is created and it is working well (the table is collecting the data).

 

Any idea of what is happening and how can i fix it?

 

Another question:how can i convert the data in dataset column of olapquerylog table (0,1,0,0,0,etc..) to see it like we can see in profiler when we choose Query subcube verbose event? (dimension1, dimension2, etc...)

 

It is because of i want to made a cube to see who is viewing my other cubes and what queries are they doing...Any suggestions?

 

thanks

 

Jose A.Aznar

 

How do I add rows from another source to be used in calculations with my original source in Tabular Model?

$
0
0

I'm having an issue trying to figure this out.

I have 2 SQL sources:

  1. My main source for cost data with a couple hundred thousand rows
  2. Another source containing vehicle data which have finance related columns ("sell value" for example) which are only one row per vehicle. 

I want to merge the finance columns (2) with my cost data (1) ignoring the date restrictions my initial DAX requires for costs analysis (startdate and enddate which the user specifies). 

Example - The user specifies: 

start date = januari 2019 and end date = last december 2019, this filters out all costs for 2019. User sees all types of costs (which is a column in main source (1) called CostType) in a bar chart for all vehicles having costs in 2019. 

So far so good. Now I want to add the "sell value" from all vehicles in the scope (2019) from my vehicle source (2) and also put the "sell value" within a specific type of cost (one of the bars in the chart).

Anyone know how I could accomplish this?

Unable to start SQL Server Analysis Services

$
0
0
Hi all,

As per issue title, suddenly I'm unable to start SQL Server Analysis Services. This isn't the case when I was able to do so earlier this year. I tried to get help via Microsoft Virtual Agent but there were no real solutions. The error messages below as your reference. Appreciate anyone's assistance to take a look into this issue.

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 system specs below as your reference.

Windows Edition: Windows Server 2012 R2 Standard
System Type: x64
SQL Server Edition: MS SQL Server 2012

Best regards,
Yea Han
Viewing all 14337 articles
Browse latest View live


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