.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to create a new measure group for distinct count measure?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :

There is a warning info on my distinct count measure saying "break distinct count measure to a new group to improve performence...", but When I create a new measure group, I cannot choose the fact table which contains the distinct count measure field, as there is already a measure group using this fact table.

Then how could I remove this warning info?

Regards! directfriends.net

View Complete Post

More Related Resource Links

SSAS 2008 Measure group Distinct count

Hi all, I have a data of as number of trasactions,DD, SO, BouncedDD, CancelledDD all are in count (number) while adding these measures manullay to a measure group I have selected usage as DistinctCount for one measure and for all the remaining measures as DiscinctCount.While deploying the cube it shows error as "Fact table canot have more than one distinct count"  

Same measure group for count and distinct count in SSAS


Hello there,

I need to make DistinctCount aggregation of few columns in the same fact table in SSAS. For each DistinctCount it creates a new measure group. I need to put all these under same measure group. Please let me know how to go ahead.



processing measure group : memory error : the operation cannot be completed because the memory quota

Hi, I'm stucked with this problem. Untill last week, the cube processed without any problem. Since last week, I'm getting this error. I have been searching in different forums, and I tried some suggestions, like changing memory limit properties, ... It is getting worse.. So I reset all properties to default again. I am running SQL-Server + MS-AS 2005 SP2 on server with 4GB of memory. This is a dedicated server, nothing else is running on it. The fact table has +/- 14 million records, several dimensions en 2 measure groups. I don't have problems to process the dimensions, but when I try to process the cube or the measure groups of that cube separately , the error persists. I have changed the datasource view, and replaced the fact table by a Named query. Even when I put a 'WHERE datapart( year , fact_date ) >= 2009 ' clause to reduce the number of records to +/- 5 million, I'm still getting the error. I don't understand what is wrong, the cube always processed since +/- 2 years. As I said, I have found a lot of this kind of Issues on different websites, I have been trying to change some properties. But this still does not solve the problem. Could it be that MS-AS settings are corrupt somewhere ? Is it a good idea to re-install MS-AS 2005 + SP1 + SP2 ? Or is there another reason possible ? I really appreciate any kind of help, because I'm

Optimize Calculated Measure containing COUNT EXISTING

Hi, My goal is to change the text color of all cells that contain aggregated values. Currently I achieve it like this: I COUNT the members of all attributes of all dimensions. To be multi-select-safe I am using the EXISTING keyword. If the members count of at least one dimension is not 1 than the background color of the cell is changed. CREATE MEMBER CURRENTCUBE .[Measures].[SingleCellSelected]   AS iif ((COUNT (Existing ([Dim1].[Attr1].[ Attr1].MEMBERS ))=1) AND (COUNT (Existing ([Dim1].[Attr2].[Attr2].MEMBERS ))=1) AND (COUNT (Existing ([Dim2].[Attr3].[Attr3].MEMBERS ))=1) AND (COUNT (Existing ([Dim2].[Attr4].[Attr4].MEMBERS ))=1) AND (COUNT (Existing ([Dim3].[Attr5].[Attr5].MEMBERS ))=1),1,0),   VISIBLE = 0  ;    SCOPE ([Measures].AllMembers ); FORE_COLOR (this ) = iif ([Measures].[SingleCellSelected]=1,0,16744448); END SCOPE ; This approach works but it performs badly with attributes with many members. Do you have any idea how to optimize this? Thank you!

Measure - New Customer Count

I need to create a measure which counts the number of new customers for each time period. My fact table contains the customer number and its easy to create a distinct count of customers per month/week/year. I'm thinking I need to obtain the first order date for the given customer and compare if the select period is within the time frame, then include or exclude.  

How to create a Measure without aggregations

Hi all, The data in the fact table has columns which are precalculated ranks for the products based on sales. How to create them as measures in the cube without any aggregations. I selected the properties for measure as "No Aggregations" while creating. But I dont see any data. Then I tried to create those columns as seperate dimensions by doing self join to the fact table.In this way I get the correct data,but the performance is slow. Is there any other way to try out which has both data and performance. Please help me out. Thanks, Sam

how to process just one partition along with other measure group and dimension in SSIS package Analy

HI All, i have to process just one partition1  of measure group A ,along with this i suppose to process all the Measure group and dimension with the help of SSIS Package Analysis Services Processing task. Partition1 having a query which fetch data only for previous day only. what i have done i select partition 1 in process data mode,all other measure group in full mode and dimension in process update mode.   i haven't taken measure group of partition1 and also not taken cube in the processing list ,when i run the package ,it runs suceesfully but data not get uplaoded into the Cube.   kindly suggest what other measures should i take to update the data . Amit

Measure Group Bindings

Hi fellows, how are you doing? I'm having a problem trying to associate a Measure Group that haves 2 columns for two different attributes of a dimension with a regular relationship. I've just associated one of the columns in the relationship window, and then in the Advanced window associated the another. While from the configuration point it's fine, when I try to break the values of this dimension group down by the two different attributes, just the one that was associated in the main window works, when I try to break the analysis by the second attribute, it repeat the total of the measure by each attribute. Why this is not working? Thanks, RafaelRafael Veronezi Database Administrator | BI Analyst Twitter: ravero Blog: http://raver0.wordpress.com

Financial Reporting Measure Group question in Adventure Works 2008 R2


I need some help understanding the Financial Reporting measure group in Adventure Works 2008 R2. I get a value of $12,609.503 when I just drag amount into the query pane. Which accounts is this made up of, and how does it get to this result? Thanks.

Alter measure group: Impact on cube processing?

Hi All,

I have a XMLA script to alter source column (<ColumnID>) of a measure. I would like to know
following regarding the script:

1 - Do I have to 'Process Full' the cube or other processing options are applicable?
2 - The cube takes 2 hrs to process. Will there be reduction in process time processing the cube
    after running the script or will it take the whole 2 hrs?
It running cube on production so I would like to minimize the impact of the alter script.

Thanks in advance for any help.

Hide a measure group in excel 2007 'Show Fields Related to'


Hi All,

I know that if a I want to hide a measure group to users I have to set the properties 'Visible' to false for all the measure of the measure group.

But when I open a connection to the cube with Excel 2007 I see again the measure group in the drop down list 'Show Fields Related to' in the 'Pivot Table Fields List'.

I don't see it in the measure group list when I choose 'All' in the 'Show Fields Related to', but i don't want to see it in the list 'Show Fields Related to' too.


How I can do to hide permanently the measure group?


Thank you all,


Measure Group Shows Empty


I've searched this forum and read a few posts similar to mine, but they either weren't answered, or the answers didn't work.


I have an Analysis Services database with about 8 measure groups and about 25 dimensions.   We just released our new version into our production environment today, and we have one measure group that shows up completely empty.  All functionality worked in development, was tested in stage, but now this one measure group doesn't work.  I can check all connections to db, data source, dsv, to cube, to measure group, and everything is fine.  From within BIDS, I can right click a fact table and explore data, and data is there.  Data is also there in the fact table inside the database engine.  When I try and browse the cube, or query with MDX, just the one measure group shows all null.  Any thoughts?

Quering LastChild-measures results in scanning all partitions in measure group



I have a large fact table with daily warehouse snapshots. I created a measure group with 2 measures with LastChild aggregation function (balance in pieces and EUR). I built monthly partitions in the measure group. When I run queries like this:

select {[LastChildMeasure1]} on 0,
non empty [Locations].[Location].[Location] on 1
from [Cube]

, SSAS 2008 scans only last partition. But when query both measures:

select {[LastChildMeasure1],[LastChildMeasure2]} on 0,
non empty [Locations].[Location].[Location] on 1
from [Cube]

, SSAS begins to read all partitions. When I remove "non empty" before [Locations].[Location].[Location], then SSAS reads only last partition again, but null-rows appear in query results. My Time dimension has "Type=time" and all internal DATAID's are in right order and all attribute relationships are correct.

Is there any suppositions why SSAS reads all partitions and how to avoid this?

DistinctCount and incorrect measure group


SSAS 2008.  I have one measure group with regular sum and count aggregations.  I have another measure group for a DistinctCount aggregation from the same source table.  I would like to add a second DistinctCount aggregation.  However, when I add this measure through Visual Studio, it puts it under my sum/count measure group.  Any ideas on how to force it into my DistinctCount measure group or a brand-new measure group?



how to create calculated measure in cube that always gives value on Year level in Date hierarchy



I'm using SQL 2008 standarrd. Probably a simple question,

But I want to creata a calculated measure in a cube that always displays a measure(e.g. total sales) on the year level of the Date-dimension-hierachy.

So wether I choose Year, Quarter, Month or Day, it always shows the measure value  (sales) on the Year level. How to do that?

Regards, Hennie

how to create calculated measure in cube that always gives value on Year level in Date hierarchy



I'm using SQL 2008 standarrd. Probably a simple question,

But I want to creata a calculated measure in a cube that always displays a measure(e.g. total sales) on the year level of the Date-dimension-hierachy.

So wether I choose Year, Quarter, Month or Day, it always shows the measure value  (sales) on the Year level. How to do that?

Regards, Hennie

Link 1 measure group to 2 different role playing date dimensions and browse it by same date dimensio


hello, I'm Using SQL Server Standard 2008.

I have a measure group Sick leave, which holds measures like sick duration, and number of sick registrations.

For sick duration, the measure group is linked to the Date End role playing dimension by Sick End Date.

For Number of Sick registrations, the measure group is linked to the Date Start role playing dimension by Sick Start date.

But now I want to browse both sick duration and number of sick registrations at the same time against Date dimension,

How to do that?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend