Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Create Custom Function to Filter Main Table and use it as filter reference

Hello,

 

I'm connecting to a > 10 GB dataflow and it's problematic as sometimes I just need to some specific range in dates and filter some categorical columns. Trying my luck here but it is possible to create a function that filters a table and use that same table as a way to create some level of data validation for me to filter first in the function before I load the humongous data?

 

Example:

*Imagine the data has this column

DateCategory 1Category 2
1/18/2021CatNS
10/27/2021DogNS
10/7/2022DogNS
11/13/2021DogUS
11/25/2022DogUS
2/4/2022DogUS
3/14/2021CatUS
3/3/2022CatUS
4/22/2022CatRU
5/9/2021CatUS
7/15/2022DogRU
7/17/2021DogUS
7/27/2021CatUS
8/29/2021CatUS
9/14/2022CatUS

 

The Function should Dynamically create these following fields (or if not possible, reference it):

Then "Run" the function and output the filter data

 

Edit 1: If this is not possible, can anyone provide a workaround to have the data filtered first before actually loading the data from dataflow?

2 Replies