# Build Visualization

**How to build a Visualization**

The next steps will help you understand the mechanism for creating graphical visualizations and the data available for this construction.

**Step 1**: In Workspaces, select the desired workspace;&#x20;

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FvpsKUohS1q8ElKgFH36a%2Fimage.png?alt=media&#x26;token=ffe9a45e-62f5-4947-b0f1-5a236281a0c6" alt=""><figcaption></figcaption></figure>

**Step 2**: Inside the Workspace, select **New View**;

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fvl53NlVtIax9hQ50IRN7%2Fimage.png?alt=media&#x26;token=ecf5638b-1e56-40ab-8fe4-890ad82065ac" alt=""><figcaption></figcaption></figure>

Once this is done, we will see the view editing screen.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fjpz8DzWEfWa6armbhRbK%2Fimage.png?alt=media&#x26;token=8f86500f-c751-4a75-899d-6d93bebc9af3" alt=""><figcaption></figcaption></figure>

In “**Fields**” we will see all the provider’s billing fields. To understand, access each provider’s API documentation.

**AWS**: To access the AWS Field Dictionary documentation, click [here](https://docs.piercloud.com.br/plataforma-de-finops/finops-platform-english/products/lighthouse/workspaces/provider-field-dictionary/aws-field-dictionary)!

**Azure**: To access the Azure Field Dictionary documentation, click [here](https://docs.piercloud.com.br/plataforma-de-finops/finops-platform-english/products/lighthouse/workspaces/provider-field-dictionary/azure-field-dictionary)!

**GCP**: To access the GCP Field Dictionary documentation, click [here](https://docs.piercloud.com.br/plataforma-de-finops/finops-platform-english/products/lighthouse/workspaces/provider-field-dictionary/gcp-field-dictionary)!

**OCI**: To access the OCI Field Dictionary documentation, click [here](https://docs.piercloud.com.br/plataforma-de-finops/finops-platform-english/products/lighthouse/workspaces/provider-field-dictionary/oci-field-dictionary)!

\
**Step 3**: **Configure the View data in the Fields tab**.

Click on the desired field and drag it to the **Columns, Data and Filters** areas.&#x20;

**Columns**: Just like in a pivot table, the fields in this area will be displayed in the column positions;&#x20;

**Data**: Used to perform mathematical operations (sum, average, lowest and highest value and count). When dragging a field to this area, the values ​​will be aggregated according to the mathematical operations configured for each field in this area;&#x20;

**Filters**: Fields used to filter the records in the view.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FhatNwfE950KadYynWHf1%2Fimage.png?alt=media&#x26;token=b25bcd70-93b9-46de-9b53-6a291eccbdab" alt=""><figcaption></figcaption></figure>

**Step 4: Edit the fields of a view**.

### **Columns area**:&#x20;

On the Edit Columns screen, configure the fields in the **Settings, Format and Rank by** tabs:

* **Alias:** add a nickname to be displayed in the column

**Settings:**

* **Group by:** for date fields, it allows you to group records by periods: hour, day, week, biweekly, month or year;
* **Order:** configure the order in which data will be displayed: ascending, descending, or none.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FjEk3C2X6ghcqWsyf5lTh%2Fimage.png?alt=media&#x26;token=05df65dc-8f02-42c6-82c4-fff1eb7a979b" alt=""><figcaption></figcaption></figure>

**Format:**

* For **number** type field&#x73;**:**
  * **Decimals**: Number of decimal places used in the display;
  * **Unit**: Unit of measurement of the field in question  (USD, BRL, MEX, CNY, EUR, ANG, COP, DOP, ARS, PEN, UYU, MB, GB, TB, Percent).
  * **Notation**: Notation that can be used in the field (Compact and Scientific).

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FEpxOG5SUhUE02r9GZmFR%2Fimage.png?alt=media&#x26;token=0c4cdaf3-e168-4a05-b332-b9641d416c13" alt=""><figcaption></figcaption></figure>

* For **date** type fields:
  * **Date format**: Select a date format that will be used to display the date, according to the options (Hourly, Hours and minutes, Daily, Day and hour, Day and month, Monthly, Competency).

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FEdoTxzqiQ52VMgGEmtf9%2Fimage.png?alt=media&#x26;token=607f3be6-31a1-4da2-90bc-b56f0b827d7a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F0YeeCaqBX18BelQbHaY3%2Fimage.png?alt=media&#x26;token=a44cbb7d-a074-46b5-8016-7d68f5665cf8" alt=""><figcaption></figcaption></figure>

* For **string** type fields:&#x20;
  * **Decimals**: Number of decimal places used in the display;&#x20;
  * **Unit**: Unit of measurement of the field in question  (USD, BRL, MEX, CNY, EUR, ANG, COP, DOP, ARS, PEN, UYU, MB, GB, TB, Percent).
  * **Notation**: Notation that can be used in the field (Compact and Scientific).
  * **Date format**: Select a date format that will be used to display the date, according to the options (Hourly, Hours and minutes, Daily, Day and hour, Day and month, Monthly, Competency).

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FsSqUqilB6On86yZHkwuM%2Fimage.png?alt=media&#x26;token=38b45c33-f540-4e00-96d2-46bd9a47ee74" alt=""><figcaption></figcaption></figure>

**Rank by:**

* **Field:** Select the numeric field that will be used to obtain the number of lines for the item above;
* **Expression:** Select the mathematical operation that will be used to aggregate the data;
* **Quantity:** number of lines that will be displayed, for example, the 10 largest accounts;
* **Group surplus into Others:** The other items in the view will have their values ​​added together in the "Others" item.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FPMW3zqngKK2NodmPKgLk%2Fimage.png?alt=media&#x26;token=f82ed94f-4c8e-450a-be89-48ac46fa8c45" alt=""><figcaption></figcaption></figure>

Once done, click **Save**.

### **Data Area**&#x20;

On the **Edit Data** screen, configure Data information in the **Settings**, **Format, Segment by** and **Chart** tabs.

**Settings:**

* **Expression**: Select the mathematical operation that will be used to aggregate the numerical data;&#x20;
* **Order**: Option to sort the data display in ascending or descending order;&#x20;
* **Orientation**: Chart axis, right or left.
* **Allow to show total**: When this option is enabled, the total value of this column will be displayed if total display is enabled on the chart.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FPtu1zwCQURyELkmDo4zD%2Fimage.png?alt=media&#x26;token=bf88ab77-3bce-4b85-af5d-0a7406f8e8d4" alt="" width="563"><figcaption></figcaption></figure>

**Format:**

* For **number** type field&#x73;**:**
  * **Decimals**: Number of decimal places used in the display;
  * **Unit**: Unit of measurement of the field in question  (USD, BRL, MEX, CNY, EUR, ANG, COP, DOP, ARS, PEN, UYU, MB, GB, TB, Percent).
  * **Notation**: Notation that can be used in the field (Compact and Scientific).

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F2RtRqVnK6YN5b51seVmd%2Fimage.png?alt=media&#x26;token=b3930b83-9189-448c-b9a5-da8a4a89f60a" alt=""><figcaption></figcaption></figure>

* For **date** type fields:&#x20;
  * **Date format**: Select a date format that will be used to display the date, according to the options (Hourly, Hours and minutes, Daily, Day and hour, Day and month, Monthly, Competency).

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FpjEOP0gMYn6mc5jkpwPv%2Fimage.png?alt=media&#x26;token=729564b8-7029-4516-938d-0b176d617fef" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fw5jkrGsAYdIstxZWwbXJ%2Fimage.png?alt=media&#x26;token=857baf0d-5544-4806-b118-9302fbb4bc69" alt=""><figcaption></figcaption></figure>

* For **string** type fields:&#x20;
  * **Decimals**: Number of decimal places used in the display;&#x20;
  * **Unit**: Unit of measurement of the field in question  (USD, BRL, MEX, CNY, EUR, ANG, COP, DOP, ARS, PEN, UYU, MB, GB, TB, Percent).
  * **Notation**: Notation that can be used in the field (Compact and Scientific).
  * **Date format**: Select a date format that will be used to display the date, according to the options (Hourly, Hours and minutes, Daily, Day and hour, Day and month, Monthly, Competency).

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FGSkNggKojE39QHriY9fD%2Fimage.png?alt=media&#x26;token=bdb2986f-94aa-40df-a6c3-1b395f0805a8" alt=""><figcaption></figcaption></figure>

* **Color rules**: To change the color, depending on the rule application.&#x20;
  * **Rule**: Select one of the rule options (between, greater than, less than, greater than or equal to, less than or equal to)&#x20;
  * **Value**: Enter the reference value for the rule&#x20;
  * **Color**: Select a color option to be applied when the rule is met

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FHVPJmDr1KOO3zInOCizK%2Fimage.png?alt=media&#x26;token=421ec5ef-e9fc-4d83-afca-b9bacbbf8bff" alt=""><figcaption></figcaption></figure>

**Segment by:**

* **Prefix:** Enter the name corresponding to the field
* **Field**: Select the information that will group and summarize the values ​​in your graph, for example, total by region;
* **Quantity**: Enter the number of items that will be displayed in the graph, for example the 10 largest values.
* Group surplus into **Others**: Select this option if you want to group the excess into a new type called *Others*.
* **Keep grouped**: Enable this option if you want the new columns to be grouped under the reference of the original column.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FGva32JUkovqik7EMnw2K%2Fimage.png?alt=media&#x26;token=1d7bece2-2930-4177-85f0-db5bc65a58f8" alt="" width="563"><figcaption></figcaption></figure>

**Chart:**

* **View Type**: Select between line, area or bar chart.&#x20;

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FOR7J7qCjsj4n9qFvUVOn%2Fimage.png?alt=media&#x26;token=b6ee660c-84ea-4e3c-a079-6b12b9a468e6" alt="" width="563"><figcaption></figcaption></figure>

### **Filters Area**

Use to filter the records in the view.

**Filter Combination:**

* **"Or" Operator**: Use for multiple selections, for example, filtering products "A", "B", "C"...&#x20;
* **"And" Operator**: Use to combine more than one condition, for example, products that start with "F" and end with "2" or even products other than "A" and "B".

**Negative expressions**:&#x20;

Check this option to invert the expression, for example, products different from "A" and "B".

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FQ9Z5EEPx8wdnPpN5YZbU%2Fimage.png?alt=media&#x26;token=f7eb669c-5a29-4e8a-952d-922b1323587c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FGsBb6zDBucwhaJF4ZiVE%2Fimage.png?alt=media&#x26;token=add7f276-b6e7-4316-a5ae-eeee77eeac9e" alt=""><figcaption></figcaption></figure>

Click **add** and then **save**.

**Preview**

5. Clicking “**Apply**” will load the preview.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FAj6baXfDzb03PlRZn3Bv%2Fimage.png?alt=media&#x26;token=25b63272-65c3-4052-8d24-db7878940e3e" alt=""><figcaption></figcaption></figure>

6. Clicking “**Save**” will take you to the naming part of the visualization title.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fm4lzgyJC8629gziYrCOZ%2Fimage.png?alt=media&#x26;token=00508079-a351-4ecc-a293-456b6b359808" alt=""><figcaption></figcaption></figure>

7. Click **OK** and the view has been created successfully.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FnA8sOa9DP9WFe6hvuKtr%2Fimage.png?alt=media&#x26;token=449ad4ed-3e32-40c8-9505-76a89447d509" alt=""><figcaption></figcaption></figure>

<br>
