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

Data Mining - Cube & Cuboids

$
0
0

Can this (customer_state, supplier, supplier_state, product, product_group) be a possible cuboid if a cube has following dimension hierarchies:

{customer < customer_city < customer_state}
{supplier < supplier_city < supplier_state}
{product < product_group}


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




Filtering DAX Function Tabular Model SSAS

$
0
0
Suppose that you are working in retail company. There is Stores, Products and etc dimensions. And also there is Sales, Prices and etc facts. For stores, there is one store with code 0 that, it is Central Store. You need to calculate Sales Value for all stores by taking price from Prices fact for Central Store. How you could do it with DAX functions?

Compress old Measure Group Partitions

$
0
0

Hi,

I need to compress the old partitions of for the Measure Groups of my cube, as the size is continiously getting increased.

Anyone please guide me on this?

Thanks,

Payel

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

How to use analysis service(multidimensional) in azure with Azure Data Warehouse

$
0
0

I want to create a Data Warehouse on azure and then after reporting on DW data.  How can i use Analysis Service for multidimensional ? Does Azure Synapse Analytics provide Analysis Service support ? If not than is there any alternative ? 

MDX Measure that returns filtered values, where the SUM of another measure is > 0

$
0
0

Hi All,

I need to create a Measure [distinct sold products] which should contain the DISTINCT product IDs of products that are sold and not refunded in a "Region".

My fact table has a flag "SaleIndicator" which has +1 when the sale is done, and -1 when the product is returned.

Each sale is linked to a "Region".

The fact table is like : 

RegionProduct IDSaleIndicator
x101
x201
y101
x10-1

The actual requirement is to show the Product when it is queried at Company Level (include all Regions). But, do not show the Product when it is queried for "Region x".

Hence, measure should return the value if SUM(SaleIndicator) > 0 only.

Is there a way to implement this??

Any help would be appreciated.


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

Setting UP OLAP

$
0
0

Hello All

I haved Set Up my IIS Server for analysis Services using this site: https://msdn.microsoft.com/en-us/library/gg492140.aspx.

I have used sql management studio for try connections. When i put https://www.mydomain.com/olap/msmdpump.dll, it opens the DW analysis databases.

My chief wants also to put https://bi.mydomain.com/olap/msmdpump.dll also working.

I have add in hosts file this info: IP x.x.x.x bi.mydomain.com, and when on Internet explorer write http/s://bi.mydomain.com it worked. But on management studio says:

 - The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. (System)

The remote certificate is invalid according to the validation procedure. (System)

Does anyone knows what i am missing here?

Thanks in advance



Downloaded and Installed AMO, Can't Find It In List Of Frameworks/Extensions

$
0
0

Hi -

I downloaded 32 bit AMO (SQL_AS_AMO.msi) so we could write some console apps to do dynamic cube partitions builds, however, after what looked like a successful installation, I can't find it in the list of Extensions so the VS projects can refer to it.  I've never had this issue before when using AMO, so I'm not sure what's causing it to not show up in Referenece Manager.

Using:

VisualStudio 2017, .NET Framework 4.8.03761

Thanks!

Handling Nulls in the OLAP cube (DAX)

$
0
0

In SQL for a column I have values as 0,1 and Null. Now to calculate certain measure in SSAS/Dax . I have to calculate rows if the value is 0 but while calculating it ,DAX is also considering rows which have nulls. I have to only consider rows which have 0 not nulls.

Is there any way we can avoid or excludes rows with NULLS value?

Problem summarizing totals for a calculated measure

$
0
0

Hello!

We are having some trouble with the totals for a calculated measure at some hierarchies's attributes.

This is the MDX of the calculated measure:

([Documents].[Classification].[Classification_Order_Date].&[0],[Measures].[Invoice_Amount])
+
([Documents].[Classification].[Classification_Order_Date].&[0],[Measures].[Order_Amount]) 

Classification_Order_Date = 0 means the order was raised in the month of the calculation, so we sum the Invoice Amount and the Order Amount.

This works like a charm at the month level, but when we try to get totals, we are getting incorrect amounts.

In the first image, you can see a that every month is summarizing correctly but the grand total gives a wrong number.


In the second calculation, and for a quarter total, happens the same. The month totals are correct but the quarter totals are wrong.

We read about a bug in Excel, but this is not the case (we think), because when we test this on the cube, we have the same results.

We think the problem is about the calculations and the hierarchies in the Date dimension.

Any advice will be greatly appreciated.

Regards,


Accessing Cube through excel Error "Transport Layer Error"

$
0
0

Hi,

One my business users access the cube through excel and gets an error 

"An Error was encountered in transport layer"

Based on response from Nimish here I ran profiler and noticed that there was anonymous logon and then the AD id is shown in profiler... ( this was when user tried to access via excel).

Details below...

Below xml was generated against AD id...

<RestrictionList xmlns="urn:schemas-microsoft-com:xml-analysis" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><PropertyName>DbpropMsmdSubqueries</PropertyName></RestrictionList><PropertyList xmlns="urn:schemas-microsoft-com:xml-analysis" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"/>

Method1# -- >here

When I try to impersonate the user id as suggested by @Nimish in one of the links I get below error

TITLE: Connect to Server
------------------------------

Cannot connect to XXXXX.

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

The following system error occurred:  The security database on the server does not have a computer account for this workstation trust relationship.  (Microsoft SQL Server 2012 Analysis Services)

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

OK
------------------------------

Filter Attribute in Dimension Hierarchy

$
0
0

Hello,

There is a cube "Plankosten" with a dimension hierarchy "Kostengruppe" with 4 levels from KSTGRP01 down to KSTGRP04.

Now i need to filter a measure when KSTGRP02 = certain value/member. But there are problems with aggregation up to total sum.

First solution with "iif" alone, but the Baukosten measure is not aggreated to KSTGRP01 and to total sum, see picture below

CREATE MEMBER CURRENTCUBE.[Measures].Baukosten
 AS iif(
[Kostengruppe].[KSTGRP02] IS [Kostengruppe].[KSTGRP02].&[200],
[Measures].[Planwert],
NULL), 
 LANGUAGE=1031, FORMAT_STRING="Currency", 
VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Plandaten'  ;

Second try with scope/descandants, but also no sum on level KSTGRP01 and total sum, see picture below :

CREATE MEMBER CURRENTCUBE.[Measures].[Baukosten2] AS null,
LANGUAGE=1031, FORMAT_STRING="Currency", 
VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Vordatei Bewegungsdaten OLAP'  ;
SCOPE([Measures].[Baukosten2],[Kostengruppe].[KSTGRP01].members
 );
This =sum(
        Descendants([Kostengruppe].[KSTGRP04].CurrentMember,,LEAVES),
        iif(
            [Kostengruppe].[KSTGRP02] IS [Kostengruppe].[KSTGRP02].&[200],
            [Measures].[Planwert],
            NULL)
        );
END SCOPE;

THX for help, BR, Wolfgang

Cannot deploy or process tabular model because of duplicate values

$
0
0

Hi,

I wanted to deploy my tabular model from Visual Studio to SSAS. Tables were being processed for a few hours when all the rows (~800000 rows) were processed for ISSUE table, I received following error:

ID column's type is NUMBER(18,0) (in Oracle database). It has unique constraint, so there cannot be any duplicates nor other values than numbers. To ensure that there are no duplicates, I added "SELECT DISTINCT" statement in Source Data query for this table in tabular model. But it still claims that a duplicate value has been encounter for strange value...

Has someone encountered similar problem? I have no idea what I can do now. 

Thank you in advance!

SSMS 2017 with a SQL Server 2008 R2 instance - Analysis services: Query designer failed

$
0
0

Hi to all,

I'm using SSMS 2017 and can to connect to the Analysis Services of a remote server as well as right-click [browse] on a cube. However, once I click and drag any measure or dimension into the query designer, I get the following pop-up message (my message is in French, but I have copied below the analogous one in English):

"Query generation failed.

An error occurred while parsing the 'RequestType' element at line 7, column 55 ('urn:schemas-microsoft-com:xml-analysis' namespace) under Envelope/Body/Discover/RequestType.
XML for Analysis parser: The 'DISCOVER_CSDL_METADATA' request type was not recognized by the server. (Microsoft SQL Server 2008 R2 Analysis Services)"

I do not have a cube set up locally, so I am unable to confirm whether this being a remote server is a causal factor. However, on my SSMS 2008, I have no issues at all. So clearly, there is incoherence between the SSMS 2017 version and the 2008 instance going on. I have found a couple posts with complaints about this exact error message, however, without any resolution.

I searched far and wide and nothing... Any suggestions on how to fix or why this is maybe "unfixable" until the instance is upgraded?

Thanks!


Hide Tabular Model For User

$
0
0

Hello All,

I have below models in our server. I have requirement to hide model for users who logged into server.

Model1

Model2

Model1 is related to User A and Model2 is related to User B.

If User A logged into server then Model2 should not visible to him/her.

If User  B logged into server then Model1 should not visible to him/her.

Kindly provide me the solution on this.

Thanks,

Kumar


Anil

How can we show or hide a cube for users

$
0
0

Hi Everyone,

Could you please give a suggestion on the below query.

I have 10 SSAS tabular cubes in my server for 10 products. I don't want to show all the cubes to the all the users. Can we control this visibility at the SSAS level. each product owner should be able to see only related cube.

 I am new to administration , please share your thoughts around this. Thanks in advance.

Create a new perspective with last rolling 24 months of data in tabular cube

$
0
0

Hi,

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

So I want to create a new perspective that will just have data only from last rolling 2 years.

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

Thanks a lot in advance :)

Jenni


SSAS Cube - Exclude values from distinct count measure conditionally

$
0
0

Hi All,

I am stuck at a strange requirement, and really need your help here...

The business has a need to include/exclude fact members in a DISTINCT COUNT Measure conditionally.

Below are some details of our cube : 

Dim 1 : DimTime

Dim 2 : DimRegion

Dim 3 : DimInvestment

Dim 4 : DimInvestor

Fact Tables : 

FactTable1 : (FactID, RegionID, InvestmentID, InvestorID, InvestmentValue)

Measures : 

M1 = SUM(InvestmentValue)

M2 = DISTINCTCOUNT(InvestorID)

Recently, the business has realised that 2 of their investments (say Inv1 & Inv2) areDuplicated.

This means, the cube holds them as different investments, but in reality, they are the same.

And now, they have asked us to conditionally remove one of the investments (Inv2) from the Cube outputs.

**THEY CANNOT REMOVE ONE INVESTMENT AT SOURCE -- AND NEED BOTH ON CUBE ** :(

Conditions : 

When queried for dimInvestment, the output should include values from both Inv1 & Inv2 separately.

But when queried for dimRegion (which can have many investments), the output should include only Inv1 (exclude Inv2).

What we did : 

To work-around the additive measures (like InvestmentValue), we introduced a Dummy Investment (dummy Inv2) with exact Negative value of original (Inv2) in the Fact Table, which makes its NET TOTAL = 0 when queried for DimRegion, and retains value when queried for DimInvestment.

This is working correctly.

PROBLEM :  The problem is around Measure2 --> DISTINCT COUNT(InvestorID)

it is still including the InvestorID of Inv2 when we query against dimREGION.

I have tried many ways like FILTER, SCOPE, changing the aggregation type of Measure2 etc. but nothing works.

Can anyone please suggest any way of fixing this.. either on the cube or on the FactTable ??

Sample Data: 




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

Connection failure - The JSON DDL request failed with the following error: Failed to execute XMLA

$
0
0

We are facing huge issue after deployment of xmla code. XMLA code deployment is fine. After that we are refreshing msdax. When we do we are getting below error: 

The JSON DDL request failed with the following error: Failed to execute XMLA. Error returned: 'OLE DB or ODBC error: A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.; 08001; Client unable to establish connection; 08001; Encryption not supported on the client.; 08001. 
A connection could not be made to the data source with the Name of 'DBNAME'

Few times, after restarting services & server sometimes it works and it not. We are not able to understand after deployment why it is not refreshing. BTW, we are running below code using SSIS package even when DBA manually runs it fails.

Connections are fine. impersonation is also fine.

{
  "refresh": {
    "type": "full",
    "objects": [
      {
        "database": "DBNAME"
      }
    ]
  }
}

SSAS - Connectionstring: properties Provider=SQLNCLI11.1;Data Source=servername;Persist Security Info=False;Integrated Security=SSPI;Initial Catalog=dbname

impersationinfo: Impersonation

Database properties: Default Mode: Import, Default Dataview: Full

Our Service id also added and full permission.

Viewing all 14337 articles
Browse latest View live


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