SSAS Basics
- 2. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Creating new SSAS project
- 3. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Creating new SSAS project
- 4. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Creating new SSAS project
- 5. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Create a Data Source
• In an Analysis Services multidimensional model, a data source
object represents a connection to the data source from which
you are processing (or importing) data.
• A multidimensional model must contain at least one data
source object, but you can add more to combine data from
several data warehouses.
- 6. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Create a Data Source
- 7. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Create a Data Source
- 8. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Create a Data Source
- 9. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Create a Data Source
• Use a specific user name and password - Select this option to
have the Analysis Services object use the security credentials
of a Windows user account specified in this format: <Domain
name><User account name>.
• Use the service account - Select this option to have the
Analysis Services object use the security credentials associated
with the Analysis Services service that manages the object.
• Use the credentials of the current user - Select this option to
have the Analysis Services object use the security credentials
of the current user
• Inherit Option - At the data source level, Inherit specifies that
Analysis Services should use the impersonation option of the
parent object.
- 10. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Create a Data Source
- 11. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Solving login failure during
cube processing
- 12. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Solving login failure during
cube processing
- 13. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
• A data source view (DSV) is an abstraction of a relational data
source that becomes the basis of the cubes and dimensions
you create in a multidimensional project.
• The purpose of a DSV is to give you control over the data
structures used in your project, and to work independently of
the underlying data sources (for example, the ability to
rename or concatenate columns without directly modifying
the original data source).
- 14. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
• DSV allows :
• The creation of new columns in existing tables (Named
Calculations)
• The creation of new logical tables (Named Queries)
• The assignment of logical primary keys
• The creation of logical joins between tables / named queries
- 15. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 16. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 17. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 18. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 19. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 20. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 21. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Data Source View
- 22. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Named Calculation
• A named calculation is a SQL expression represented as a
calculated column. This expression appears and behaves as a
column in the table.
• A named calculation lets you extend the relational schema of
existing tables or views in a data source view without
modifying the tables or views in the underlying data source.
- 23. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Named Calculation
- 24. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Named Calculation
- 25. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Named Calculation
- 26. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Explore Data
• You can use the Explore Data dialog box in Data Source View
Designer in SQL Server Data Tools (SSDT) to browse data for a
table, view, or named query in a data source view (DSV).
• When you explore the data in Data Source View Designer, you
can view the contents of each column of data in a selected
table, view, or named query.
• Viewing the actual contents assists you in determining
whether all columns are needed, if named calculations are
required to increase user friendliness and usability, and
whether existing named calculations or named queries return
the anticipated values.
- 27. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Explore Data
- 28. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Friendly Name
- 29. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Friendly Name
- 30. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
• A named query is a SQL expression represented as a table. In a
named query, you can specify an SQL expression to select rows and
columns returned from one or more tables in one or more data
sources.
• A named query is like any other table in a data source view (DSV)
with rows and relationships, except that the named query is based
on an expression.
• A named query lets you extend the relational schema of existing
tables in DSV without modifying the underlying data source.
• For example, a series of named queries can be used to split up a
complex dimension table into smaller, simpler dimension tables for
use in database dimensions.
• A named query can also be used to join multiple database tables
from one or more data sources into a single data source view table.
- 31. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
- 32. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
- 33. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
- 34. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
- 35. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
- 36. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Table / Named Query
- 37. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Primary Key
• Primary keys are required in Analysis Services to uniquely
identify records in a table, identify key columns in dimension
tables and to support relationships between tables, views and
named queries.
• These relationships are used to construct queries for
retrieving data and metadata from underlying data sources,
and to take advantage of advanced business intelligence
features.
- 38. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Logical Primary Key
- 39. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Creating New Diagram
- 40. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent.
ramkedem.com
Creating New Diagram