Overview
[top]
The View is a metadata layer used by Yellowfin to hide the complexity of database structures from Report Writers. The View is used to define which columns in your database you wish to make available for Report Building. These fields may come from multiple tables and therefore will require joins to be defined (the business logic that links rows in a table together).
The two major steps in creating a view include:
- Relationship Entity Diagram - selecting the tables you need from your database and defining how data in these tables are joined
- View Field Selection - defining which fields you wish to make available from these tables and providing metadata for them.
See [View Builder] for more information.
Creating a View
[top]
Creating Your Entity Relationship
[top]
The Entity Relationship is one of the key components of the view builder. This allows you to define all the key relationships between your selected database tables.
2. On the Person Fact table click the join link. This will open the join pop-up. Create a join between the AthleteFact Table and the Person Table.
Join From: AthleteFact
Join Type: Inner Join
Join To: Person
Join logic: PersonID Equal to PersonID
3. Click the Add button to add to the join list. You should now see the join logic as depicted on the right.
See [Drag & Drop View Builder] for more information.
Selecting Columns
[top]
Select columns that you wish to make available to your end users for reporting. Only columns selected from each table in your Unattached list will be available for reporting.
3. Click the Columns section link to open the options. A set of columns from the AthleteFact table will be displayed.
Select the AgeAtCamp, AgeGroupAtCamp, Cost, Demographic, InvoiceEstimate, InvoiceDate, and PersonID Columns.
4. Once you have selected these, click on the Properties link again to update your diagram.
See Table Properties for more information.
Apply Field Meta Data
[top]
Meta data is used to define how a field is to be used and also provides information to your end users.
Initially, fields selected from the previous step will all be in the Unattached panel in folders that represent the tables that they originated from. These fields have not had meta data associated with them and cannot be used by your report writers. You must assing fields to categories (folders) in the Available Fields panel. The reason you do this is to organise you fields in a way that is logical for the Report Writer, giving you the chance to group them differently than the table structure in the database.
3. Click the option next to the folder names to see the columns you have selected from each table.
4. From the AthleteFact table either select and drag the fields individually or use shift to click on each of the AgeAtCamp, AgeGroupAtCamp, Demographic, and PersonID fields and drag these into the Athlete folder.
On completion you will note that the column names are now in bold indicating that they have been added to the view.
7. This field will use an Org Ref Code to convert ISO Country Codes to their respective names. To set this up, click on the Format tab.
8. Set the Format option to Org Ref Code. In this case you will use an existing type that we have set up for a sample.
See [Organisation Reference Codes] for more information.
9. Select Country from the drop down menu.
10. Click on Save button to commit your changes.
11. The ISOCODE column will now be updated in the Athlete folder. This method is used to provide business terms for all your attributes.
See [View Fields] for more information.
Column Format
[top]
The format options will provide the default for how the field will be used on the report. A user will still be able to change a format for a specific report.
See [Field Format] for more information.
Add Calculated Field
[top]
In addition to fields from your database you can create calculated fields and pre-defined filters. In this example we will create a filter.
1. In the Unattached panel open the Calculated Fields folder and then the Formula Builder folder.
2. Drag the filter field into the Athlete folder.
6. From the Select Field drop down choose AgeAtCamp and click
7. Now select Greater Than or Equal to from the Operator drop down and click
8. Type in 65 into the text field above the operator drop down and click
9. Click the Click here to test this formula link. You should see a formula successful message displayed above the builder if successful.
10. Click Activate to save the field and make it available for use in reports.
11. You will now see the High Age Range calculated field in the Athlete category and it will have a filter icon instead of the usual dimension or metric icons.
See [View Calculated Fields] for more information.
Creating a Drill Down Hierarchy
[top]
A hierarchy is used to provide users with On Line Analytical Processing (OLAP) functionality. The hierarchy allows report users to drill down a dimensional hierarchy by limiting the result set as they select one level to the next. For example drill from Year (2008) to Quarter (3rd) to Month (August) etc.
5. Next click on the hierarchy tab. Select Yes for Drill Down and choose the MonthDate field. Click Save
6. Repeat this step for the MonthDate, WeekDate, and InvoicedDate fields.
7. Use the following date formats: DatePartFormatter, Month Name, Week of Year, Date format
8. When connecting the hierarchy, follow the order:
Year > Month > Week > Invoiced Date
9. You will now notice a connection between the date columns. This indicates that there is a hierarchy.
See [Drill Down Hierarchies] for more information.
View Summary and Saving
[top]
See [View Summary] for more information.
[top]