1. Home
  2. Docs
  3. Ajelix BI
  4. Data Preparation
  5. Creating Your First Data Model From A To Z

Creating Your First Data Model From A To Z

Once you have uploaded data, you can start visualizing or editing your data. Usually, data modeling is done before visualizing data, however, it’s not mandatory. This guide will walk you through all the data preparation features. For visualization guides, please use this guide.

After you have uploaded data and picked Data preparation, you should have this view 👇

screenshot from ajelix BI with empty data prep view
Ajelix BI data modeling editor screenshot

General Settings

1. Start data editing by expanding the data sources from the left menu. Pick the model you want to edit, and you will see the data table preview on the right side.

data prep with opened data screenshot from ajelix bi
Ajelix BI data editor screenshot with data preview

2. In the editor, you can perform several data preparation activities:

  1. You can delete or create new columns
  2. Move columns to the right or left
  3. Show and hide specific columns
  4. Rename columns
  5. Change data formatting to text, date, number, or true/false
Data preparation editing functions screenshot from ajelix bi
Ajelix BI data editor screenshot with data preview and toolbar settings

Create a new column from existing data

Here are the steps:

  1. Click Add Column
  2. Give a name to your column
  3. Select the data formatting to Number
  4. Insert the formula and click calculate
Data prep screenshot with steps how to add a new column
Ajelix BI data editor screenshot with steps on how to create a new column with a function

Now, you have created a new column that you can visualize.

Create a measure

To create a measure from existing data, follow these steps:

  1. Select the data table you want to use
  2. Click Add measure
  3. Give a name to your measure and select the field formatting to Number
  4. Insert formula
  5. Click Calculate
  6. You will see the result in a cell
Screenshot from Ajelix BI with step 3 on how to calculate KPI with your data to create budget vs actual dashboard
Ajelix BI data editor screenshot with steps on how to create a measure using functions

Note: You can create metrics from existing measures. Remember that metrics should be in chronological order, e.g., first, develop measures that will be used in the final calculation, not vice versa.

You can later visualize this value using the Card, Pivot Table, or Chart element.

Quality dashboard example from ajelix bi blog-banner
Ajelix BI dashboard screenshot with measure visualized as a card element, view live report here

Set up data relationships

For more advanced visualizations, you can set up relationships between your data tables. It means that you will be able to create one visualization from several data sources. For example, use date as a category from data source 1 but financial data from data source 2. To do that, you need to set up relationships.

To open relationship settings, click on “Settings” at the right top menu and select “Manage data relationships”. You will see a pop-up with settings:

  1. Click Add Relationship
  2. Select the column you want to connect
  3. Set relationship type:
    • 1 to N (one to many)
    • N to 1 (many to one)
    • 1 to 1 (one to one)
  4. Add the foreign table that you want to connect
  5. Select the column you want to match from the external data source
  6. Click Save
Data preparation set relationships settings screenshot
Ajelix BI data modeling editor screenshot with relationship setup settings

Change the data source settings

You can also change settings for your data source, such as renaming the file, adding a description, and marking it as public or private.

Data table settings from ajelix bi screenshot
Ajelix BI data modeling editor screenshot with data source settings

Building dashboard

Once you have edited the data, you can start visualization. When you open the dashboard editor you can see all data sources on the left side. Expand any data source and click on any column to create a chart.

Dashboard editor with data list screenshot from ajelix bi editor
Ajelix BI dashboard editor view screenshot

For more guides on how to visualize data please visit this guide.

It’s important to note that once you have built charts from the data model don’t rename the columns, as you can experience some inaccuracies.