WithTables | Qlik Cloud Help
Skip to main content Skip to complementary content

WithTables

Last updated: 10/28/2026

The WithTables script keyword is used as an element within an IncludeModel statement. WithTables specifies which tables from the data product to integrate into the data model of the application.

Information note

For details and full syntax specification, see IncludeModel.

Syntax:  

WithTables Table table_name1 Fields fieldlist Connection dataset_connection {, Table table_nameN Fields fieldlist Connection dataset_connection,... }

Arguments and keywords
Argument or keyword Description
Table Keyword specifying the use of a table. Loads one table per Table statement.
table_name

Specifies the name of the table to use in the data model.

Follow the quoting conventions documented at Using quotation marks in the script. Examples:

MyDataTable

[My Data Table]

"My Data Table"

Fields Keyword instructing to use the specified fields (fieldlist) from the table to integrate into the data model.
fieldlist

List of fields from the table referenced in the preceding Table statement.

You can use * to use all fields from the table, or provide a comma-separated list of specific fields.

Examples:

Amount, Quantity, Region

[Amount], [Quantity], [Region]

Connection Keyword specifying to use the dataset specified in dataset_connection.
dataset_connection

A connection that can load the dataset containing the referenced table.

Depending on the location of the connection, use one of the following formats:

  • environment:space:connection — Used for files located within environments (containers for data synchronized between Qlik Cloud and Qlik Talend Cloud). Environments are associated to spaces (particularly, data spaces).

    For more information about environments, see Synchronizing and managing environments.

  • space:connection — Used for connections with a space as the top-level storage container or in the same environment as the loading application. This could be connections located in shared, managed, or data spaces.

    For example, for a dataset stored locally within Qlik Cloud (DataFiles connection), located in a space named Sales Analysis, you would use following: Sales Analysis:DataFiles

  • connection — Connection name only. This refers to connections located in your personal space. In this case, the connection would simply be: DataFiles

Examples:

[CustomerOrders:DataFiles]

[SalesData2026:SnowflakeSales]

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 – please let us know!