Adding data from a new data source
You can add data to your app from a new data source. When you add data from a new data source, a connection to the data source is created in Data Connections, making it easier to add more data from the same data source.
Do not add a table in Data manager that has already been added as a scripted table with the same name and same columns in Data load editor.
To learn more about available data sources, see Adding data to the app.
To learn more about connecting to data sources, see Connecting to data sources.
You can delete connections from Add data by right-clicking the connection and selecting .
If you delete a connection, you must delete any tables from Data manager that used that connection before you load data.
Do the following:
- Open an app.
- Open the Data manager and then click . You can also click Add data in the .
- Under Connect to a new data source, select a source.
-
Enter the connection parameters required by the data source.
For example:
- File based data sources require that you specify a path to the files and select a file type.
- Databases such as Oracle and IBM DB2 require database properties and access credentials.
- Web files require the URL of the web file.
- ODBC connections require DSN credentials.
-
Select the tables and fields to load.
For more information, see Selecting data fields.
-
Optionally, select to apply a data filter if you want to select a subset of the data contained in the fields you have selected.
If your data source is a file, select Filters. Beside the table to which you want to add a filter, click Add filter, select a field, select a condition, and then enter a value with which to filter. For information, see Filtering data from files.
Information noteQlik Sense does not support filters on date fields from QVD files.
Note the following:
- You can apply multiple filters to the same field.
- You can remove filters in the Associations view of Data manager or from Select data from source. For the changes to take effect, reload data by clicking the Load data button.
For databases and connectors, when you select Filter data, a text box opens for the filter criteria. For information about criteria, see Filtering data from files.
Note the following:
- Filters are applied to field names from the database. If you rename a field in the Data manager, you have to apply the filter to the original field name from the database. For example, if a field is named EMP in your database, and you rename it to EMPLOYEE in the Data manager, you have to apply the filter EMP = ‘filter_value’ .
- You can clear data filters in the Associations view of the Data manager. For the changes to take effect, reload data by clicking the Load data button. You have to split concatenated tables before clearing filters.
- Filtering data is not currently available for all connectors, or for attached files.
-
Click Add data to open the data in the Associations view of the data manager. This allows you to continue to add data sources, transform the data, and associate the tables in Data manager.
Data profiling is enabled by default when you click Add data. Data profiling does the following:
- Recommends data associations.
- Auto-qualifies common fields between tables. This adds a unique prefix based on table name.
- Maps date and time fields to autoCalendar.
Tables are not associated on common field names automatically. You can associate tables in the Associations view.
Tip noteIf you want to load the data directly into your app, click and then disable data profiling. This will also reload all existing data from data sources when you add the data. Tables will be associated on common field names automatically. Date and time fields will not be created.For more information, see Managing data associations.
-
Click Load data when you are done preparing the data. If serious problems are detected, you need to resolve the problems in Data manager before you can load data into the app.
For more information, see Troubleshooting - Loading data.