How to use and create Perspective in AX 2012
Today I will demonstrate you that How to use and create perspective in AX 2012.
To create a perspective for the cube
- In
the AOT, expand the Data Dictionary node. Right-click the Perspectives
node, and then click New Perspective.
- Select
the node of the perspective. In the Properties sheet, specify the
following property values:
Property
|
Value
|
Name
|
SalesAnalysis
|
Label
|
Sales analysis
|
Usage
|
OLAP
|
- Setting
the Usage property to OLAP indicates that the perspective will be used to
generate an Analysis Services project.
To add views to the perspective
- In
the AOT, right-click the Data Dictionary node, and then click Open New
Window.
- In
the new window, expand the Views node. Drag the following views onto the
Views node of the SalesAnalysis perspective:
View
|
Description
|
CustTransTotalSales
|
Contains sales invoice details.
|
CustTableCube
|
Contains master customer data.
|
- In
the AOT, right-click the SalesAnalysis perspective, and then click Save.
To add a table to the perspective
- In
the second AOT, expand the Tables node. Drag the following table onto the
Tables node of the SalesAnalysis perspective:
View
|
Description
|
CustPaymModeTable
|
Contains payment mode information.
|
- In
the AOT, right-click the SalesAnalysis perspective, and then click Save.
To set properties on the CustTransTotalSales view
- In
the SalesAnalysis perspective, select the CustTransTotalSales view.
- In
the Properties sheet, specify the following values.
Property
|
Value
|
AnalysisDimensionType
|
Transaction
|
AnalysisDimensionLabel
|
Sales type
|
- In
the Properties sheet, set the following values for each field on the
CustTransTotalSales view in the SalesAnalysis perspective.
Field
|
AnalysisUsage
|
AnalysisDefaultTotal
|
ExchangeRateDateField
|
||
AmountMST
|
Measure
|
Sum
|
TransDate
|
||
TransType
|
Attribute
|
Auto
|
|||
TransDate
|
Attribute
|
Auto
|
|||
All other fields
|
Auto
|
Auto
|
To set properties on the CustTableCube view
- In
the SalesAnalysis perspective, select the CustTableCube view.
- In
the Properties sheet, specify the following values.
Property
|
Value
|
AnalysisDimensionType
|
Auto
|
AnalysisDimensionLabel
|
Customer information
|
AnalysisMeasureGroupLabel
|
Customer details
|
- In
the Properties sheet, set the following values for each field on the
CustTableCube view in the SalesAnalysis perspective.
![]() |
|||
You can select several fields and set their
property values at the same time.
|
|||
Field
|
AnalysisUsage
|
AnalysisDefaultTotal
|
|
AccountNum
|
Measure
|
Count
|
|
Blocked
|
Attribute
|
Auto
|
|
GroupName
|
Attribute
|
Auto
|
|
City
|
Attribute
|
Auto
|
|
County
|
Attribute
|
Auto
|
|
Name
|
Attribute
|
Auto
|
|
State
|
Attribute
|
Auto
|
|
MainContactWorker
|
Attribute
|
Auto
|
|
All other fields
|
Auto
|
Auto
|
To set properties on the CustPaymModeTable table
- In
the SalesAnalysis perspective, select the CustPaymModeTable table.
- In
the Properties sheet, specify the following values.
Property
|
Value
|
IsLookup
|
No
|
AnalysisDimensionType
|
Auto
|
- In
the Properties sheet, set the following values for each field on the
CustPaymModeTable table in the SalesAnalysis perspective.
Field
|
AnalysisUsage
|
AnalysisDefaultTotal
|
Name
|
Attribute
|
Auto
|
PaymMode
|
Attribute
|
Auto
|
TypeOfDraft
|
Attribute
|
Auto
|
AccountType
|
Attribute
|
Auto
|
All other fields
|
Auto
|
Auto
|
To generate an Analysis Services project
- Click
Tools > Business Intelligence (BI) tools > SQL Server Analysis
Services project wizard. The SQL Server Analysis Services project wizard
form appears.
- Click
Next.
- Select
Create. In the Project name field, type Dynamics AX SalesAnalysis. Click
Next.
- Select
Sales analysis from the Available list and move it to the Selected list
and then click Next.
- On
the Select Microsoft Dynamics AX dimensions page, click Next.
- Select
Date from the Available list and move it to the Selected list and then
click Next.
- Select
Arabic, Chinese (Simplified), and English (United States) from the
Available list and move them to the Selected list and then click Next.
- Select
Add foreign currency support to the Analysis Services project and then
click Next. After the project is generated, click Next again.
- Select
Save to AOT. Select [New] from the list to create a new AOT node. Select
Save to disk, type the location to which to save the project, and then
click Next.
- On
the Deployment options page, Select Deploy the project. Specify the server
name. For example, localhost. Select Create new database. Type Dynamics AX
SalesAnalysis. Select Process the project after it is successfully
deployed and then click Next. Click Next and then click Finish.
To browse the analysis cube data
- In
BIDS, open the Dynamics AX SalesAnalysis Analysis Services project. If you
are using Microsoft Dynamics AX 2012 R2, the project is called Dynamics AX
SalesAnalysis initial.
- In
Solution Explorer, double-click SalesAnalysis.cube.
- Click
the Browser tab.
- Expand
the Measures node, expand the Total customer sales node, and then drag
Amount onto the data area..
- Expand
the Customers node, and then drag State onto the row area.
- Expand
the Customers node, and then drag Customers – Name onto the row area.
- Browse
the data. You can modify the rows and columns that display in the table or
add other dimensions to further slice the data.
To view cube objects in the generated project
- Expand
the Data Sources node. A data source that connects to the Microsoft Dynamics
AX OLTP database is displayed.
- Expand
the Data Source Views node, and then double-click Dynamics AX
SalesAnalysis.
- In
Solution Explorer, expand the Cubes node, and then double-click
SalesAnalysis.cube to display Cube Designer.
![]() |
Notice that the relationships between the
measures and dimensions have been inferred by using the relationships in
Microsoft Dynamics AX.
|
Click the Translations tab to
view the translations that exist for the cube. The SalesAnalysis cube has three
translations, Arabic (Saudi Arabia) English (United States) and Chinese
(People’s Republic of China).
- In Solution Explorer, expand
the Dimensions node to view the dimensions for the cube.
Comments
Post a Comment