KNOWLEDGE BASE

Applying a Filter on a Secondary Data Source from JavaScript API


Published: 05 Sep 2014
Last Modified Date: 25 Oct 2016

Question

How to apply a filter on a secondary data source using the JavaScript API.

Environment

  • Tableau Server
  • JavaScript API

Answer

The data source needs to be specified prior to the field name. For instance:

currentSheet.applyRangeFilterAsync('[name of data source].[Dates for Sum]', { min: minDate, max: maxDate });
Did this article resolve the issue?