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

How to enable document map in SSRS Report Manager

$
0
0

Hi Team,

How to enable Document Map in SSRS Report manager 2008 version.

laxman


partitions process issues

$
0
0
 

The "Ending Count" for the 7th jan is not matching with the "Starting Count" of 9th jan. The folowing could be reasons:

After investigation I found that the propoagation on the 8th was interrupted and stopped while classifications were being calculated.  Becuase of this problem the FactContracts tables contains most of the data however the FactContractClassification does not contain any data for the 8th.  Which means that the cube for the 8th partition was not processed.

how  to slove the this isssues

SSAS certifiaction from microsoft

$
0
0

Dear All,

Can any one help me to know is there any certification available on SSAS 2012 alone. Don't want complete BI(includes SSAS/SSRS/SSIS) certification. I am knew to only SSAS I don't have any idea on SSRS and SSIS.

so please provide information regarding SSAS Microsoft certification details and cost for certification, good books or links to attempt exam or dumps .

Thanks in advance..

Bhavani

Nasty role based security problem

$
0
0

Hi all, 

I have role based security working for 3 roles ok but the last one doesn't. They all basically work in the same way, here is the script for one that works:

Filter  (
  [Financial Period].[Period].MEMBERS, 
  (StrToMember("[Person].[User Name].[" + UserName() + "]"), [Measures].[Bridge Person To Financial Period Count] )  )  +
Filter  (
  [Financial Period].[Period].MEMBERS, 
  (StrToMember("[Person].[Remapped User Name].[" + UserName() + "]"), [Measures].[Bridge Person To Financial Period Count] )  )

Here is the script that is faulty:

Filter  (
  [Job].[Job Code].MEMBERS, 
  (StrToMember("[Person].[User Name].[" + UserName() + "]"), [Measures].[Bridge Person To Job Count] ) )  +
Filter  (
  [Job].[Job Code].MEMBERS, 
  (StrToMember("[Person].[Remapped User Name].[" + UserName() + "]"), [Measures].[Bridge Person To Job Count] ) )

I can run the faulty script in an MDX query under my account to test it and it returns the expected results.

When I try to test the security the symptom I have is when connecting to the database it hangs. I use the profiler and it captures the following error "Server: The operation has been cancelled. The 'Job Code' attribute in the 'Job' dimension has a generated dimension security expression that is not valid. Server: The operation has been cancelled."

If I remove the script the role works fine.

So far I have tried (but doesn't make any difference):

1) droping the SSAS database and recreating it - this has solved odd problems in the past

2) changing the query that populates the bridge table so it has loads more rows - not sure if there is a data thing causing problems.

There is one further odd sympton I have seen. When I edit the scripts that work in BIDS, at the point you select the attribute in the drop down list that has the script, BIDS is immediate for the scripts that work. For the faulty script, when I select the attribute it takes 50 seconds for BIDS to respond and allow me to edit the script. What is BIDS doing at this point? Could it be linked to the problem?

Does anyone have any suggestions?

The only things I can think of are to:

1) delete and recreate the job dimension

2) delete and recreate the role

Thanks in advance for having a look at this


Brian Searle

Semi-additive measure using specified time dimension

$
0
0

Hi,

I am trying to make a semi-additive measure which will represent an Order Intake calculation.  Please see the data below:

I plan on taking a copy of my Open Orders (Order Book) on the 1st of each month.  This gives me the ability to show that for example order A was entered in january, but at some point during the month it was increased by a value of 5.  So if I use Order_No and Value i see the following - which is good:

ORDER NOValue
A15
B20
C25
D10

Using snapshot_date as below, is good:

DateValue
2014-01-0130
2014-02-0150

However, using Brand i see the following:

BrandValue
X15
Y35

What I don't understand is why the value in X is wrong, but Y is right?  I am expecting the sum of the different orders within the brand, but the latest value by snapshot date.

The "Value" is using the AggregateFunction "LastNonEmpty".

I hope this example makes sense and look forward to some responses!

Thanks

Limitations on Calculated members

$
0
0

Hello Forum

There is this very annoying limitation causing the infamous "A set has been encountered that cannot contain calculated members". I spent too much time figuring out workarounds and browsing for answers to get calculated members and measures work in different scenarios.

What are the alternatives? My spontaneous and probably not that good thoughts go in direction of creating columns with triggered updates in underlying tables, making views with calculated columns in the data model or move the view queries into data source view.

Any thoughts?

Regarding ROWSET Action in SSAS

$
0
0

Hi,

We have 1.9 billions of data in the Fact table which is having Serial Numbers of HP Products. We have some default dimensions like Product , Customer , Geography and Date. Now We need, when I drill-through (Probably Row Set Action) we have to get the List of serial Number and its related information from the Relational Database table with dynamic filter which the end user is selected in Excel or Poly vista.

For Example We have Product ID ---XXX and YEAR--2006 and Count---200. Now We have to pass the dynamically the Filter Product ID, Year to Relational database and we have to get the 200 serial numbers information.

We tried to add Dimension with Serial Number. But Cube is very Slow . It is taking so much of time for processing (Some times cube processing is not finishing even for 1 or 2 days) and Query execution(Excel)

 


Thanks &Regards Rajesh

Permissioning dimension members through parent dimension in hierarchy

$
0
0

In an SSAS database I am using the dimensions "agencies" and "campaigns". There are about ten agencies and about 2000-5000 campaigns per agency. The requirement is to permission users on agency level. When a user is in a role that is permissioned for agency 1 only, then he must not be able to view any other campaigns than the campaigns of agency 1.

Of course this could be done by simply giving the role access to campaign members that belong to agency 1. A very long MDX statement would be required for that. However, I guess the scenario is quiet common and I spotted some approaches but I don't know which is a good practice:

  • Using factless facts between agencies and campaigns (it seems unnecessary, since there is an agengyID in the campaign table)
  • Using an MDX statement in the campaign permissions that selects the campaigns through the parent agency members
  • Set up a hierarchy between agency and campaign (actually I tried that and it seems a logical thing to do, but the hierarchies seem not to deal with permissioning at all)
  • Something completely different maybe?

Two Cube dimensions with the same name.

$
0
0

Hi

If I have a cube dimension that has the same name as another cube dimension, will this be an issue when quering the cube through 1) Excel 2) SSRS or Cognos Reports?

For instance: The Database dimension DimOrganization exists in cube A as well as

DimOrganization_Dep. Both dimension has the same attribute names and the same hierarchy names.

Their database names are different. (object_ID and Object_name differs) 

In the cube I change the name of DimOrganization_Dep to DimOrganization.

This seem to work when I query the cube in Excel, the mdx looks like this;

SELECT NON EMPTY { [Measures].[AntalNotNull] } ON COLUMNS, NON EMPTY { ([Dim Organization].[Yes- No].[ Yes- No].ALLMEMBERS * [Dim Organization].[Yes- No].[Yes- No].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [TEST] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

 

Anyone knows if this kind of setup will result in problems when quering from SSRS reports or Cognos?

And/or if even though I get it right in the cube (quering from Excel) it might as well give me the wrong result the next time?

 

Cheers

/Martin

memory requirements for ssas 2008 olap cube

$
0
0

Hello Friends,

we have a big olap cube greater than 1 TB and grows daily. I would like to know memory requirements of this cube.As of now we have 72GB memory server which includes SSIS and SSAS query and processing.What i mean is daily data load occurs at night,and users query cube during the business hour at same server ? Do i need to do data load  and cube processing at different server,or increase the memory ? Do you think 72 gb is enough for the cube which is bigger than 1TB ?

Thanks in advance.

Finance Report PTD and YTD calculations

$
0
0

Hello All,

I have a Report using the SSAS as Data-source.

It is a finance report and I need to calculate PTD and YTD amounts.

PTD:

sum the amount for all of the years till a selected Fiscal Period(Parameter)

Example: If The Cube have data for 2012, 2013 ,2014 and I have selected NOV-14 as my Fiscal Period , It should sum up the data for all the years including 2014 till Nov-14.

YTD: should calculate the data for a Year till selected report period. Fiscal Period is not date data type.

Please suggest.

Best Regards,

Pragati

Thoughts on Tabular model for enterprise environments

$
0
0

Hi,

I wanted to ask people of their experience using Tabular (and Multidimensional) models in Enterprise environments.

So, when I say Enterprise, I'm personally referring to using SSAS within an organisation that:

  • Has to be scalable,
  • Is relativley Complex
  • Has slightly large to large datasets 
  • has many disparate systems

I've not used Tabular and from what I've read, it's more difficult to use in these environments due to scalability.  I'd appreciate if you could advise or just share your experiences of advantages/disadvantages with using each model (more specifically Tabular).

Thanks


paul watson

Fact tables with different granularity

$
0
0


We currently have 3 dimensions (Site, Well, Date) and 2 fact tables (GasEngine, GasField), both having granularity of a day.

GasEngine is linked to Site and Date

GasField is linked to Site, Well and Date

We now have a requirement to make the GasEngine fact table have granularity of an hour but keepGasField at a day.

We therefore must include a new Time dimension, which would only be linked to GasEngine.

Is it ok to have a DW with these two fact tables having different granularity? 

And would we therefore require two separate cubes for querying this data?

MDX to get last date MEMBER associated with a time LEVEL

$
0
0

Hi there,

I need to come up with a MDX calculation in my cube that takes an average 90 days forward from the last date member associated with whatever time level is being viewed in a time hierarchy.  Is this something anyone could help me with?  I can come up with code that is specific to a level (Year, Month, Week) but not one that is dynamic.

Best,

D

Adding up Downloads excessively due to multiple rows in Tabular

$
0
0

Hi All ,

We have fact table table which has data for Products that are taken down from the  App Store ,due to different reasons like App has risky key words , App has adult content etc  ...  We get the data from the staging table as below 

Staging table data

As the "reasonForTakeDown" column is having comma separated string , now we need to split this reason in to multiple rows taking Comma as the delimiter. So the first ,second and Third ProductGUIDs  have to repeated multiple times to each "reasonForTakeDown" as shown below 

FactTable Structure

So in the above example if get the sum(Downloads) for the productKey 1 , then value is 300 where as the Staging value is 100.Same as with the productKey 2 , Sum(Downloads) from the fact table is 150 where as the Staging value is 50 and same case with ProductKey 3 as well . Downloads and Revenue numbers are getting inflated due to multiple rows 

I have a Tabular basing on the above fact table and having measures as "Downloads" and "Revenue" which are set to aggregation type as "SUM".  For the products like 1,2 and 3 we aregetting inflated numbers from cube when compared to Staging table due to the column ReasonForRemovalkey.

Now the problem is avoid the excess counting of downloads and Revenue by keeping multiple rows in fact table to satisfy reasonForRemovalKey Scenario . Can you help me out in writing an DAX so that anytime i will get thecorrect number of downloads and revenue which are matching with staging table.

Approaches tried:

1)  Tried changing the aggregation type from SUM to Avg , but this aggregation type would give avg of downloads when the user selects multiple products. Suppose if the user selects ProductKey 1 & 2  then Avg downloads measure would be (100+100+100+50+50+50) / 6  = 75 , where as the original downloads sum is  100+50  = 150 .So Avg aggregation wont work for me.

2) I cannot divide the value of  downloads/NetRevenue for a product with the count of rows for that product in fact table.So that Sum(Downloads) and Sum(NetRevenue) would give me correct values.I cannot do this because , if want to get the downloads for a TCR and a product then i would download measure share of that TCR but not the total downloads.

Hope i explained my scenario well. Thanks in advance



function with Dimension.Uniquename using IIF condition

$
0
0
Hello All


Good Day

I have 10 dimension and 5 fact tables in my cube, calendar is one of the dimension and having Day, Month,Quarter,Semister and Year Attributes and build hierarchy on the same. 
We have 30 measures from all 5 fact tables.

The scenario is, I have 5 measure in the cube related to one measure group, but for the users we have to show only one measure from 5 measure.

For example measure names sales, sales1, sales2, sales3 & sales4. 
Dimension attributes from calendar Day, Month,Quarter,Semister and Year.

we have to show only sales measure to users but internally we have to use all 5 measure based on the attribute.

Scenario

If any user want to see data at Day level user will pull the Day attribute from calendar  it should consider sales measure. 
If any user want to see data at Month level user will pull the Month attribute from calendar  it should consider sales1 measure dynamically

I am trying to use the function with Dimension.Uniquename using IIF condition in my MDX but not able to form a query perfectly.

Could you please help me in preparing the query it would really help me..

thanks in advance..

Defining Dimensions, Attribute Hierarchies for a Link Table(Many to Many)

$
0
0

I have 3 Tables in the Database

Table 1: Transactions (Fact Table) - PK(TransactionId)

Table 2: Relationship (Dimension1) - PK(Relationship Id), FK_TransactionId, FK_CompanyId, RelationshipType

Table 3: Companies (Dimension 2) - PK(CompanyId)

Table 2: Relationship table is a link table between Transactions & Companies to facilitate many to many relationship. 

I defined Fact and Dimension tables accordingly but having issues defining Dimension & Attributes for Relationship tables

Relationship Dimension:

I have 3 hierarchy groups defined

Hierarchy 1 - Relation -Relationship Type,Relationship Id(PK)

Hierarchy 2 - Transaction - Transaction, Relationship Id(PK)

Hiearchy 3 - Company - CompanyId, Relationship Id(PK)

Defined the attribute relationship in the following way

RelationshipID(PK) ---> CompanyId , RelationshipID(PK) ---> TransactionId, RelationshipID(PK) ---> RelationshipTYpe

I am getting incorrect results when I deploy the cube. Not all the types are being displayed only 4 types are being displayed out of 27 types though there exists Transactions for all the Types.

To fix the incorrect results, I tried to break the Relationship Dimension into 2 dimensions seperating Transaction(Relationship Dim) & Company,Type (Companies Dim). I tried to configure a many to many Relationship type between my  Companies Dim & Fact Table Transaction. But I get the error that says 

"Companies Dim many to many dimension in the Tansaction measure group requires that the granularity of the Relationship dimension is lower than that of the Relationship measure group "

Any help regarding how to difine Dimensions & Attribute Hierarchies on a Many to many link table is appreciated.


How do I format the timedate datatype for the date dimension in BIDS?

$
0
0

Hello all!

I am at an intermediate level working with SSIS, SSAS and BIDS. I am using the SQL Server 2008R2 stack. I have created a cube in BIDS and have added a DimDate dimension. I have three datetime fields in my fact table formatted as: yyyy-mm-dd 00:00:00.00.000. How do I format these fields to yyyymmdd in my SSIS package, using the Derived Column tool (if that's the best way to accomplish this)? Even though I used the Time Dimension wizard, I am running into errors. I am assuming that it's because the Datetime fields in my Fact table are not in the correct format. I have created the date dimension hierarchy with a datekey but I think I need it formatted differently. I hope this make sense. Any suggestions? 

Getting incorrect numbers at aggregated level when filtering on Months in SSAS

$
0
0

Hi,

I have a calculated measure(Cumulative total) based on another calculated measure. When i look at entire year data, all the numbers at all levels show up correctly, but as soon as i filter on a particular Month, the Month level numbers still show correctly, but Quarter/Year level numbers still considers all the Months.

Calc used:

Sum(PeriodsToDate([CALENDAR].[Calendar].[year]),[Measures].[Number of Male Employees])

FYI - [Measures].[Number of Male Employees] is a calculated measure in SSAS.

how to make this query executable in SSRS: The query cannot be prepared: The query must have at least one axis.

$
0
0

WITH 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay]    AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[PreviousDay]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .PREVMEMBER  }
, [Measures].CURRENTMEMBER) 
MEMBER [FYDay].[DateHierarchy].[CurrentDay1]           AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(1)  }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay2]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(2)  }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay3]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(3)  }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay4]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(4)  }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay5]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(5)    }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay6]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(6)  }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[CurrentDay7]          AS AGGREGATE( 
{  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(7)  }
, [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[PTD]                         AS AGGREGATE(PERIODSTODATE([FYDay].[DateHierarchy].[FPERIOD], 
  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]
), [Measures].CURRENTMEMBER) 
 MEMBER [FYDay].[DateHierarchy].[WTD]                         AS AGGREGATE(PERIODSTODATE([FYDay].[DateHierarchy].[FWEEK], 
 [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]
), [Measures].CURRENTMEMBER) 


SELECT  
 { 
 [FYDay].[DateHierarchy].[WTD], 
       [FYDay].[DateHierarchy].[PTD], 
       [FYDay].[DateHierarchy].[PreviousDay], 
       [FYDay].[DateHierarchy].[CurrentDay], 
       [FYDay].[DateHierarchy].[CurrentDay1], 
       [FYDay].[DateHierarchy].[CurrentDay2], 
       [FYDay].[DateHierarchy].[CurrentDay3], 
       [FYDay].[DateHierarchy].[CurrentDay4], 
       [FYDay].[DateHierarchy].[CurrentDay5], 
       [FYDay].[DateHierarchy].[CurrentDay6], 
       [FYDay].[DateHierarchy].[CurrentDay7] 
 } ON COLUMNS, 
 {({ 
 [Measures].[Store Budget], 
 [MEASURES].[SNAPSHOTSOLDAMOUNT], 
 [MEASURES].[SHIPPEDAMOUNT], 
 [MEASURES].[SHIPPED VS SOLD], 
 [Measures].[% To Budget]

}, 
 {[STOREMASTER].[SERVICINGDC].[SERVICINGDC].ALLMEMBERS} 
 )} ON ROWS 
 from ( select {[STOREMASTER].[SERVICINGDC].&[Houston]} on columns 
 FROM [Model] 
 )
Viewing all 14337 articles
Browse latest View live


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