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

SSAS 'Alias' issue - Not able to connect via SSRS report

$
0
0

Hello,

We have created 'alias' names for SSAS Tabular servers and trying to use this in SSRS connection string. Actual SSAS tabular server name works but 'alias' name is throwing the below error when deployed in SSRS server.

/**

  • An error has occurred during report processing. (rsProcessingAborted)
    • The execution failed for the shared data set 'DataSet1'. (rsDataSetExecutionError)
      • Cannot create a connection to data source ' Data source for shared dataset'. (rsErrorOpeningConnection)
        • The connection either timed out or was lost.
          • Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
            • An existing connection was forcibly closed by the remote host

**/

Tried pinging actual / alias ssas server from ssrs server - Works fine pointing to the same IP address.

Please advise for any insight on this issue.


SSAS: Excel MDX runs slower on SQL Server Enterprise 2017 (upgraded from 2008R2)

$
0
0

Hi,


Good day!

Just wanted to reach out and ask help/advise regarding our issue with using Excel connecting to SSAS.

We have recently upgraded from 2008R2 to 2017 SSAS (multi dimensional)


However, during testing we found that some queries are running noticeably slower than the old version - particularly if we are doing pivot tables connecting to the new cube. We have generated the MDX and tested from old version that it runs for around 12 sec, but the same MDX (generated from Excel) runs for around 3-5 mins on the upgraded SSAS.


I can send the config file (ini) of the old and new server as well as the MDX generated if needed.

Kindly advise.


Thanks,

Jaycee Robles

Query through dynamics ax via odata feed problem with group by

$
0
0

Hello I'm not totally sure if this is the best place for this question but figured I'd give it a shot,

I've got a query that has multiple operations for each particular production order and it is working as intended. However, I'd like to be able to trim this down to improve performance (I'm only using the query for the final operation for each production). I can do this via using the max when creating my query in dynamics AOT. The issue is whenever there is a group by included in these query setups, I get an error.

Seen here:

I'm just curious if anyone has any thoughts an a solution or alternative to this.

Migrating from Multidimensional Model to Tabular Model

$
0
0

Hi Everyone,

I have cubes developed in Multidimensional Model, the cube sizes range between 20 and 40GB. We want to migrate these cubes to tabular models developing from the scratch. I am concerned about the performance of the cubes, we develop a demo cube with a DAX function and less than 300k records, but the response is very slow.

Does anyone know if it is a good idea to do this migration or is better to stay with multidimensional cubes.

Thanks for your answer.

Simple Calculated Member Running for Forever - MDX

$
0
0

Hi,

I am facing very strange issue with MDX (SSAS 2014), on which simplest calculated member is taking forever to execute. Could someone please help me to understand why i am facing this issue. Below is the complete query. If i not use calculated member everything works fast and result comes in seconds.

WITH
MEMBER Measures.AsOfDate AS ("[Policy Effective Date].[Year-Month].[Date].&[2018-01-04T00:00:00]")
MEMBER Measures.YTDPremium AS AGGREGATE (YTD(STRTOMEMBER(Measures.AsOfDate)), [Measures].[Written Premium]) 
SELECT NON EMPTY 

Measures.YTDPremium

} ON COLUMNS, NON EMPTY 
{ ([Program].[Program Name].[Program Name] 
,[Insuring Company].[Insuring Company Name].[Insuring Company Name] 
,[Line Of Business].[Line Of Business].[Line Of Business]
,[Producer].[Producer Name].[Producer Name]
) } ON ROWS 
FROM [Premium]

 


How to make Metadata refresh Dynamic in SSAS Tabular Direct Query against SQL Server

$
0
0

Hi all,

I built a SSAS Tabular Cube which is Direct Query against SQL Server. Let's I have a Table with 10 columns when I first built the cube and later on I have added one more column to the table which makes up to 11 Columns in that table. I want to see that column to be added into the cube dynamically so that end user will browse the cube for the column in power bi.

I know we can manually update the metadata in visual studio and redeploy. But is there is any way that i can make the flow of metadata dynamic ?

alternatives to tabular model

$
0
0

Hi. are there alternatives (even with other vendors) out there to the tabular model? I don't like the tabular model training and instructional reading alternatives.  the courses don't seem to set a proper foundation.

Dax seems inconsistent and overly complicated, perhaps immature.  our app is survey based which means there are questions, answers, forms, studies, people (those being evaluated and those doing the evaluation) etc .  

our app has facts, dims and comments so I dont like multi dimensional ssas in this case. 

column stores don't seem as fast as advertised (I think they are 4 times not 10 x faster than conventional tables).  and besides they cant contain large comments either. 

I've seen xml "ish" based data stores that I believe are free ware and amazingly fast.  I'm going to ask a peer how that technology worked for him and i'll post the name(s) here.

hierarchies (eg org etc) play a role in our data.  changing dims, ie your boss was joe yesterday but jane today also play an increasingly important role in our data.  there are 100 million data points.  90 dims.  7% of the data points are long char fields.

Hide some Dimension values

$
0
0

Hi,

We have Tabular model with say Platform Dimension, ( members: Android, iOS, Windows, Mac etc).

Question: We want to hide  few Platforms  (say "Android" and "iOS") from dimension member list to the Users (client tool: Excel).

*Rows for Andriod and iOS will be used for some other Measure calculation so cant really filter out of query.

Thanks in Advance



Rahul Kumar, MCTS, India, http://sqlserversolutions.blogspot.com/


Calculated member using SUM with OR condition

$
0
0

I inherited some mdx which uses defined members.  I need to make a new member which sums a measure accross a set, but the set is a union, eg

SET [DATEFILTER] AS  {strtomember(["Date.[Year - Month].[Month].&[2019-07]"])}

member [SUMOR] as SUM([DATEFILTER] * {[Incident Details].[Is SI].[Is SI], [Non conformance].[Major non conformance]}, [Measures].[Environment Impact Count])

select {[SUMOR]} ON COLUMNS, {[SOME DIM]} ON ROWS FROM MyCube

This generates #Error when run 

Can I use a unioned set in the sum function like this?

Thanks!


marcus_m_scholz


I have 3 SSAS MDX Cubes and want to use these 3 as Source and create 1 more new Cube. Is this possible?

$
0
0

Hi All,

I have 3 SSAS MD Cubes and want to use these 3 as Source and create 1 more new Cube. Is this possible?


Thanks Shiven:) If Answer is Helpful, Please Vote

Tabular Model 1400 error when updating Import to a custom Query -> An unexpected error occurred (file 'tmsavepoint.cpp', line 1528

$
0
0

When updating a query with the power query advanced editor, I get the following error:

Failed to save modifications to the server. Error returned: 'An unexpected error occurred (file 'tmsavepoint.cpp', line 1528, function 'TMSavePoint::GetProxyImpl').

Context:

  • Tabular Model in 1400 compatibility
  • Direct Query mode ON
  • Oracle Database Data Source

Original Query:

let
    Source = #"Oracle/xxx",
    yyy = Source{[Schema="yyy"]}[Data],
    4M = yyy{[Name="Table4M"]}[Data]
in
    4M

The new Query:

let

     Source = Oracle.Database("xxx", [Query="
     SELECT Table4M.*
     ,Table4M.Col1 || '_' || Table4M.Col2 as Concat_Key
     FROM Table4M
"]) in Source

The funny thing is that if I do it in two steps it works.

Step 1, change the query to a dummy one:

let Source = Oracle.Database("xxx", [Query="
SELECT 1
FROM dual
"]) in Source

Step 2, change the query to the real one:

let

     Source = Oracle.Database("xxx", [Query="
     SELECT Table4M.*
     ,Table4M.Col1 || '_' || Table4M.Col2 as Concat_Key
     FROM Table4M
"]) in Source


OLE DB error when processing dimensions in Analysis services using AMO with only TLS1.2 enabled on the server

$
0
0

Hi,

I recently enabled TLS1.2 exclusively(only 1.2 enabled with all others like TLS1 and SSL disabled) on my SQL server. I installed all necessary patches mentioned in:

https://support.microsoft.com/en-us/help/3135244/tls-1-2-support-for-microsoft-sql-server

My program is able to connect to the sql server and everything works fine except the operations on the analysis service using AMO. 

Some extra info:
Windows server 2012 R2
SQL service 2014 sp2
.Net Framework 4.7


The sample test code is shown below, nothing special but going to process the dimensions:


using Microsoft.AnalysisServices;

try
{
using (var server = new Server())
{
server.Connect("localhost");
server.CancelCommand();
using (var database = server.Databases["mydb"])
{
foreach (Dimension dim in database.Dimensions)
{
dim.Process(ProcessType.ProcessFull);
}

}
Console.ReadLine();
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}

A exception thrown as below when calling the dim.Process(ProcessType.ProcessFull). As shown, it is able to connect to the server and list the databases and dimension but failed to process the dimensions.
It was a connection issue based on the information, I am pretty sure it is caused by the upgrade to TLS1.2, because the same code worked before. 


Microsoft.AnalysisServices.OperationException: Internal error: The operation terminated unsuccessfully.
OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error.; 08001.
Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'EM Data Mart', Name of 'EMDataMart'.
Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'E Mdim Data Series', Name of 'Actual Baseline Forecast' was being proc
essed.
Errors in the OLAP storage engine: An error occurred while the 'Display Order' attribute of the 'Actual Baseline Forecast' dimension from the 'EnergyManager' da
tabase was being processed.
Server: The current operation was cancelled because another operation in the transaction failed.

   at Microsoft.AnalysisServices.Core.AnalysisServicesClient.SendExecuteAndReadResponse(ImpactDetailCollection impacts, Boolean expectEmptyResults, Boolean thro
wIfError)
   at Microsoft.AnalysisServices.Core.AnalysisServicesClient.Process(IMajorObject obj, ProcessType type, IBinding source, ErrorConfiguration errorConfig, WriteB
ackTableCreation writebackOption, ImpactDetailCollection impact, XmlaWarningCollection warnings, JaXmlSerializer serializer)
   at Microsoft.AnalysisServices.Core.Server.Process(IMajorObject obj, ProcessType processType, IBinding source, ErrorConfiguration errorConfig, WriteBackTableC
reation writebackOption, XmlaWarningCollection warnings, ImpactDetailCollectionimpactResult, Boolean analyzeImpactOnly)
   at Microsoft.AnalysisServices.Core.Server.SendProcess(IMajorObject obj, ProcessType processType, IBinding source, ErrorConfiguration errorConfig, WriteBackTa
bleCreation writebackOption, XmlaWarningCollection warnings, ImpactDetailCollection impactResult, Boolean analyzeImpactOnly)
   at Microsoft.AnalysisServices.ProcessableMajorObject.Process(ProcessType processType, ErrorConfiguration errorConfiguration, XmlaWarningCollection warnings)
   at Microsoft.AnalysisServices.ProcessableMajorObject.Process(ProcessType processType)
   at AMOTest.Program.Main(String[] args) in C:\Oliver\My Docs\VS Projects\TLSTest\AMOTest\Program.cs:line 33


Any help on this issue would be appreciated.

      

How to create a new calculated column in Excel - Getting data from SSAS model into an excel tabular form

$
0
0

We are loading data from an SSAS model into an excel tabular form and we are trying to put information in a second column depending on the first one, In this case we have 2 fields coming from the SSAS: Amendment Amount and Record Date, we are trying to change the column Record Date depending on the information coming from Amendment date.

It means, if Amendment amount comes empty from SSAS we have to put blank spaces in the column Record Date. In contrast, if some data comes in the amendment amount field we need to put the information coming from Record Date field It could be explained as a formula as well as follow:

IF(PO[Amendment Amount] >0,PO[Record Date] )

Question about amendment date:

What is the best way for doing this kind of calculations? Notice that data is coming from SSAS into Excel tabular form
Is there some conditional formatting available to apply in this case?
Example: Is displaying information in Record Date column when we don't have amendment amount, it is wrong:

po_number | Record_date | Amendment_amount

A1 | 2019-05-03 |
A2 | 2019-05-25 | 4350
A3 | 2019-04-30 |
a4 | 2019-04 08 | 2100
We are looking for something like this: (if we have Total amendment Amount we show up Record date, else we show up blank spaces)

results expected:

po_number | Record_date | Amendment_amount

A1 |                   |
A2 | 2019-05-25 | 4350
A3 |                   |
a4 | 2019-04 08 | 2100
Note : We do not want to do changes to the model (visual studio), we want to do changes on Excel, specifically on each Excel report as needed.

One more thing : Amendment_Amount is a measure field coming from the model(visual studio) I tried to use a MDX calculated measure (OLAP tools) as follow, but it doesn't worked:

IIF( ( Not(IsEmpty([Measures].[Amendment Amount])) AND [Measures].[Amendment Amount] >0 ), [PO].[Record Date], 1 )

Some idea to solve it please?

How to use OR filters for getting data from an SSAS model into an excel tabular form

$
0
0
We are loading data from an SSAS model into an excel tabular form. The data within the spreadsheet needs to be shown using 2 conditions in OR way, I mean, I have 2 fields coming from the database: Original amount and amendment amount, We need display the information coming from the SSAS cube when original amount <=10.000 OR amendment_amount<=10.000.

I tried to use the normal filters on Excel pivot tables, but it doesn't worked, because filters use AND implicitly to display information, I need OR.

I tried to use the normal filters on Excel pivot tables (value and label filters), but it doesn't worked, because filters use AND implicitly to display information, I need OR.

example:
Code original amount amendment amount
C1 25000 500
C2 2000 18000
C3 14000 9000
C4 12000 10500

Filtering by Original_amount<=10.000 and amendment_amount<=10.000 is noy displaying any records

The result expected is C1,C2 and C3 code records displayed because one og the both conditions is true... How could I filter for displaying the right data?

Using the example described above, the result expected is C1,C2 and C3 code records displayed because one of both conditions is true...

results expected:
Code original amount amendment amount
C1 25.000 500
C2 2.000 18.000
C3 14.000 9.000

How could I filter for displaying the right data?

please help me to understnad why we use same table name at 3 different places in SSAS Cube and what happens when we change table name in any of the place

$
0
0

Hello All,

In Cube for measure group, the base table is actually appears at 3 different places(let me know if more places are there)

1. in DSV, under table section.

2. in DimensionsUsage Tab, to set the relationship b/w measure group and dimension

3. Partitions.

Can you please let me know the impact & how SSAS works when we change table name any of these but not other places?

For example: If we change in DSV by replacing table with other table, but do not change in partitions or vice versa.

Many Thanks





Am I allowed to process cube on dormant server on a single license?

$
0
0

Hi,

We have a single server enterprise license which allows us to run a cluster of 2.

I cant seem to find any info, if I am allowed to process the cube on the dormant server.

Feels like it should be fine as nobody is connecting to it, but if anybody has any experience with this or can point me to some reference material, it would be much appreciated.

Thanks

Jon

Automating build of Tabular solution using VS2012 devenv.com

$
0
0

I'm trying to automate the build of my Tabular solution using devenv.com file. 

I can do the build successfully from Visual Studio by right-clicking the solution file and click on Build (I can see the asdatabase file generated in bin)

I want to automate this on build server by setting up a TFS build definition. In the build definition, I'm using this command for building my solution:

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.com" "C:\Builds\98\IR\IR IntegrationFlow (Main)\Sources\Main\Source\Reporting\IntegrationFlow\IntegrationFlow.sln" /Build "Development"

I execute this from command prompt successfully in my local set up, but when this command runs on the build server through the TFS build definition, it completes without any output. It says 

         Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.50727.1.
         Copyright (C) Microsoft Corp. All rights reserved.
         ========== Build: 0 succeeded or up-to-date, 0 failed, 0 skipped ==========

When i compared the versions of Visual Studio and SQL Server in my local set up and the build server, I found both have SQL Server 2012 SP1 Analysis Server version, but there is a difference in Visual Studio 2012 version. My local box has 11.0.51106.1 (Visual Studio 2012 + Update 1) and server has 11.0.50727.1 (Visual Studio 2012 without Update 1 applied yet)

Could it be because of that or am I missing something? Can you give me directions please?

Row group order

$
0
0

How do I change the row group order

any advice?

dax find previous round value

$
0
0

hello...

I have a fact


idvalround
1101
221
311
42011
51530
61530

and I have a round Dim wich related to column round in the fact

IDDESCorder
1ROUND 11
11ROUND 22
30ROUND 33

I need to find sum of values in round for previous round... 

the output should be like

Column1sum of valuePrevious ROUND VALUE
ROUND 113 
ROUND 22013
ROUND 33020

ssas tabular model probleam

$
0
0
how to create many to many relation ship in tabular model
Viewing all 14337 articles
Browse latest View live