---
title: "Prepare"
canonical: "https://wiki.yellowfinbi.com/space/user80/1583014/Prepare"
format: markdown
---
> Macro (anchor)



> Macro (toc)

## Overview


Once a view has been defined either through the View Builder, SQL clause or straight from the database you will need to define the field definitions and apply business metadata to them.


![image](media://ded27bd3-a7cc-4048-a607-708ac2299a42)

1. **Table** **Fields** - Each field originally selected will initially be unattached. The process of adding fields to the view requires that metadata be applied. Drag fields from the Table Fields list to the folders you wish to apply them to.
2. **View** **Fields** - Fields are grouped into folders. The purpose of this is to assist end users to find the fields they require. Fields displayed in the list provide some indication of their metadata, such as; hierarchies, dimensions or metrics, and business name.
3. **Toggle** - This allows you to toggle the display of field and table names between database names and business names.
4. **Create** - Click the** +** button to access a create menu that contains the following functions:
  
  1. **Add** **Fields** - this will expand the Table Fields panel, allowing you to add new fields to the view. See [Add Fields](#Prepare-AddFields) for more information.
  2. **Add/Edit Folders** - this will open the Field Folders lightbox, allowing you to adjust the folders used to group fields in the view. See [Add/Edit Folders](#Prepare-Add/EditFolders) for more information.
  3. **Calculated Field** - this will open the Calculated Field lightbox, allowing you to build a calculation to be included in the view. See [Calculated Fields](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1579418) for more information.
  4. **Calculated Filter** - this will open the Calculated Filter lightbox, allowing you to build a filter to be included in the view. See [Calculated Filters](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1591696) for more information.
  5. **Parameter** - this will open the Parameter lightbox, allowing you to define a parameter to be included in the view. See [Parameters](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1586938) for more information.
  6. **Grouped** **Data** - this will open the Group Data lightbox, allowing you to define a field made up of groups of values based on another field, to be included in the view. See [Grouped Data (Report)](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1540416) for more information.
  7. **Date** **Function** - this will open the Date Function lightbox, allowing you to define a new field calculated based on a date field, to be included in the view. See [Date Functions](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1582995) for more information.
  8. **Filter** **Group** - this will open the Filter Group lightbox, allowing you to start creating a group of filters to be included as a set in the view. See [Filter Groups](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1588287) for more information.
5. **Menu** - The menu bar contains menus that allow for metadata preparation as well as access to security and view options.
  
  1. **View** **Options - **this will give you access to a range of view details and performance options. See [View Options](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1542185) for more information.
  2. **Field Settings - **this will give you access to a range of default formatting and security options for each field. See [Field Settings](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1583417) for more information.
  3. **View Security - **this will give you access to a range of permission options related to the view and its fields. See [View Security](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1583000) for more information.
  4. **Data Profiling **- this will allow you to apply profiling to some or all of the fields in the view. See [Data Profiling](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1540742) for more information.
  5. **View Info **- this will allow you access to a range of summary information related to the view. See [View Summary](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1540484) for more information.
6. **Folder** **Bar** - The blue heading bar displays the name of the field folder the fields are grouped into.
7. **Field** **Name** - The field name can be clicked on to rename it.
8. **Profiling** **Bar** - The profiling bar will display a histogram of the data profiling result. Clicking on this will open the data profile panel on the right of the screen. See [Data Profiling](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1540742) for more information.
9. **Data Profile Panel** - The Data Profile panel shows a full breakdown of the profiling applied to the selected field. See [Data Profiling](https://yellowfin.atlassian.net/wiki/spaces/user80/pages/1540742) for more information.
10. **Preview options bar** - The options in this bar allow you control how to preview View data on the Prepare step. Note that this does not mean these changes are saved. The options are:
  - **Raw Data -** If enabled, it displays the data as it would have been returned from the database. If disabled data is displayed with formatting applied by users.
  - **Auto Refresh -** Switch this on to automatically refresh the preview panel as changes are made to the view set up, such as adding or removing columns.
  - **Rows -** Specify the number of rows to be previewed here.
  - **Refresh Preview -** If auto refresh is disabled, click on this to refresh the view data.

  

## Add Fields


A major process of setting up a new view and creating meta data is column definition. Using Yellowfin you can give columns sourced from your database business terminology or create new columns derived from data included in the view. This section includes information on managing and updating the columns included in your view.


### Making Fields Available for Reporting

Unattached fields are grouped into their source table folders in the Unattached Field list. Click on the field name and drag it into the appropriate folder.

<span style="color: #c00000">**Note:**</span> You can add the same field multiple times into your view. This is useful if you wish to use the same field in multiple hierarchies or with different formatting applied.

If you do add the same field multiple times ensure that the business descriptions are unique – since Yellowfin needs to be able to differentiate the fields during import and export processes.

| **Drag Fields into Folders** | **Fields Added** |
| --- | --- |
| ![image](media://ba74912e-8999-4f2b-a3e2-c643d40caf25) | ![image](media://206c3c55-0dd1-4783-96c7-35e14d57ee07) |


### Removing Fields

Fields can be removed from the view by dragging them from a folder into and area that doesn't accept fields. You will know your fields are about to be removed as an orange message is displayed below them.

| **Drag Fields Out of Folders** | **Fields Removed** |
| --- | --- |
| ![image](media://b3a2d0ab-de41-4c53-a7ce-323b5a4ac0ef) | ![image](media://618e81c8-225e-4071-bc79-d7e6d2d6f0a8) |



## Field Folders


Fields are categorised to assist your end users to better understand the context of the field that they are adding to a report. The categorisation allows you to group columns into particular subject areas.



### <span style="color: #808080">Add/Edit Folders</span>

By editing folders you can either add existing folders into the view or create brand new ones.

![image](media://51f7620e-4117-43ed-ab4d-e503c3cadf36)

1. Click on the **Create** button, found at the bottom of the View Fields list.
2. Select the **Add/Edit Folders** option.
3. You will now see the Field Folders lightbox, which will allow you to:
  1. Reorder the folders in the list by clicking and dragging a folder's
    icon.
  2. Remove a folder from the list by clicking on a folder's
    icon.
  3. Select an existing folder to add to the list by choosing it from the drop down list.
  4. Add a new folder by clicking on the **Add Field Folder** link, specifying a new name, and clicking the **Add** button.
4. Either select a category from the left hand column and click the add button to add into the view subject area; or
5. Click the ‘New Category’ Link to display a text box for a new category. Click ‘Add’ when to save.
6. Once your View Subject area has all the categories required click ‘save & close’ to close the popup and return to the field edit page.


### Field Display Order

The order in which fields are displayed in the report builder for the end user can be modified by the view administrator.   
By clicking on a field and dragging it above or below fields or to different folders you can change the order of the field as it will be displayed to the user when creating a report.

![image](media://0c32f409-7dd7-40c9-8f08-b3470d4f5a03)

<span style="color: #c00000">**Note:**</span> If you are moving a field below a hierarchy of fields then a single move up or down will move the field past the entire hierarchy, not just a single field.



## Field Drop Down Menu


Each field in the view has a drop down menu with access to a range of options related to it. This menu can be accessed via two methods:


| **Table Fields** | **Data Preview** |
| --- | --- |
| ![image](media://09856302-1a63-49d9-8cd7-e0e159c8e469) | ![image](media://282b073b-872d-43ec-b0bc-fdaef9d30019) |


The options available will depend on the type of field that has been selected. They will include a selection of the following:

> Macro (legacy-content)

> Macro (legacy-content)