Asd

Thursday, April 7, 2011

Properties that determine how dimensions and dimension attributes works in SSAS.

Three main property of dimension attributes in SSAS.

-KeyColumn
-NameColumn
-ValueColumn

  

1-KeyColumn- Contains the column or columns that constitute the key for the attribute, which is the column in the underlying relational table in the data source view to which the attribute is bound. The value of this column for each member is displayed to users unless a value is specified for the NameColumn property.

2-NameColumn- Identifies the column that provides the name of the attribute that is displayed to users, rather than the value in the key column for the attribute. This column is used to display a user-friendly column to users when the key column value for an attribute member is cryptic or not otherwise useful to the user, or when the key column is based on a composite key. The NameColumn property is not used in parent-child hierarchies; rather, the NameColumn property for child members is used as the member names in a parent-child hierarchy.

3-ValueColumn- Identifies the column that provides the value of the attribute. If the NameColumn element of the attribute is specified, the same DataItem values are used as default values for the ValueColumn element. If the NameColumn element of the attribute is not specified and the KeyColumns collection of the attribute contains a single KeyColumn element representing a key column with a string data type, the same DataItem values are used as default values for the ValueColumn element.

Sort alphabetically the property of dimension attributes


AttributeHierarchyDisplayFolder
 Identifies the folder in which to display the associated attribute hierarchy to end users.

AttributeHierarchyEnabled
 Determines whether an attribute hierarchy is generated by Analysis Services for the attribute. If the attribute hierarchy is not enabled, then the attribute cannot be used in a user-defined hierarchy, nor can the attribute hierarchy be referenced in Multidimensional Expressions (MDX) statements.

AttributeHierarchyOptimizedState
 Determines the level of optimization applied to the attribute hierarchy. By default, an attribute hierarchy is fully optimized, which means that Analysis Services builds indexes for the attribute hierarchy to improve query performance. The other option, NotOptimized, means that no indexes are built for the attribute hierarchy. This is useful if the attribute hierarchy is not used for querying, but is used for another purpose, such as ordering of another attribute hierarchy.

AttributeHierarchyOrdered
 Determines whether the associated attribute hierarchy is ordered. The default value is True. However, if an attribute hierarchy will not be used for querying, you can save processing time by changing the value of this property to False.

AttributeHierarchyVisible
 Determines whether the attribute hierarchy is visible to client applications. The default value is True. However, if the attribute hierarchy is not used for querying but for another purpose, such as ordering of another attribute hierarchy, you can save processing time by changing the value of this property to False.

CustomRollupColumn
 Specifies the column that defines a custom rollup formula.

CustomRollupPropertiesColumn
 Specifies the column that contains the properties of a custom rollup formula.

DefaultMember
 Specifies a Multidimensional Expressions (MDX) expression that defines the default member for the attribute.

Description
 Contains the description of the attribute.

DiscretizationBucketCount
 Contains the number of buckets into which to discretize.

DiscretizationMethod
 Defines the method to be used for discretization.

EstimatedCount
 Specifies the estimated number of members in the attribute. This value defaults to zero, until you run the Aggregation Design Wizard. You can either allow the wizard to count the number of records or you can enter an estimated value. Enter a value manually if you know the number and want to save the time it takes to query the database for the count. If you are working with a test subset of your production data, you can use the counts of your production data so that the aggregation design will be optimized for the production data rather than for the test data.

GroupingBehavior
 Provides a hint to client applications.

ID
 Contains the unique identifier (ID) of the dimension.

InstanceSelection
 Provides a hint to client applications about how a list of items should be displayed, based on the expected number of items in the list. Default value is none. The available options are:
·         DropDown   The number of items is small enough to display in a dropdown list.
·         List   The number of items is too large for a dropdown list, but does not require filtering.
·         FilteredList   The number of items is large enough to require users to filter the items to be displayed.
·         MandatoryFilter   The number of items is so large that the display must always be filtered.

IsAggregatable
 Specifies whether the values of the attribute members can be aggregated. The default value is True, which means that the attribute hierarchy contains an (All) level. If the value for this property is False, the attribute hierarchy does not contain an (All) level.

KeyColumns
 Contains the column or columns that constitute the key for the attribute, which is the column in the underlying relational table in the data source view to which the attribute is bound. The value of this column for each member is displayed to users unless a value is specified for the NameColumn property.


MemberNamesUnique
 Determines whether member names in the attribute hierarchy must be unique.

MembersWithData
 Used by parent attributes to determine whether to display data members for non-leaf members in the parent attribute. This property value is only used when the value of the Usage property is set to Parent, meaning that a parent-child hierarchy has been defined.

MembersWithDataCaption
 Provides a template string that is used by parent attributes to create captions for system-generated data members in the parent attribute. This property value is only used when the value of the Usage property is set to Parent, meaning that a parent-child hierarchy has been defined.

Name
 Contains the user-friendly name of the attribute.

NameColumn
 Identifies the column that provides the name of the attribute that is displayed to users, rather than the value in the key column for the attribute. This column is used to display a user-friendly column to users when the key column value for an attribute member is cryptic or not otherwise useful to the user, or when the key column is based on a composite key. The NameColumn property is not used in parent-child hierarchies; rather, the NameColumn property for child members is used as the member names in a parent-child hierarchy.


NamingTemplate
 Defines how levels are named in a parent-child hierarchy constructed from the parent attribute. This property value is only used when the value of the Usage property is set to Parent, meaning that a parent-child hierarchy has been defined.

OrderBy
 Describes how to order the members contained in the attribute hierarchy. The default value is Name, which specifies that ordering of the attribute members is based on the value of the NameColumn property, if any; otherwise. members are ordered by the value of the key column. Other values are:
·         Name    Order by the value of the NameColumn property.
·         Key    Order by the value of the key column of the attribute member.
·         AttributeKey    Order by the value of the member key of a specified attribute, which must have an attribute relationship to the attribute.
·         AttributeName    Order by the value of the member name of a specified attribute, which must have an attribute relationship to the attribute.

 OrderByAttribute
 Identifies the attribute by which to order the members of the attribute hierarchy.

RootMemberIf
 Determines how the root or topmost members of a parent-child hierarchy are identified. This property value is only used when the value of the Usage property is set to Parent, meaning that a parent-child hierarchy has been defined. The default value is ParentIsBlankSelfOrMissing, which means that only members that meet one or more of the conditions described for ParentIsBlank, ParentIsSelf, or ParentIsMissing are treated as root members. The following values are also available:
1-ParentIsBlank    Only members with a null, a zero, or an empty string in the key column or columns are treated as root members.
2-ParentIsSelf    Only members with themselves as parents are treated as root members.
3-ParentIsMissing    Only members with parents that cannot be found are treated as root members.

 Type
 Contains the type of the attribute. For more information, see Configuring Attribute Types.

UnaryOperatorColumn
 Specifies the column that provides unary operators.

Usage
 Describes how an attribute is used. The default value is Regular. Other available values are Key and Parent.

ValueColumn
 Identifies the column that provides the value of the attribute. If the NameColumn element of the attribute is specified, the same DataItem values are used as default values for the ValueColumn element. If the NameColumn element of the attribute is not specified and the KeyColumns collection of the attribute contains a single KeyColumn element representing a key column with a string data type, the same DataItem values are used as default values for the ValueColumn element.


Posted by - SUHAS R. KUDEKAR (MCTS - Microsoft Business Intelligence)
Learning Office 2010 + SharePoint 2010 + SQL Server 2008 R2


Wednesday, April 6, 2011

Show a List/Table/Tablix/Matrix with 5 rows data on each page in report.

what i have to do here is i have to give a page break after every 5 rows and rest of rows should be in other pages.

To display 5 rows one page I suggest that you could use List/Table/Tablix/Matrix to achieve your target.Generally speaking, we could use List to fix the number of rows that show on a page

Please refer to the following steps for your reference.

1. Insert a List/Table/Tablix/Matrix to your design surface.
2. Select the List/Table/Tablix/Matrix, right-click the Details in the Row Groups which is located on the left bottom.


3. Select Group Properties, click “fx” button at the right of the “Group on” label.


4. Type in the expression : = Ceiling(Rownumber(nothing)/5) 
Note: 5 is a number of rows that you want to display on a page, you could define it by your requirement.
5. Add a page break to the table inside the list.

Posted by - SUHAS R. KUDEKAR (MCTS - Microsoft Business Intelligence)
Learning Office 2010 + SharePoint 2010 + SQL Server 2008 R2


Tuesday, April 5, 2011

Error while deploying a copy of a cube 'OLE DB error: OLE DB or ODBC error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.; 28000.'

In Analysis Services 2008-R2, there are several impersonation options:

•Use a specific Windows username and password
•Use the service account
•Use the credentials of the current user
•Inherit (or default)

Try Out below things
1-Error implies impersonation info on connection string, security context failes.
Check for the service account on test server, and under impersonation info put service account.

2- Processing manually from SSMS and see if you get the same error or not.

3- You can go through these steps:
-Ensure that there is nothing deployed to your SSAS instance
-Open the project in BIDS Application
-Check project to make sure you are deploying to the right server
-Data Source - is it pointing to the correct location and does Test Connection succeed?
-Check the Impersonation Information tab and make sure that the option there will work for SSAS to connect to the database server - as in there is a login for the option
-Click on process and see if the solution gets deployed properly
-Process Cube


Posted by - SUHAS R. KUDEKAR (MCTS - Microsoft Business Intelligence)
Learning Office 2010 + SharePoint 2010 + SQL Server 2008 R2

Wednesday, March 30, 2011

Inserting data from one table to another table In Sql Server.



Posted by - SUHAS R. KUDEKAR (MCTS - Microsoft Business Intelligence)
Learning Office 2010 + SharePoint 2010 + SQL Server 2008 R2

Tuesday, March 29, 2011

IsAggregatable property of Dimension Attributes.

If the IsAggregatable property is set to True, an (All) level will exist. A hierarchy has no (All) level if the IsAggregatable property is set to False.

The presence of an (All) level in an attribute hierarchy depends on the IsAggregatable property setting for the attribute and the presence of an (All) level in a user-defined hierarchy depends on the IsAggregatable property of the attribute at the top-most level of user-defined hierarchy.

Note -  also that setting it to false means that the default member, if not defined, will be the first member in the list of members for that attribute. As such, any query will "Exists" any hierarchy selection from that dimension with a member from that attribute when the attribute is not queried explicitly.

 
Posted by - SUHAS R. KUDEKAR (MCTS - Microsoft Business Intelligence)
Learning Office 2010 + SharePoint 2010 + SQL Server 2008 R2

Monday, March 28, 2011

Types of MDX Functions available in MDX Queries.


Different type of Category as below


1.       MDX KPI Functions
2.       MDX Metadata Functions
3.       MDX Navigation Functions
4.       MDX Other Functions
5.       MDX Set Functions
6.       MDX Statistical Functions
7.       MDX String Functions
8.       MDX SubCube Functions
9.       MDX Time Functions
10.   MDX UI Functions
11.   MDX Value Functions

1-MDX KPI Functions

             KPICurrentTimeMember 
             KPIGoal 
             KPIStatus 
             KPITrend 
             KPIValue 
             KPIWeight 

2-MDX Metadata Functions

             Axis 
             Count (Dimension) 
             Count (Hierarchy Levels) 
             Count (Tuple) 
             Hierarchy 
             Level 
             Levels 
             Name 
             Ordinal 
             UniqueName 

3-MDX Navigation Functions

             Ancestor 
             Ancestors 
             Ascendants 
             Children 
             Cousin 
             Current 
             CurrentMember 
             CurrentOrdinal 
             DataMember 
             DefaultMember 
             FirstChild 
             FirstSibling 
             IsAncestor 
             IsGeneration 
             IsLeaf 
             IsSibling 
             Lag 
             LastChild 
             LastSibling 
             Lead 
             LinkMember 
             LookupCube 
             NextMember 
             Parent 
             PrevMember 
             Properties 
             Siblings 
             UnknownMember

4-MDX Other Functions

             CalculationCurrentPass 
             CalculationPassValue 
             CustomData 
             Dimension 
             Dimensions 
             Error 
             Item (Member) 
             Item (Set) 
             Members (String) 
             Predict 
             SetToArray 

5-MDX Set Functions

             AddCalculatedMembers 
             AllMembers 
             BottomCount 
             BottomPercent 
             BottomSum 
             Crossjoin 
             Descendants 
             Distinct 
             Except 
             Exists 
             Extract 
             Filter 
             Generate 
             Head 
             Hierarchize 
             Intersect 
             MeasureGroupMeasures 
             Members (Set) 
             NonEmpty 
             NonEmptyCrossjoin 
             Order 
             StripCalculatedMembers 
             Subset 
             Tail 
             TopCount 
             TopPercent 
             TopSum 
             Union 
             Unorder    

6-MDX Statistical Functions

             Aggregate 
             Avg 
             CoalesceEmpty 
             Correlation 
             Count (Set) 
             Covariance 
             CovarianceN 
             DistinctCount 
             LinRegIntercept 
             LinRegPoint 
             LinRegR2 
             LinRegSlope 
             LinRegVariance 
             Max 
             Median 
             Min 
             Rank 
             RollupChildren 
             Stdev 
             StdevP 
             Sum 
             Var 
             VarP 
             VisualTotals 

7-MDX String Functions

             MemberToStr 
             NameToSet 
             Root 
             SetToStr 
             StrToMember 
             StrToSet 
             StrToTuple 
             StrToValue 
             TupleToStr 
             UserName 

8-MDX SubCube Functions

             Leaves 
             This 

9-MDX Time Functions

             ClosingPeriod 
             LastPeriods 
             Mtd 
             OpeningPeriod 
             ParallelPeriod 
             PeriodsToDate 
             Qtd 
             Wtd 
             Ytd 
            
10-MDX UI Functions

             DrilldownLevel 
             DrilldownLevelBottom 
             DrilldownLevelTop 
             DrilldownMember 
             DrilldownMemberBottom 
             DrilldownMemberTop 
             DrillupLevel 
             DrillupMember 
             ToggleDrillState 
            
11-MDX Value Functions

             IIf 
             IsEmpty 
             MemberValue 
             ValidMeasure 
             Value 

 
Posted by - SUHAS R. KUDEKAR (MCTS - Microsoft Business Intelligence)
Learning Office 2010 + SharePoint 2010 + SQL Server 2008 R2