Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm exploring options in Qlik Replicate to apply a filter based on a dynamically changing value. Specifically, I want to use an external source (like a parameter file) to supply a value for filtering a table, so the filter criteria would change automatically with each run based on the latest value in that file.
I haven’t found any options in the filter settings to support reading directly from an external file or parameter source. As a potential workaround, I’m considering the use of locally defined environment variables to pass this dynamic value as a filter.
Questions:
Any guidance on how to implement dynamic filtering in this context would be greatly appreciated!
Hello @gideeeh ,
Welcome to Qlik Community forum and thanks for reaching out here!
Transferring dynamic input values into a Qlik Replicate filter condition expression can be challenging. However, there are a few approaches that can help:
Using User-Defined Transformations: You can utilize locally defined environment variables to pass dynamic values as filters through user-defined transformations. A sample C program, "MyTransformation," is available by default in the directory: C:\Program Files\Attunity\Replicate\addons\samples\MyTransformation
. Note that Qlik Replicate currently supports C language programming for such transformations.
Using a Secondary Source Table: Another method is to leverage an additional table within the same source database to combine the required tables. Before running the task, update this parameter table with the necessary input values to ensure the filter condition reflects the latest information.
Hope this helps.
John.