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

StorageMode among Cube structure-> measure groups , Partitions-> measure groups

$
0
0

hi all, when I change the storagemode of one measure group in the partition from MOLAP to HOLAP, under Cube Structure tab, the measure group is still using MOLAP as its storageMode. 

Can someone please explain to me why they can not be consistent? 

thanks

 hui


--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --


SSAS Tabular Median calculation

$
0
0

There is issues calculation median with DAX. Is it possible to calculate the Median using Excel , part of a PivotTable in a way that would work with drill down. Is it possible for Excel to retrieve the raw Mortgage Amount from Analysis Services (150 million rows or so) and calculate the median at the front end somehow.

I looked into link below but that does not seem to calculate the median on the raw data.

Quartile, Percentile and Median in PowerPivot / DAX

Thank you


Gokhan Varol

Loading Data from Oracle DB in Tabular Model

$
0
0

Hello All,

The tabular model errors out as below when I load data from Oracle DB.

From the error description, it reminds me to register the oracle class. So I did use "Regsvr32.exe  oracle***.dll" but it still fails and pops up the same error as below.

Who knows how to fix this?

Also, using oracle SQL developer in local box makes the connection pass through successfully.

Appreciate for any suggestion.

--------------------------------------------------------------

The provider 'OraOLEDB.Oracle' is not registered.

The following system error occurred:  Class not registered

A connection could not be made to the data source with the DataSourceID of '386ae434-cae2-4588-9add-096fad45e4e2', Name of 'Oracle ABCDDV'.

An error occurred while processing the partition 'STRFact_458c1381-d4f7-42aa-b242-99c6cf807731' in table 'STRFact_458c1381-d4f7-42aa-b242-99c6cf807731'.

The current operation was cancelled because another operation in the transaction failed.


Derek

Excel Powerview can't connect to Tabular Analysis Server

$
0
0

Hi,

I have a Tabular Server on the domain. My client is currently not logged onto the domain. I can successfully connect with a pivot table or chart to my tabular model, however I get the "Sorry, something went wrong..." error when connecting with Powerview from Excel 2013 using the same connection file.

I suspected that the powerview addin was not passing through the captured login credentials, but rather the currently logged in user to the analysis server. I tested my theory by using a different machine that was part of the domain. Lo and behold it worked. I could successfully create a powerview report against the tabular server.

This does not make sense to me as we are a consulting company and move from client to client. Our machines do not get attached to the office domain as we are seldom there. But we need access to the tabular cubes. Also how does this make sense with cloud based services? Is this a bug, or am I missing something?

Regards,

Dudley


Distinct count of parent IDs

$
0
0
I have Customer dimension that includes a ParentID attribute.  The fact table includes a measure for the distinct count of Customer Ids.  Is it possible to create a measure that displays a distinct count of the Parent Ids?  Should I just include ParentID  in the fact table? Or would it be better to  somehow create the calculated measure by joining to the dimension?

John Schroeder

how to remove the NULL rows of cells?

$
0
0

I've got the following query in the next URL
http://cwebbbi.wordpress.com/2011/05/24/replacing-linkmember-with-a-many-to-many-relationship/

SELECT
[Date Type].[Date Type].[Date Type].MEMBERS
ON 0,
[Date].[Calendar Year].[Calendar Year].MEMBERS
ON 1
FROM [M2MTest]
WHERE([Measures].[Sales Amount])

What is the syntax to prevent showing of the rows of the cells having NULL?

Secondly, How to get the previous year?

SELECT

        [Date Type].[Hierarchy].[Date Type Key].MEMBERS
        ON 0,

//        [Date].[Calendar Date].[Year].MEMBERS  // Hier
        [Date].[Calendar Date].[Year].PREVMEMBER  // Doesn't work. expect member expression
        ON 1

FROM
        [SOS OLAP]
WHERE(    [Measures].[Internet Sales Amount]    )

Executing the query ...
Query (10, 3) The PREVMEMBER function expects a member expression for the 1 argument. A level expression was used.
Execution complete


-- IBM has jobs for USA employee to work oversea (India) and get their wages.


what is the user domainname\ComputerName$ when deploying Cube

$
0
0

I have got a deploy error of the cube

The error is:

Error    38    OLE DB error: OLE DB or ODBC error: Login failed for user 'abcIntranet\LAX00211$'.; 28000.        0    0   

What is this user and how to grant this login read access to the DB?

Currently the SSAS and SQL agent service account is set as NT Service\SQLAgent$SSASTabular.

Can I grant this service account without using a Domain User Account?  I don't have admin right for this Windows.

Thanks.


-- IBM has jobs for USA employee to work oversea (India) and get their wages.

Measure not Visible in SSAS Tabular model designer - SSAS Tabular

$
0
0

I created a simple additive measure in sql server 2012 tabular model designer measure Grid in below the table colum.  After the deployment measure not appearing in designer, but appearing in Sql server analysis service database.

now i wanted to edit the measure, i am not findding in the measure grid.

Any help on this much appreciated ! Thanks !!

Thanks, Liyasker Samraj K


Liyasker Samraj K


XMLA Process Database how to set Transaction Mode

$
0
0

We use SSAS 2005 and the Customer Analysis Services Database is processed during the night with a XMLA Command in a SQL SQL Server Agent Task step.

The command i use is:

 Process xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Object>
    <DatabaseID>CustomerDB</DatabaseID>
  </Object>
  <Type>ProcessFull</Type>
  <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>

As i understand this command uses as Default the Transaction Mode: "One Transaction". How can i alter the XMLA Command so that the Transaction Mode "Separate Transactions" is used?

Is this possible?

Best Regards
Paolo Taverna

format of initialization string does not conform to specification starting at index

$
0
0

I am getting following error while Usage based aggregations .

Format of initialization string does not conform to specification starting at index.

Basket Analysis in SSAS - Identifying orders where no other products were purchased

$
0
0

Hi All

I have set up an SSAS cube to allow our analysts to do some Basket Analysis type queries, for example if you choose a particular product it will tell you what other products were purchased on the same basket (percentage by product).

I achieved this using many to many relationships between multiple copies of the same order line level sales data, linked via an order level dimension.

Basically following the example below and tweaking it to fit our model

http://www.codeproject.com/Articles/33765/Market-Basket-Analysis-in-SSAS-2005

This is all working great and I have now enhanced it to allow 2 products to be chosen.

My remaining challenge is this - The analysts want to be able to report on the percentage of orders where no other products were purchased.  In other words the percentage of orders where the chosen products were the only things in the basket.

I'm struggling to get my head around how to model this in MDX - Has anyone else come across this? And can anyone offer any advice please?

Below is a screenshot of the relevant section of our cube structure.

I'm considering replicating the problem in AdventureWorks so I can share the solution but just wondered generally if anyone had come across this before?

Many thanks

Dan

MDX Performance Issue - Dimension Member Count(Filter())

$
0
0

I have a dimension that will be 700,000 members -- not ideal!  The good news is that no one is likely to be presenting that dimension on a report.  The bad news is that I have a calculation I need to perform that I am pretty sure is going to have serious performance problems.  I've optimized it to the degree I can figure, I'm willing to pursue any other avenues you can suggest including transferring logic to ETL, reworking MDX along different lines, cache warming, specific aggregations, etc.

Without further ado..

SCOPE ( [Customer].[Account Code].[All], [Measures].[CEMI-2] ) ;This = Count (
{
  
Filter (
    
NonEmpty (
      {
        
Descendants( [Customer].[Account Code].[All],, Leaves) - [Customer].[Account Code].[Unknown]
      },
      Measures.[Outage Count]
    ),
    ( [Outage].[Interruption Flag], [Measures].[Customer Outage Count] ) > 2
  )
} ) ;
format_string (This ) = '#,##0;(#,##0)' ;END SCOPE ;

The Customer.[Account Code] attribute is the one that is likely to have 700k members.  It is the key of the customer dimension.  The NONEMPTY() function seemed to help a great deal, but I'm not sure if that will be the case once I get my full production data because a lot of customers will have at least one outage.   I know the filter function is my big hog here, is there a better way?

I don't see how transferring logic to the ETL can work in this case, given the nature of the calculation.  I would have to create a measure group restricted to just one or maybe two dimensions and have everything hardcoded..

I haven't done aggregations on my cube yet, but I also don't have the full load of data yet, so I figure the situation will get worse not better.

Thanks so much for your assistance, I really enjoy a good MDX problem and this looks to be a fun one.

-Ken

hide dimension with role

$
0
0

I know we can't hide a dimension within a security role.

My question is more like : why it hasn't been addressed yet ?

I have found reference to that problem dated as back to 2007 ..

This simple fact has the implication that we need to deploy new cubes just for that single issue...


k.r.


AdomdClient - can't open a connection in vb aspx page

$
0
0

Hi,

I'm trying to open a connection to a cube on an aspx page using vb and the Adomd client.  I have the following script, it falls over at the objConnection.Open() line as I am using sharepoint 2010 I don't get any helpful error messages.

<!Include required libraries><%@ Import Namespace="System.Data.SqlClient" %><%@ Import Namespace="System.Data" %><%@ Register TagPrefix="custom" Assembly="Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, 
        PublicKeyToken=89845dcd8080cc91, Culture=Neutral"  Namespace="Microsoft.AnalysisServices.AdomdClient" %><%@ Register TagPrefix="custom" Assembly="Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, 
        PublicKeyToken=89845dcd8080cc91, Culture=Neutral"  Namespace="Microsoft.AnalysisServices" %><!Start script><script runat="server">

'Create DataTable object called TempTable
Public TempTable = New DataTable()

sub Page_Load

    Dim strSessionID As String = ""
    Dim objConnection As New AdomdConnection
    Dim cmd

    Try
  objConnection.ConnectionString = "Provider=MSOLAP;Data Source=localhost;Initial Catalog=ScorecardData;Integrated Security=SSPI"
        cmd = new AdomdCommand("select [Measures].[cost] on 0 from [ScorecardData]",objConnection)        
        objConnection.Open()       
    Finally
        objConnection = Nothing
    End Try

End Sub

        
</script><!build javascript function string>
function plotResults(){<% 
Response.Write("Include dynamically built string here")
%>
}<script>

Can anyone see what I am doing wrong? Or suggest something to try.

Thanks


MDX/Cube Space question: Calculated Member defined using User Defined Hierarchy vs. Attribute Hierarchy returns different values.

$
0
0

Hi,

I have run into a problem that I would appreciate if you can provide some insight into. As you will see I have a workaround for my project at work, this question is just for my own understanding of the matter. When defining a calculated measure that has a fixed member of a certain attribute (e.g. Sales for Quarter 1 2013) I get different results depending on if I use a user defined hierarchy or an attribute hierarchy to define the measure. The attribute relationships have been defined correctly. I know that in assignments in MDX scripts the value of a cell can be overwritten either using a user hierarchy or an attribute hierarchy and the results are the same. I expected to see the same behavior for a calculated member regardless of which hierarchy I used.

I have reproduced the problem in AdventueWorks. Please look at the following:

WITHMEMBER [Measures].[Fixed Quarter UDH]AS--Calc defined with User Defined Hierarchy

(

[Measures].[Reseller Sales Amount] , [Date].[Calendar].[Calendar Quarter].&[2008]&[1]--[Q1 CY 2008]

)

MEMBER [Measures].[Fixed Quarter AH]AS--Calc defined with Attribute Hierarchy

(

[Measures].[Reseller Sales Amount] , [Date].[Calendar Quarter].[Calendar Quarter].&[2008]&[1]--[Q1 CY 2008]

)

SELECT

{

[Measures].[Reseller Sales Amount],

[Measures].[Fixed Quarter AH],

[Measures].[Fixed Quarter UDH]

}

ONCOLUMNS,

{[Date].[Date].[Date].&[20080101],

[Date].[Date].[Date].&[20080501]}

//[Date].[Calendar].Members

ONROWS

FROM

[Adventure Works]

This is what I get back:

How would you explain the different results from the two calculated measures. The Fixed Quarter UDH is correctly returning what I am after and it does give me what I am looking for as far as my client wants. However I would like to understand why the other calculation is behaving the say it does.? Based on the outcome I guess that when I use the user defined hierarchy (after overwrite semantics apply), the end result is that days are set to all days and the quarter is set to Quarter 1 of 2008. On the other hand, the calculation that uses the attribute hierarchy, as long as the day rolls up to the quarter, returns the value of that day, else returns NULL.

I put on calculation in the query at a time and looked at the Query Subcube generated. The subcubes are different:

Part of the Subcube event for the calculation using attribute hierarchy:

Dimension 5 [Date] (0 0 14 0 0 0 2 6 13 140 5 0 0 0 0 0 0 5 168 51 2)  [Fiscal Year]:0  [Date]:0 [Calendar Quarter]:[Q1 CY 2008]  [Fiscal Quarter]:0  [Calendar Semester]:0  [Fiscal Semester]:0  [Day of Week]:[3]  [Day Name]:[Tuesday] [Day of Month]:[1]  [Day of Year]:[1] [Calendar Week]:[Week 1  CY 2008]  [Month Name]:0  [Calendar Year]:0  [Fiscal Semester of Year]:0  [Calendar Semester of Year]:0  [Fiscal Quarter of Year]:0  [Calendar Quarter of Year]:0 [Month of Year]:[January]  [Fiscal Week]:[Week 28 FY 2008]  [Calendar Week of Year]:[CY Week 1]  [Fiscal Week of Year]:[FY Week 28]

Part of the subcube event for the calculation using the user defined hierarchy:

Dimension 5 [Date] (0 0 14 0 12 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0)  [Fiscal Year]:0  [Date]:0 [Calendar Quarter]:[Q1 CY 2008]  [Fiscal Quarter]:0  [Calendar Semester]:[H1 CY 2008]  [Fiscal Semester]:0  [Day of Week]:0  [Day Name]:0  [Day of Month]:0  [Day of Year]:0  [Calendar Week]:0  [Month Name]:0 [Calendar Year]:[CY 2008]  [Fiscal Semester of Year]:0  [Calendar Semester of Year]:0  [Fiscal Quarter of Year]:0  [Calendar Quarter of Year]:0  [Month of Year]:0  [Fiscal Week]:0  [Calendar Week of Year]:0  [Fiscal Week of Year]:0

If you run the above query and put [Date].[Calendar].[Members] , you will see that the [Fixed Quarter AH] comes back as I expect it to set to the quarter value for the All, Year, Semester and Quarter levels. It is at the Month and Day levels that I cannot explain what’s going on.  

Interestingly, if you create a similar query using the Geography dimension, this behavior does not exist.

With

             Member [Measures].[GA Sales AH]AS

              ([Measures].[Reseller Sales Amount] , [Geography].[State-Province].[State-Province].&[GA]&[US])

     Member [Measures].[GA Sales UDH]AS

     ([Measures].[Reseller Sales Amount] ,[Geography].[Geography].[State-Province].&[GA]&[US])           

SELECT {[Measures].[GA Sales AH], [Measures].[GA Sales UDH]

       }ONCOLUMNS,

[Geography].[Geography].MembersONROWS

FROM [Adventure Works]

This is the results and the two calculations are both correct. In the profiler, they both generate the same subcube.

The only difference between Date and Geography that I noticed is that the Geography dimension does not use the GeographyKey (The Key Attribute) in the user defined hierarchy.

I have consulted several books and articles about strong attribute relationships,  hierarchies and SSAS overwrite semantics to refresh my memory. As far as overwrite semantics there are not that many in depth articles available, there are some high level examples in the books but they all use the user defined hierarchies.

I appreciate any help, clues, or resources you can provide.  I get the same results on SSAS 2012 and SSAS 2008 R2.

Thanks,

Shabnam


Olap4j with MS Analysis Services on SQL Server 2005 Error Connection Reset

$
0
0

After two days struggle getting IIS 7 set up to run msmdPump.dll, I get the following line of Java code working:

Class.forname("org.olap4j.driver.xmlaOlap4jDriver");

Connection connection = DriverManager.getConnection (

                                       "jdbc:xmla:Server=http://genomic-app-02/olap/msmdpump.dll"

                                    +";Catalog=AnalysisServiceSNP"

                                     , null  // no userid

                                     , null  // no password );

OlapConnection oConnection = connection.unwrap(OlapConnection.class);

OlapDatabaseMetaData metadata = oConnection.getMetaData();

However, I could not do much with the connection because I kept getting the error of java dot net dot SocketException: Connection Reset, for statements like:

Resultset catalog = oConnection.getCatalogs();  // failed with Connection Reset error

OlapStatement stmt = oConnection.createStatetment();  // failed with Connection Reset error

Any help with what possibly the error with Socketexception: connection reset is greatly appreciate.

Configuration:

IIS 7 (on Genomic-app-02 server)

Analysis Service on SQL Server 2005, with OLAP DB already created and have data, was able to query data using MDX; on  Genomic SQL-01 server

 (i.e. the IIS Server is on a different machine than the database, though they both are in the same domain)

<SessionTimeout> in the msmdpump.dll is set at 10 hours or 36,000 seconds (just for testing)

On the Analysis Service of the sQL Server, both maxIdleTimeout and minIdleTimeout are set to 0 (no time out, right?)

Thanks

My Coyne

Incorrect DataSet field generated in the OlapQueryLog when querying using Excel and doing grouping on the dimension attribute

$
0
0

We are getting an error when using usage based aggregations.

TITLE: Aggregation Design Wizard
------------------------------

Errors in the aggregation designer. The '1,000000000000010000000000000,0001000000000000000000,0000000000000000000000000,0000000000000000000,000001000000001,00000000000000000000000000000000,0000000000000000000,1,000000000000010001000,011,000000000000,0100000000000000000' usage based optimization query is not valid. For the appropriate format, refer to the product documentation.

To restart the process, resolve the problem, and then click Start.

The error is outlined in Microsoft connect:

"Incorrect DataSet field generated in the OlapQueryLog when querying using Excel and doing grouping on the dimension attribute" with id 464703.

This bug is for SQL Server 2008 with the client using Excel 2007. Microsoft say they have fixed this issue.

I have the same issue but with SQL Server 2008 r2 and the client using Excel 2010.  Can anybody tell me is the issue has been fixed with SQL Server 2008 r2?


How to calculate the date difference in the "edit named calculation" of SSAS?

$
0
0

Hi,

I am calculating the "Transit Time: InvoiceDate – ShipDate" in the "edit named calculation" of SSAS's DSV. However, the invoicedate and shipdate in my table are integer format such as 20130815, how can I convert them to dateformat so that this function in the "edit named calculation" work: DateDiff(day, InvoiceDate, ShipDate).

Thanks for your help!

Adomd.net and parent child hierarchies

$
0
0

One problem I've run across with Adomd.net data connections inside of BIDS is that parent child hierarchies are displayed in a single column when you run a query against them.  The OLEDB doesn't have that issue.  It will display each level in the parent child hierarchy as a separate column.  Does anyone know how to flatten out the hierarchy with an adomd.net connection?

 

 

how to open ssas cube in openoffice excel sheet

$
0
0

Hi,

I deployed one Sample SSAS cube in SQL Server 2008 R2.

See i want to see that cube in open office excel.here my organization using open office

Can anyone tell me the steps how to open cube in open office excel?

am totally new to SSAS.

Is it possible to connect or not? please anyone help
Viewing all 14337 articles
Browse latest View live


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