Datasource Field Value
  • 04 May 2024
  • 1 Minute to read
  • Dark
    Light

Datasource Field Value

  • Dark
    Light

Article summary

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.

NOTE

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 Field Value Placeholder Syntax

[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:

Datasource Field Value Placeholder Example

"Hello " & [Datasource].[Sales Data].[Field].[Sales Rep Name]

The expression will return Hello David Laychak when evaluated at runtime.


Was this article helpful?