- 04 May 2024
- 1 Minute to read
- DarkLight
Datasource Field Value
- Updated on 04 May 2024
- 1 Minute to read
- DarkLight
General
This type of placeholder can be used to access the values of a Datasource field in an Expression. The placeholder always returns a List of all values of the Datasource field that are compatible with the current selection within the data model.
The Data Types of the values returned from the Datasource depend on the field type within the datasource and the values returned (e.g. for a Qlik Sense field that contains text values, values of type String will be returned).
Syntax
The syntax for this type of placeholder is:
[Datasource].[<datasource_name>].[Field].[<field_name>]
Examples
Let's suppose there is a Datasource named Sales Data that has a field named Sales Rep Name that contains the names of sales representatives. Let's further suppose that the data model has been filtered to only return one value of Sales Rep Name: David Laychak; The following example accesses that field:
"Hello " & [Datasource].[Sales Data].[Field].[Sales Rep Name]
The expression will return Hello David Laychak when evaluated at runtime.