Skip to main content Skip to complementary content

Selecting data fields

You can select which tables and fields to use when you add data, or when you edit a table. Some data sources, such as a CSV file, contain a single table, while other data sources, such as Microsoft Excel spreadsheets or databases, can contain several tables.

If a table contains a header row, field names are usually automatically detected, but you may need to change the Field names setting in some cases. You may also need to change other table options, such as Header size or Character set, to interpret the data correctly. Table options are different for different types of data sources.

Selecting data from a database

The steps for selecting data from a database depend on how you connect to the database. You can connect to an ODBC driver as a DSN source, or you can connect directly through a Qlik Database connector that is part of the Qlik ODBC Connector Package installed with Qlik Sense.

See: ODBC

When you add data from a database, the data source can contain several tables.

Do the following:

  1. Select a Database from the drop-down list.

    Some selection dialogs do not have a Database drop-down list because the database name is entered when the connection is configured.

  2. Select Owner of the database.

    The list of Tables is populated with views and tables available in the selected database. Some databases do not require that owners be specified in the data selection process.

  3. Select a table.

  4. Select the fields you want to load by checking the box next to each field you want to load.

    You can select all fields in the table by checking the box next to the table name.

    Tip noteYou can edit the field name by clicking on the existing field name and typing a new name. This may affect how the table is linked to other tables, as they are joined on common fields by default.
  5. Select additional tables if you want to add data from them.
  6. When you are done with your data selection, click Add data to continue with data profiling, and to see recommendations for table relationships.

    See: Managing data associations

    If you want to load the data directly into your app, click ¥ beside Add data and then disable data profiling. This will load the selected data as it is, bypassing the data profiling step, and you can start creating visualizations. Tables will be linked using natural associations, that is, by commonly-named fields.

    See: Associations between logical tables

Selecting data from a Microsoft Excel spreadsheet

When you add data from a Microsoft Excel spreadsheet, the file can contain several sheets. Each sheet is loaded as a separate table. An exception is if the sheet has the same field/column structure as another sheet or loaded table, in which case the tables are concatenated.

See: Loading data from Microsoft Excel spreadsheets

Do the following:

  1. Make sure you have the appropriate settings for the sheet:

    Field names Set to specify if the table contains Embedded field names or No field names. Typically in an Excel spreadsheet, the first row contains the embedded field names. If you select No field names, fields will be named A,B,C...

    Header size

    Set to the number of rows to omit as table header, typically rows that contain general information that is not in a columnar format.

  2. Select the first sheet to select data from. You can select all fields in a sheet by checking the box next to the sheet name.

  3. Select the fields you want to load by checking the box next to each field you want to load.

    Tip noteYou can edit the field name by clicking on the existing field name and typing a new name. This may affect how the table is linked to other tables, as they are joined by common fields by default.
  4. When you are done with your data selection, click Add data to continue with data profiling, and to see recommendations for table relationships.

    If you want to load the data directly into your app, click ¥ beside Add data and then disable data profiling. This will load the selected data as it is, bypassing the data profiling step, and you can start creating visualizations. Tables will be linked using natural associations, that is, by commonly-named fields.

Selecting data from a table file

You can add data from a large number of data files.

Do the following:

  1. Make sure that the appropriate file type is selected in File format.
  2. Make sure you have the appropriate settings for the file. File settings are different for different file types.

    See: Choosing settings for file types

  3. Select the fields you want to load by checking the box next to each field you want to load. You can also select all fields in a file by checking the box next to the sheet name.

    Tip noteYou can edit the field name by clicking on the existing field name and typing a new name. This may affect how the table is linked to other tables, as they are joined by common fields by default.
  4. When you are done with your data selection, click Add data to continue with data profiling, and to see recommendations for table relationships.

    Information noteIf you want to load the data directly into your app, click ¥ beside Add data and then disable data profiling. This will load the selected data as it is, bypassing the data profiling step, and you can start creating visualizations. Tables will be linked using natural associations, that is, by commonly-named fields.

Choosing settings for file types

Delimited table files

These settings are validated for delimited table files, containing a single table where each record is separated by a line feed, and each field is separated with a delimited character, for example a CSV file.

File format settings

File format

Set to Delimited or Fixed record.

When you make a selection, the select data dialog will adapt to the file format you selected.

Field names Set to specify if the table contains Embedded field names or No field names.

Delimiter

Set the Delimiter character used in your table file.

Quoting

Set to specify how to handle quotes:

None = quote characters are not accepted

Standard = standard quoting (quotes can be used as first and last characters of a field value)

MSQ = modern-style quoting (allowing multi-line content in fields)

Header size

Set the number of lines to omit as table header.

Character set

Set character set used in the table file.

Comment

Data files can contain comments between records, denoted by starting a line with one or more special characters, for example //.

Specify one or more characters to denote a comment line. Qlik Sense does not load lines starting with the character(s) specified here.

Ignore EOF Select Ignore EOF if your data contains end-of-file characters as part of the field value.

Fixed record data files

Fixed record data files contain a single table in which each record (row of data) contains a number of columns with a fixed field size, usually padded with spaces or tab characters.

Setting field break positions

You can set the field break positions in two different ways:

  • Manually, enter the field break positions separated by commas in Field break positions. Each position marks the start of a field.

    Example: 1,12,24

  • Enable Field breaks to edit field break positions interactively in the field data preview. Field break positions is updated with the selected positions. You can:
    • Click in the field data preview to insert a field break.

    • Click on a field break to delete it.
    • Drag a field break to move it.

File format settings

Field names Set to specify if the table contains Embedded field names or No field names.

Header size

Set Header size to the number of lines to omit as table header.

Character set

Set to the character set used in the table file.

Tab size Set to the number of spaces that one tab character represents in the table file.
Record line size

Set to the number of lines that one record spans in the table file. Default is 1.

HTML files

HTML files can contain several tables. Qlik Sense interprets all elements with a <TABLE> tag as a table.

File format settings

Field names Set to specify if the table contains Embedded field names or No field names.

Character set

Set the character set used in the table file.

XML files

You can load data that is stored in XML format.

There are no specific file format settings for XML files.

QVD files

You can load data that is stored in QVD format. QVD is a native Qlik format and can only be written to and read by Qlik Sense or QlikView. The file format is optimized for speed when reading data from a Qlik Sense script but it is still very compact.

There are no specific file format settings for QVD files.

See: Working with QVD files

QVX files

You can load data that is stored in Qlik data eXchange (QVX) format. QVX files are created by custom connectors developed with the Qlik QVX SDK.

There are no specific file format settings for QVX files.

KML files

You can load map files that are stored in KML format, to use in map visualizations.

There are no specific file format settings for KML files.

See: Loading map data

Returning to the previous step (Add data)

You can return to the previous step when adding data.

Do the following:

  • Click the back arrow to return to the previous step of Add data.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!