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

SSAS Parent-Child relation

$
0
0

HI,

my fact table contains foreign keys for two dimensions containing parent child relation.

i have setup the dimensions usage type as Parent for both the dimensions, which actually makes both dimensions dependent on each other to roll up the data.

Could anyone suggest how i can make them work independently or any other alternate solution

Thanks,

Ajay Dhanwani


YTD Calc for all measure

$
0
0

Hi ,

I have created the below YTD calculation in the cube for one measures 'Actual' instead of that I want to create one YTD calculation in the cube for all the measure which I can view in my excel sheet pull from the cube . can some one share the document which I can refer to for my YTD calc in cube

CREATE

MEMBERCURRENTCUBE.[Measures].Y_T_D

AS

Aggregate(PeriodsToDate(

               [SUB DIM CALENDAR].[Hierarchy].[Fiscal Year],

               [SUB DIM CALENDAR].[Hierarchy].currentmember

                        ),[Measures].Actual

                        )

we have below mdx in the mdx query to get the YTD for value but we want to do same calculation in the cube which we can test in excel sheet . I am not able to create member YTD on time dimension with YTD calc ..

MEMBER [SUB DIM DATE ].[Fiscal Year Hierarchy].[YTD] AS (
        Aggregate(PeriodsToDate(
               [SUB DIM DATE].[Hierarchy].[Fiscal Year],
                          [SUB DIM Date].[Hierarchy].currentmember
            )
        )
)

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 

cannot start analysis server service: Event ID xx from source MSOLAP$LocalCube cannot be found

$
0
0

Something went wrong with my analysis server service this morning, don't know the cause and I am not able to start analysis server service from services or from SQL server configuration manager. I see this error in the event log, and assume this is related to the issue. Please advise on what need to be done.

Error:"

The description for Event ID xx from source MSOLAP$LocalCube cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: ..."

Downgrade SQL Server 2012 Edition (Ent to Std) with SSAS

$
0
0

We got SQL Server 2012 with SSAS running on Enterprise Edition and we need to downgrade it to Standard Edition. We need to uninstall SQL Ent and re-install Standard Edition.

I am looking for instructions around backup, restore and post-restore checks of SSAS ?


SSAS 2014 Tabular and OLAP - Who deployed database or cube

$
0
0

We have a shared environment with several cubes both Tabular and OLAP.  Some of them do not have any roles defined.  I cannot seem to find out who deployed the cubes or databases.  Is there a way to find out?

Creating a Derived Column using IF condition in tabular model

$
0
0

Hi 

I am trying to create a derived column in a tabular model using DAX. I have two tables A and B. The derived column which I want to create should have the following condition

=IF(TableA[ID] = BLANK(),TableA[clr_id],IF(TableA[ID]<> BLANK(),TableB[clr_id]))

How can I create a derived column using this DAX formula

Thanks in advance...

PBI & SSAS Tabular - finetuning the model - see what are the SSAS attributes that are being used

$
0
0

Hello

Is there any tool that allows to see what are the SSAS Tabular model attributes that are being used in several PBI Desktop files?

this way the unused ones can be taken care, like removed....

Regards


How to speed up SSAS Model Processing?

$
0
0

We currently have 2 separate VMs in our Production environment. 

1. Processing Server - This is where models gets processed. No reports/dashboards point to this server so it's not user facing.

2. Reporting Server - Models from the Processing Server are synchronized with this server. All reports/dashboards point to this server. 

One of our data models has 50M records and takes about 30-40 mins to load data and process and causes CPU to be 100% during this time. It does a full truncate and load of data right now and full processing because data can pretty much change for any period so there's no clear partitioning logic that can be added. While we are still looking to see how we can optimize that, what I wanted to know is whether any hardware reconfiguration would help speed up processing.

Our Processing server currently has 4 Cores x 1 socket and 64GB RAM. Would changing the configuration to 2 cores x 2 sockets help in any way?

Filtering a measure according to the values of another filter

$
0
0

Hi,

I have a tabular model with a Fact table connected to 2 time dimensions (Load Date and Transaction Date).

Is there any way to build a measure that will use the values filtered by the user on Transaction Date and apply the filter on Load Date?

The reason is that i want to display only one time filter in my Power BI report but need some of the measure to filter on the other time dimension (using the same values filtered).

Thanks!

Through IIS manager not able to connect to Analysis Services in 2017 version

$
0
0
Through IIS manager not able to connect to Analysis Services in 2017 version

http://server_name/olap/msmdpump.dll is not working while connecting to SSAS 2017 version, till 2016 version it's working fine

Project Burndown help

$
0
0


I'm trying to make a burndown report and here is some sample data. I'm having trouble getting what I'm going for (I have a model in ssas, this is just data in pbi because it was easier to sort this way).

As you can see through the versionWeek column, the initial plan was created and then was altered 7/28. 

Here is what I'm trying to get. Everything is summed when it comes after the week start but before the next version of a certain week comes out. So looking at the sample data the 7/14 version week hoursPlanned area all summed until 7/28 when the new version of the last couple weeks shows up.

The "Burndown" column is my goal here.

Thanks in advance.

How do I find the source of a Cube object?

$
0
0

My user is reporting that the boolean Y/N data in the Vendor's Spend Flag is not fully populated.  I want to work my way back to the underlying tables to investigate.  However, I have never worked with cubes and tabular data.

I was able to connect to the SSAS server, using Excel, and replicate the user's issue.  So, since Excel does not map the field names to the underlying tables, I connected to the SSAS server and found the tabular spend database without too much trouble.

I then started an MDX query window which shows me the Vendor Details with the Spend Flag that my user says is not properly populated (when compared to the Oracle source table). 

This is where I get stuck.  This Spend Flag comes from somewhere, but I cannot figure out where?  I have not found any properties, queries, etc. that show that Vendor Details Spend Flag maps back to dbo.Vendor.SpendFlag, for example.

How do I get from the SSAS database (MDX view) back to what populated it?

Thanks for any help.

Rob

Conditional RLS - show everything when condition leads to blank or NULL

$
0
0

Hi,

I have a RLS implemented based on line of business in my org. I have User table and Data table with LOB setup and joined properly. 

= Deals[Line Of Business] = LOOKUPVALUE(UserInfo[LOB],UserInfo[UserName],USERNAME(),UserInfo[LOB],Deals[Line Of Business]). With this it works fine perfectly, when a user belonging to one or multiple LOB's data is shown accordingly.

Now question is - Managers and above category will not have LOB's defined, they would like to see every LOB values, when they login to Power BI. I tried modifying DAX to below:

= Deals[Line Of Business] = IF(ISBLANK(LOOKUPVALUE(UserInfo[LOB],UserInfo[UserName],USERNAME(),UserInfo[LOB],Deals[Line Of Business]),

ALL(Deals[Line Of Business]),

LOOKUPVALUE(UserInfo[LOB],UserInfo[UserName],USERNAME(),UserInfo[LOB],Deals[Line Of Business]).

But when Manager logs in, it doesn't show anything. Since LOB returned is NULL for Manager.

Can some one guide me the right DAX to be used in my case? When ever LOOKUP returns NULL, I want to show all the data.

Thanks

Manoj

Timeout processing SSAS Tabular Module using Linked Server in Transact SQL

$
0
0

Hi,

We are currently processing tabular modules using a command similar to below for Transact SQL.

EXEC ('{    "refresh": {      "type": "full",      "objects": [        {    "database": "mydatabasename",         "table": "Calendar"        }}  ]    }  }  ') at [SSAS-LINKED-SERVER]

[SSAS-LINKED-SERVER] is a linked server to the machine running SSAS.

I need to be able to prcoess the models from transact SQL so we cannot use other tools like SQL Agents SSAS command tools.This works fine for smaller models. If however the processing time reaches exactly 22 minutes (1320 seconds) the process terminates with the following:

"The connection timeout was exceeded.".

"An error was encountered in the transport layer.".

I don't believe it is caused by any of the standard timeouts as all the SSAS ones are set to 60 minutes and the linked server remote call timeout are set to 10 minutes (all defaults).

It is strange that it's timing out exactly on 22 minutes every attempt.

Can anyone shed some light on where this other timeout might be?

Regards.

Simon.


Measure location for query-generated SSAS tabular calculated table

$
0
0

I am using a calculated table called Query_SuppliesUpdate in SSAS Tabular 2016 with a query like this:

SUMMARIZECOLUMNS("Budget PQM1", [Budget PQM1],"Budget PQM2", [Budget PQM2],"Budget PQM3", [Budget PQM3],"Budget PQ", [Budget PQ]
)

My materialized summarizecolumns query will return:

1    1   1    30000

where [Budget PQ] = [Budget PQM1]+[Budget PQM2]+[Budget PQM3]

Somehow the incorrect Budget figure returned by Query_SuppliesUpdate is multiplied by 10000 times, for no reason I can fathom.

Yet, if I move the measures to the Budget Fact table the results are, correctly:

1    1   1    3

I've tried invoking relationships in the table query, processing the model in different ways & sequences, and all kinds of queries but I cannot understand why I cannot get the correct results when using measures placed in other tables. I've always understood that measures can be placed anywhere. It seems not. Any help appreciated.

UPDATE: A Process Clear followed by a Process Full has no impact. However deleting the model and redeploying w Process Full reduces the number of measures where this occurs, but doesn't eliminate the problem.

I've created a small example here:

https://www.dropbox.com/s/hvusvaqf3xg6f3u/Example.abf?dl=0




SSAS Process to refresh / import data not working unless doing process full

$
0
0
I have an SSAS database which need to refresh daily to populate fresh data. My understanding was that Process default will get the fresh data but I am noticing that the only way to get the new data is by doing Process Full.Process full is requiring lot of memory and occasionally it is failing with error saying not enough memory. Any help is appreciated.

Model with unrelated tables

$
0
0

Hi,

 

Today I came across a modeling that I did not understand.

I opened a data warehouse project with the following tables:

Dimensions:

- Dim_Store

- Dim_Date

- Dim_Customer

- Dim_Location

  Fact:

- FactSales

The fact  FactSales is relating to the above dimensions, so far ok. 

But when I open the project in SSAS there are four more tables that do not make any kind of relationship.

Can this scenario happen?

_Thanks


Keny Maciel da Silva DBA SQL Server MCSA - Administering a Microsoft SQL Server 2012/2014 Database MCSA - Querying Microsoft SQL Server 2012/2014 MCTS - SQL Server 2008, Installation and Maintenance Email: kenymaciel@gmail.com

[Microsoft][ODBC Driver Manager] driver issue

$
0
0

Hi Team,

Trying to connect to Postgres from Tabular cube using VS 2010 32 bit.

1)  Configured the DSN for the postgres and tested the connection, it is successful.

2) Configured Tabular cube "Import from DataSource" using the DSN and tested the connection, it is successful.

3) When trying to call a function from the Postgres DB, getting below error,

"OLE DB or ODBC error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified; IM002.

A connection could not be made to the data source with the DataSourceID"

Please suggest.

Cheers

SSAS Cube : De-duplication of facts

$
0
0

Hi,

I have a question on offsetting some fact values from the cube based on business rules..

Scenario : 

I am getting sales figures for a Product from 2 different sources, with 2 different names (P1, P2). Now, the system treats them as separate products, as they need to be seen by different groups of users.

However, for a person looking at the Overall Sales figures, the values double up (as its the same product actually).

Hence customer now wants to offset the sales figure somehow, so that the figures appear correctly at Product Level, but one of them is ignored when the cube is aggregated at Company Level.

One work-around is to generate as set of -ve figures as a 3rd product (say, P3).

This solves the aggregation at Product and Company Level.

But, the "P3" product is also visible on the cube with all -ve sales figures, which needs to be hidden cosmetically (but used in aggregation).

Is there a way to do this?


Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

Viewing all 14337 articles
Browse latest View live


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