Learning Outcomes

After completing this section, you will be able to:

Example Use Case

For the purposes of this “Getting Started Journey”, we are using an example involving a fictional sports training business called “Ski Team”. Their data contains information relating to revenue from various ski camps and the athletes who have attended. 

Ski Team would like to analyze their overall financial situation. They want to break down the invoiced amount by dimensions such as customer regions, demographics and gender. They are also interested in understanding which ski camps are bringing in the most revenue this year and how that compares to revenue brought in last year.

About Views

A View is a translation 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 building Reports. These fields may come from multiple tables and therefore will require joins (the business logic that links rows in different tables together).

Additional Learning: See more information on Views.

Before you can create Reports, Charts, or Dashboards, you need to build a View. Follow the instructions in this section to learn how to create and configure a View.

Note: If you are not already on the Browse page, please navigate there. (Burger Bun -> Browse All) 

Create a Multiple Table View

Creating the Model

In the Model step, you will drag in the desired tables onto the model canvas, join the tables, and select columns to be available for Reporting and analysis. 

Add “ATHLETEFACT” Table

On the left, there is a list of tables from the “Ski Team” database.

Add “CAMP” Table

Join the “ATHLETEFACT” table with the “CAMP” table

Add “DATELOOKUP” table

Join “ATHLETEFACT” table with “DATELOOKUP” table

Add “PERSON” table

Join “ATHLETEFACT” table with “PERSON” table

Preparing the View

Formatting Basic Fields

In this section, you will edit the formatting of multiple columns to make the data more readable and contextually appropriate. For example, you will be making changes such as adding currency prefixes to monetary values, adjusting the number of decimal places, and defining the default aggregations of metrics.

Invoiced Amount
Camp Rating

Next, click on “CAMPRATING”.

Camp Region
Camp Demographic
Start Date
End Date
Camp Name

Reference Codes

Reference Codes allow for more meaningful values in Reports with numeric- and text-based data by mapping a code to a descriptive value. For example, a text field that contains 'Y' or 'N' could be mapped to display 'Yes' or 'No'. 

Create your own Reference Code to map to the “Gender” field.

Gender
Demographic
Country

Create a Drill Down Hierarchy

Drill Down Hierarchies allow users to drill down within a dimensional hierarchy by limiting the result set as they move from one level to the next. For example, drill from Year (2022) to Month (August), and so on.

When creating a Drill Down Hierarchy, you need to start from the top level and work your way down. In this example, you’ll create a drill from “Region” to “Country”, so you will start with the “Region” field at the top.

Note: You can create a Drill Down Hierarchy with more than two fields. In this case, if there was a “City” field, you could drill further from “Region” to “Country” to “City”.

Region to Country

Change the Date Format

For Date Field Types, you can specify the format to be applied. This will not alter the raw data, just change the way it is displayed.

In this case, you want to show the month and year of the date, with one row per month per year.

Month, Year

Year

For the “Year” column, use the Date Part Formatter that allows us to display part of the date, e.g. Month Name, rather than the full date.

Create Calculated Fields

Calculated fields let you create new fields based on existing fields. You can use simple calculations, pre-defined functions, or freehand SQL, depending on the complexity of the calculation. When created in the View, they will appear as a pre-existing column, saving the user from having to recreate the field in multiple Reports. Calculated fields can also be useful when used in conjunction with Guided NLQ,  providing pre-calculated fields for your users to include in their queries. 

Athlete Counter

First, create an “Athlete Counter” to easily aggregate the number of athletes by camp or region. For example, when building a Report with the “Region” and “Athlete Counter” fields, the Report should show the number of athletes from each region. 

Camp Days

In addition, create a field to understand how many days the athletes participate in the camps, on average. You will use a Calculated Field to find the number of days between the Start and End date of an athlete’s time at a specific camp.

To do this, create a Pre-Defined calculated field using Yellowfin’s built-in functions.

Create a Filter Group

There may be cases where multiple Reports will need the same set of filters, either pre-defined, or user-prompt. To save you adding and adjusting filters in each individual Report, you can create filter groups in the View. 

Organize the View

Assigning fields to relevant folders lets you organize your fields in a way that is logical for Report writers. You can group fields differently than how the columns were grouped in the table structure in the data source.

Fields selected in the Model phase will automatically be placed in generic “Metrics”, “Dimension”, and “Time” folders. In the following steps, you will place the fields in new folders.

Note: The field folders are purely for display purposes and contain no forms of security like the Content Folders.

Publish the View

You are now ready to create Reports and Charts using your new View.


top