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

Why is My Analysis Services Costing money when its paused?

$
0
0

Hi,

I paused my Analysis Service at a certain point about 8 days ago. However when i looked at costings, its been going up by about a pound a day while its paused so its gone up by around £9.

I thought that when paused it didn't cost money so I wonder if anyone can shed light on this?

Debbie


Debbie


Left Outer Join in SSAS Tabular Model

$
0
0

Hi,

I have below scenario. Table1 and Table2 relationship is 1 to Many in SSAS Tabular model.

Table 1    Table 2 
Product IDProd NameSalesAmount  Product IDProductSoldLocations
1   A100  1    US
2   B50  2    UK
3   C250  1    UK

When the cube is live connected from Power BI, below behavior is seen

1. When all the fields from Table1 are selected, i get to see all three products in tabular grid.

2. When I pull in ProductSoldLocations from Table2, Product ID 3 is getting filtered and not visible. I get to see only Products 1 and 2. In general, user expectation is to see all three products with PorductSoldLocation as NULL for ProductID 3.

This is only an example table scenario, in there are many columns in both the tables.

Please let me know if this is intended behviour or am i missing anything.

Thanks
Manoj

Managing a SCD2 dimension related to a fact table - SSAS Tabular 2014-2016

$
0
0

Hi,
I've a SQL Server data mart having a SCD2 dimension (e.g. a DIM_Products dimension), a fact table (e.g. a Fact_Sales fact table) and a Calendar dimension.
The SCD2 dimension has a surrogate key (as a primary key), and effective start date and end date. The fact table has a registration date for each new record inserted and the SCD2 dimensione surrogate key. The Calendar dimension has a date for each day in a continuous manner.
I'm implementing a SSAS Tabular model reading from this SQL Server data mart.
In the model, I can relate the SCD2 to the fact table.
I need to select a date for the corresponding calendar filter in order to filter the SCD2 dimension rows having the filtered calendar date comprises between the dimension start date and end date. The SCD2 dimension filter propagates his effects to the fact table.
E.g., for a specific calendat date I want to filter the DIM_Products dimension to select the valid products respect to the calendar date (dimension start date <= calendar date <= dimension end date).
In order to solve this issue, I'm thinking to write a DAX expression but I'd like to find a better solution from the point of end-user view.
Any suggests to me, please? 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

Moving Measures in a separate table (PBI & SSAS 2017 Live Connection)

$
0
0

Hi,

I’m using SSAS 2017 to store my tabular model.  As frontend I’m using Power BI Desktop Release March 2018.
Because in the meantime I have a huge amount of measures (stored in SSAS 2017 tabluar mode) I want to  structure and group them. Of course I could use display folders but I would rather prefer to a separate “measure table”.
From the PBI Desktop I already know that measures are “table inspecific”, so they can technically live anywhere. Furthermore, I know how to move measures between tables (or to a specific measure table) easily in Power BI.
But as far as I experienced it with the tabular model in SSAS this easy way is not possible. In fact, I have to cut out the measure from one table and paste it into the new location/table. Thus, actually I have to recreate them.
The disadvantage accompanied by this approach is that the connection to the moved measure gets lost in the PBI Desktop and I receive and error in my PBI report that the measure is not available anymore.

Is there any other way to move a measure in SSAS 2017 in the way you can do it in Power BI Desktop?

Thanks a lot.

Best regards,

Dom

SSAS - check if the user has a role assigned

$
0
0

I'm trying to create a way to partially automate creation of roles and role permissions in SSAS multidimensional cube. Due to some restrictions on my side this can only be done with using T-SQL to generate XMLA scripts and sending them to SSAS server.

I have XMLA scripts to create, update and delete roles. However, I do not have a way to check if a certain user already has a role assigned in the cube.

I have found a way to get a response from SSAS server using discover, for example:

<Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>MDSCHEMA_CUBES</RequestType><Restrictions /><Properties><PropertyList><Catalog>MyCube</Catalog></PropertyList></Properties></Discover>

which returns a list of existing cube in the catalog. I've found a list of existing Request types here: https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2012/ms126079(v=sql.110)

but I see no type which returns existing roles and/or existing users in the role

Any ideas how this can be done? To get a list of existing roles (ideally even existing members in the roles) by sending XMLA script to SSAS server?

How to make attribute work with accumulated values which are not directly included in Calender Hierarchi

$
0
0

Hello Everyone,

I have a Period dimension with attributes year, quarter ,period and date. And a Hierarchi called Calender = year-quater-period-date

one of the client requested for another attribute to be included in period dimension called "Report Period". Report period attribute have just 2 members  'Actual period' and 'Closed Period' and all other values are null.  I have createdthis acutal period and closed period in backend database .

It is infact related to economic transactions every month. For example if the date is 5th november then it will show closed period as september and actual period as october, it is becasue the economic transactions are still open for october month evenon 5th november . But when the transactions are closed for october month on 6th november then the slicer will show 'Actual period' as 201911 and closed period as '201910'. 

Now coming to the main problem. slicer "Report period" is working with the measures which comes directly from source for example sales, cost etc . But the slicer "Report peirod" is not working with accumulated values such as "Sales Accumualed". Reason for  the attribut "Report Period" is not working with accumulated values is because this attribut is not in the calender Hierarchi.

Sales Accumulated= sum(YTD([PERIOD].[CALENDER HIERARCHI].currentmember),[Measures].[Sales])

Is there any way that the attribute "Rapport Period" work with accumulated measures even though it is not included in calender hierachi. Thanks for any suggestions


Kind Regards

Mah

Values which are showing in Database not matching with SSAS Cube

$
0
0

Hi All,

I am facing some issue values which are showing in Database are not matching with Cube Measure values.  Need SSAS Multidimensinal experts help. We can connect on 8919406759

Thanks,

Hemanth.



Getting error "Could not validate Credentials.See Output Window for details" while validating or processing partitions in Tabular model

$
0
0

I have created a Tabular Model in SSDT for Visual Studio 2017. My datasource is csv file in my local. I have created partitions in table manually and processing them. It was working fine but now it has started giving the below error. It worked fine just an hour back, there are no other users using my machine or any changes done.

"Could Not Validate Credentials.See Output Window for details"

I closed and re-opened both SSDT and Tabular model but still getting same issue.

But when I create a new model and imported the same file, it works fine. But I will loose my work in theexisting model if subsequent partitions cannot be processed.

I am using Service Account Impersonation for importing the csv file.

I tried to restore a database and failed due to different versions

$
0
0

That's what appeared to me

TITLE: Microsoft SQL Server Management Studio
------------------------------

Restore of database 'altawqeef_DB' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The database was backed up on a server running version 15.00.1400. That version is incompatible with this server, which is running version 15.00.1200. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended)

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=15.0.18206.0+((SSMS_Rel).191029-2112)&LinkId=20476

------------------------------
BUTTONS:

OK

What is the solution

Returning the first member in a filtered set- beginner

$
0
0

Hi All,

I've done my best to crack this one but being a beginner i'm at my wits end.

I'm using an AnalysisServices OLAP cube and i'm trying to cross join and return a set that contains only the first and last tuples in the set [Shift Log] and for each member in the [Source] set that contained any value in [Dim Measures].[Measure].[Loader Buckets]

I've found the code to determine the last tuple (below) which works well, but i cannot work out how to get the first tuple [Dim Shift Log].[Shift Log] for each [Dim Sources].[Source] for the [Dim Measures].[Measure].[Loader Buckets] variable.

I've tried using the HEAD function but all i can seem to return is the first [Shift Log] or the first [Source] but never the first [Shift Log] for each [Source] using the [Loader Buckets] Measure.


Apologies if this is poorly explained.

WITH SET BOGFINISH AS FILTER
(
  NONEMPTY(

  [Dim Sources].[Source].CHILDREN

* [Dim Shift Log].[Shift Log].CHILDREN  ) AS MYSET   //THIS DETERMINES THE INITIAL SET OF TUPLES

, NOT(MYSET.CURRENT.ITEM(0) 
 IS MYSET.ITEM(RANK(MYSET.CURRENT, MYSET)).ITEM(0) )

)          // THIS PICKS THE LAST TUPLE FOR EACH MEMBER

SELECT 

[Dim Measures].[Measures].[Loader Buckets] ON COLUMNS,  //THIS ARE THE ROWS (ATTRIBUTES)

BOGFINISH ON ROWS       //THIS ARE THE ROWS (ATTRIBUTES)

FROM DOMECube

WHERE [Dim Shift Log].[Period Year].&[2019]*{[Dim Sources].[Source Loc Type].&[DHS],[Dim Sources].[Source Loc Type].&[UHS]}*[Dim Measures].[Measure].[Loader Buckets]



Process Cube SSAS

$
0
0

Hi,

I have the DIM_DATE dimension that has three relationships and DIM_Geography that has two relationships.

When I do the processing for SSAS these dimensions divide one for the number of relationships.

Ex: The DIM_DATE dimension that has three relationships to the fact, so it will have three dimensions when I do the processing.

How do I set dimensions so that when I render processing, only one dimension appears, such as the Product Dimension ?.

Thank you all
_Keny


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

SSAS Tabular model :-Filter is not working properly while browsing the model

$
0
0

Hello Team ,

We are having one tabular model cube with star schema and we have two fact and one dim table .

fact table :- table1 and table 2

Dim :- table3

Now table1 connect to table table3 (ID)and table3 connect to table2(ID) we having Bidirectional relationship .

after deployment the model i am trying to filter the output like we had browser the two column from table2 and applied dim filter from table 3 but outlook is not getting filter .

could you please help me here why filter is not reflecting .

 

Unable to connect to a data source using excel 2013

$
0
0

We are trying to access a sql cube by creating a new connection using excel 2013.

The error message received is "Unable to connect to data source.Unable to locate database server.Verify that the database server name you entered is correct,or contact the database administrator for help."

We are using a 64 bit machine and tried everything possible including reinstalling ms-office. All other connections work but user is unable to create new connection

The problem is related to using analytical services from microsoft excel 2013

SSAS Using memory after clearcache and clear model

$
0
0

Hi,

I'm encountering an issue where there is a lot of memory usage of SSAS Tabular, even when i clear the model and the cache.

Example.

My Tabular model is using 9 GB of RAM. When i process the database with option 'ClearValues', the RAM usage is dropping to 7 GB. Here i'm expecting it drops below 1 GB.

When i run a clearcache command, another 500 MB will be release from my RAM, but still 6.5 GB is used, even though there is no data anymore within the model.

If i delete my model, then nothing changes and still 6.5 GB of RAM is used by SSAS Tabular.

If i restarted the analysis services, then everything is released and it's only using 100 MB.

My question here is, why is memory not released by clearvalues? And how can i release memory after a process clearvalues within restarting the server or restarting the Analysis Services


Process Cube SSAS

$
0
0

Hi,

I have the DIM_DATE dimension that has three relationships and DIM_Geography that has two relationships.

When I do the processing for SSAS these dimensions divide one for the number of relationships.

Ex: The DIM_DATE dimension that has three relationships to the fact, so it will have three dimensions when I do the processing.

How do I set dimensions so that when I render processing, only one dimension appears, such as the Product Dimension ?.

Thank you all
_Keny


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

Previous Month Measure At Day Level

$
0
0
For my business I need to create previous month value of Salesamount measure. So we used below dax to create previous month measure

SalesAmount_Previous_Month=calculate(salesamount,previousmonth(Dates[Date]))

This measure is working fine when we slice the data at month level. But if we slice the data at day level this is giving previous month end data sales.

For example for July 15th 2019 the measure giving June 30th 2019 Sales but I need the value for June 15th 2019 sales.

Can anyone help me on this to created DAX Expression?

Anil

SQL Server Data Tool SSDT 2017 can install on Windows Server 2016 Data center?

$
0
0

Which OS is required to install SQL Server Data Tool SSDT?

I have Windows Server 2016 Data center installed in my system. I need to install SSDT 2017. I am not bale to install SSDT 2017 because of this OS issue. My question is which OS is required for installing SSDT 2017?

SSAS Alias does not work on the server

$
0
0
Hello,

We now have an Alias for our SQL Server and until now we directly used the server name for SSAS. The Alias name does not work and have not found decent articles online to resolve the issue. Does alias have issues in 2012 and resolved in some higher version or the aliases does not work with SSAS at all?

Please let me know if you have any questions.

Thanks.

OLAP. How to sort by hierarchy?

$
0
0

Hi!

I write a query for the olap cube for Team Foundation Server.

I get what I need ( child elements of the specified element).

But it is sorted by default.

I want to receive sorting on hierarchy (that is the parent element, then its children, then the following parent element and so on)

Query:

SELECT {[Measures].[Complete]} ON 0,
    NON EMPTY CrossJoin(
    [Work Item].[System_WorkItemType].[System_WorkItemType],
        [Work Item].[System_Id].[System_Id],
        [Work Item].[System_Title].[System_Title],     
        [Work Item].[System_AssignedTo].[System_AssignedTo],
        [Work Item].[System_State].[System_State]
    ) ON 1
    FROM [Teams]
    WHERE ([Work Item Tree].[Work Item Tree Hierarchy].&[598727])

Thank you advance

Viewing all 14337 articles
Browse latest View live


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