Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all 2472 articles
Browse latest View live

Naming Conventions - For Cube and Dimension

$
0
0

Is is valid/possible to have cube name for a dimension in a SSAS cube?

For example,

I am having a cube named as "NorthWind".

Now inside this cube can I have the same name "NorthWind" for a dimension?

Does this cause any conflict in MDX Query execution or any other in generating proper CellSet?


Week Range issue in named set...?

$
0
0

Hi..,

           i created named set ..

{

linkmember([Start Date].[Year -  Quarter -  Month -  Date].currentmember, [Date].[Year -  Quarter -  Month -  Date])

:  

linkmember( [End Date].[Year -  Quarter -  Month -  Date].currentmember,[Date].[Year -  Quarter -  Month -  Date])

}          when i give TI formula as Month:Month It works where as i created same Named set for week range..,

   

{

linkmember([Start Date].[Year -  Quarter -  Month -Week -  Date].currentmember, [Date].[Year -  Quarter -  Month -Week - Date])     :                                                                                                                                                                                 linkmember( [End Date].[Year -  Quarter -  Month -Week-  Date].currentmember,[Date].[Year -  Quarter -  Month-Week -Date])         }

But this fails... returns no value when use this ,if select for only one week  means Start date :1/1/2012, End Date:6/1/2012  measure value appears.., If i select more than a week column displays Week 1, Week 2, Week, Week4 but all the measure rows are empty. SD-1/1/2012, ED-31/1/2012.   Pls suggest where is the mistake..   All  the settings in time intelligence of data source  are correct with respect to Hirarchy ...    

Thanks,

Avula.GK.

                                               


Avula.GK

Some Error information when I update the SSAS to 2012

$
0
0

I have just update the SSAS from 2008 R2 to 2012. And migrate a 2008 cube to 2012 instance. When I try to open the Cube in BIDS, I met the following issue. (SSMS can connect to the Cube successful and work normally) Could someone help?

TITLE: Microsoft Visual Studio
------------------------------

Deserialization failed: The 'AllowedRowsExpression' element in the 'http://schemas.microsoft.com/analysisservices/2011/engine/300/300' namespace is unexpected.

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

The 'AllowedRowsExpression' element in the 'http://schemas.microsoft.com/analysisservices/2011/engine/300/300' namespace is unexpected. (Microsoft.AnalysisServices)

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

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

Very slow query time

$
0
0

Hello,

Currently we have reports in excel sheet which has pivot tables created from cubes.

I''' explain how these cubes are created:

We have several cubes, then one cube (lets call it cube A)which links all other cubes. Now cube A has several calculations which are built from the different linked cubes.

Then i combine all the calculations into one measure using a case statement. The case statement is like following

CREATE MEMBER CURRENTCUBE.[Measures].[Combined]
 AS CASE

WHEN [Goals Details].[Goal Description]=[Goals Details].[Goal Description].&[abc] then  [Measures].[abc]

WHEN [Goals Details].[Goal Description]=[Goals Details].[Goal Description].&[xyz] then [Measures].[xyz] and so on. Like this we have uabout 50+measures combined in [Measures].[Combined].

We use [Measures].[Combined] and  [Goals Details].[Goal Description] dimension attribute to get all the measures in pivot in excel. However, recently, as we are adding more measures, the time to refresh the excel sheet is increasing exponentially.

Do you think "SCOPE" instead of "CASE" is a better approach?

How do i optimize this? Please help. 

Initially,( 3 weeks back) everything was fine. but now without any major changes suddenly things have slowed down and is creating a lot of problem.

Thanks



SCOPE Statements in MDX

$
0
0

I am working on SCOPE statements in MDX (SSAS 2008)

SCOPE

(

[Item].[Hierarchy].[Item Type].&[Stationary],

[Measures].[Units Sold]

);

This = [Measures].[Units Sold]*2;

END SCOPE

Executing the query ...

No cube specified. A cube must be specified for this command to work.

Execution complete

While executing the above code in Analysis Server, iam getting an error like 

can anyone help me out of it please??


unexpected result with "Extract"

$
0
0

if I run the following query:

with member [Measures].[SOR Cost] as  ([D Services].[Service Unit Price].CurrentMember.membervalue) 
select [Measures].[SOR Cost] on 0, 
 Filter(([D Services].[Service Description].children,[D Services].[Service Unit Price].children),
 [Measures].[SOR Cost]>0)on 1
from [TC Cube]

I got:

I wanted to hide the second column, so I modified the last query and added EXTRACT:

with member [Measures].[SOR Cost] as  ([D Services].[Service Unit Price].CurrentMember.membervalue) 
select [Measures].[SOR Cost] on 0, Extract(existing (Filter(([D Services].[Service Description].children,[D Services].[Service Unit Price].children),
 [Measures].[SOR Cost]>0)),[D Services].[Service Description]) on 1
from [TC Cube]

unfortunately I got:

anybody knows why I'm getting All All All All ...  in the SOR Cost ?!! and how can i fix it ?

Views in SQl then add in DSV or use simple table in DSV then do calculation

$
0
0

Hi Friends

I'm new in SSAS. I need a suggestion from you friends that ;

i have one table in DSV

Uniqueid     PhoneID   Call_date     User        status

  1.2                  1233         march10     tw12     TPVP

3.4                   1233        march10      tw12       NA

4.9                1233        march15      tw11        NS

 5.5               1233        march16      tw12         TPVP

 6.9                5567        sep12       tw13        TPVP  

 484.4             45567       sep12        tw13        ND

 44.4               45567      oct10          tw13        LK

5.5                   45567      oct22         tw12         TPVP


and i have another table in DSV   TABLE2

that contain Phone_number record based on  max date

45567      oct22         VR12         TPVSS

1233        march16      VR12         TPVSS


I need to calculate

45567      oct22         VR12         TPVSS

1233        march16      VR12         TPVSS

Should i create VIEW/SubQuery/Inner join  in SQL and then add in DSV or  VIA relationship and all i can do this task.

Does isAggregate relevant to informative attributes??

$
0
0

Hi ev

Is property isAggregate relevnt at all to attributes wich are AttributeHeirarchyEnabled =false

(that is attributes which only add information to other analytic attributes).

TIA

Rea


Creating a Drillthrough which include the selected cell

$
0
0

Hi,

I am trying to make the following drillthrough work. I have two measure groups with each 2 values (values1,values2,values3,values4). Both groups are linked to 2 dimensions (Dim1, Dim2). I have created a drillthough action which looks like this Dim1.attribute1, Dim2.attribute2

Now if I normal drillthrough on any measure I get back Dim1

TopCount function for calculated member in Context aware calculation

$
0
0

Hi Experts,

I have a MDX query in which I am using context aware calculation.On the basis of the result I want to find out Topcount

e.g,

WITH MEMBER [Measures].[ConditionalSales]
AS
CASE WHEN [Sales].[BatchNo].Currentmember IS [Sales].[BatchNo].&[005]
THEN [Measures].[SalesAmount]
ELSE 0
END

SELECT {[Measures].[ConditionalSales]} ON 0,
NONEMPTY([Divion].[Divison].Members*[Sales].[BatchNo].[BatchNo].Members) ON 1 FROM [Sales]

Now I want to find out Top 3 divisions by [Measures].[ConditionalSales];How to do it?

I tried something like this,But it's not working

WITH MEMBER [Measures].[ConditionalSales]
AS
CASE WHEN [Sales].[BatchNo].Currentmember IS [Sales].[BatchNo].&[5]
THEN [Measures].[SalesAmount]
ELSE 0
END

SELECT {[Measures].[ConditionalSales]} ON 0,
TOPCOUNT(NONEMPTY([Divion].[Divison].Members*[Sales].[BatchNo].[BatchNo].Members),3,[Measures].[ConditionalSales]) ON 1 FROM [Sales]

*Here [Sales].[BatchNo].[BatchNo].Members is not used for display purpose rather for calculated member



DivisionBatchNoSalesConditionalSales
Sem52020
Sem4300
Sem54040
Ret4300
Ret53030
Ret5140140
Tem4500
Tem57070

DivisionConditionalSales
Ret170
Tem70
Sem60

I changed the query!Please see the above code.

Cannot Access Cubes from Excel please need help

$
0
0

Hi All,

I have a report in excel on my desktop and its running great for past few months and all of a sudden when i try to refresh the data i'm getting an error "Errors in the OLED Provider. Couldnot connect to the redirector. Ensure that the SQL Browser service is running on the server".

I can run the reports from a differernt machine. I went through the following links (http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/68da87d7-b7e6-43dc-a843-5757681a457d) and did everything thats mentioned in thel link but still cannot connect to the cubes from my machine, also i cannot connect to SSAS from my desktop. I can remote onto the server and connect to SSAS. Please need help.

Thanks

Is ColumnStore suposed to speedup cube processing in theory?

$
0
0

Hey guys,

It is snowing in MN, beautiful and troublesome.

Here is my test. Created a cube based on one fact table and 5 dimensions (Star schema) and put on a columnStore index on the fact table covering all columns.

I expect this columnstore can accelerate the cube processing(MOLAP, full process) however the actual result shows me cruelly cube processing with Columnstore index takes 12 mins and it takes sometimes ranging from 11 mins or 13 mins without a columnstore index.

I deprived the detailed queries of cube process to test in SSMS. It basically prove me columnstore does work by margin of 50% accelerating.

Now I am puzzled why generally it doesn't help cube processing speeding-up.

Am I something wrong in understanding? would love see your comments here


Derek

AS Calculation

$
0
0

Hi Guys,

I hoping someone could help me out.

Im in the process of building a cube and need to provide a gross profit calculation, sounds simple!! However my fact table is currently organised like this

Period        Category         Amount

 201101        OH                10.20

201102         LA                  25.56

201102         PL                 15.99

201101         REV               10000.00

My dimension is organised like this:

Key             Desc

OH              Overhead

LA               Labour

PL               Plant

REV             Revenue

How do can i write a calculation that provides the gross profit (REV -OH  - LA - PL)? do i need to create a named set or something? Any help would be most appreciated.

Regards

Dave


having clause not working with dimension member in mdx, please help, Thanks

$
0
0

we are trying to build a filter so the client can choose any data after June 2011, but when we try the following:

SELECT

NONEMPTY [Measures].[Patient Record Count]ONCOLUMNS,NONEMPTY [Admit Date].[Month].Children

HAVING

[Admit Date].[Month].value> [Admit Date].[Month].&[201106]

ON

ROWSFROM [GDDS Cube]

i got the result:

 Patient Record Count
March 2011 591976
August 2011 597885
October 2011 576546
January 2012 575131
February 2012 556645
March 2012 605619
April 2012 571132
May 2012 596262

as we can see March 2011 also showed up, and if we try

SELECT

NONEMPTY [Measures].[Patient Record Count]ONCOLUMNS,NONEMPTY [Admit Date].[Month].Children

[Admit Date].[Month].value < [Admit Date].[Month].&[201106]

ON

ROWSFROM [GDDS Cube]

we got a lot of 2012 month also as result, looks like this way is not working, in the date dimension, the month as the key as 201101 etc...and all the month are in the right order, question is why the having clause is not working properly, and if not, how we can build this query?

HAVING


jimmyji@live.com

Exploring 2005 cube from management studio 2008 error- attempted to read or write protected memory

$
0
0

Hi,

I've created my first cube in VS2005 and deployed to SQL server 2005 server.

I can browse the cube from VS and from the server MS. 

From my station MS which has SQL 2008 I can view the server's database objects but  when I try to browse the cube from there I get error:

'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

Is it possible to fix this? Can this have implications if I run SSRS 2008 / sharepoint 2012 BI based on this SQL2005 cube?


Namnami


DAX Relationships and how to include measures from both realted tables

$
0
0
I have Measure 1 in Fact table A with an M:1 relationship to Dim Table A; In Dim Table A I have Measure 2.   How do I allow for Measure 1 and Measure 2 to be in the same pivot table report?  The relationship only seems to work one way.  What are some strategies ? Do I have to create additional relationships and then use the USERELATIONSHIP function?  Will I have performance problems?

Jim

Process Dimensions and then Cube using AMO

$
0
0

Hello,

Trying to process Dimensions and Cube using AMO, here is the code:

server = new Server();
                server.Connect(ConfigurationManager.ConnectionStrings["CubeDataConnection"].ConnectionString);
                Database database = server.Databases.FindByName("BD");
                Cube cube = database.Cubes.FindByName("Cube");
//ProcessFull for Dimensions
                foreach (CubeDimension dimension in cube.Dimensions)
                {
                    dimension.Dimension.Process(ProcessType.ProcessFull);
                }
                DataSourceView dsv = database.DataSourceViews.GetByName("DSV");
                MeasureGroup measureGroup = cube.MeasureGroups.GetByName("Measure1");
                Partition partition = measureGroup.Partitions.GetByName("Measure1");
//ProcessAdd  for Cube
              partition.Process(ProcessType.ProcessAdd, new QueryBinding(dsv.DataSourceID, "SELECT * FROM SSAS.Data1"));
                MeasureGroup measureGroup2 = cube.MeasureGroups.GetByName("Measure2");
                Partition partition2 = measureGroup2.Partitions.GetByName("Measure2");
                partition2.Process(ProcessType.ProcessAdd, new QueryBinding(dsv.DataSourceID, "SELECT * FROM SSAS.Data2"));

So, I need ProcessFull for Dimensions and ProcessAdd for the Cube.

Processing for Dimensions is OK, but when ProcessAdd starts executing for the first partition, it goes on exception.. It says , that ProcessAdd can't be applied , because cube is not processed...

Could you help me to figure out how to execute processAdd for cube, after ProcessingFull for dimensions..

For additional info, please feel free to ask..

Thanks in advance

Incorrect key file for table .MYI'; try to repair it.

$
0
0

Hello Friends

When i process one of my dimension i get this error

The following exception occurred while the managed IDbCommand interface was being used: Incorrect key file for table '/var/tmp/mysql.VArBWG/#sql_aa0_8.MYI'; try to repair it.

i have googled this error i found it may be because of sapce issue and table corruption. but i have Repair the table and size is

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 64G 40G 21G 66% /

devtmpfs 16G 148K 16G 1% /dev

tmpfs 16G 4.0K 16G 1% /dev/shm

tmpfs 16G 0 16G 0% /var/spool/asterisk/monitor still i'm getting the same error.

when i execute this dimension for 10000 rows it works fine but as soon as when i process for whole rows i get the above error.

kindly suggest me some solution

Is it possible to use SSAS Cube in Powerpoint ?

$
0
0

Hi,

is it possible to build a powerpoint chart based on a SSAS Cube?

Regards

Andreas

Cube calculation

$
0
0

I understand that cube mdx calculation is calculated during every queries. So if using cube calculation to create a new measure and its aggregation, it has to calculate every times, so that there is no performance advantage as the normal measure.

I have a cube using "Add account intelligence" which set up the aggregation method for different account types. Does this mean that these aggregation have to be calculated during the query time and have no performance advantage as normal aggregation? In my cube, it allows user to change the aggregation formula for the account type, and the cube is re-processed. But the query take long time in some cases when the aggregations are based on very low grain details.

Is my understanding correct? Is there any better solution?

Thank you,

Viewing all 2472 articles
Browse latest View live


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