Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to call a Function to generate multiple queries

I have a complex function that does a ton of modeling on some very wide and deep tables. To reduce the amount of data the function takes a single text argument that is used as a filter. At the end the function returns a table that is cleaned up as required.

 

I have another query that is the list of all possible filter values that could be applied to my initial function. Single column of text values where each row represents a possible filter value.

 

I'm stumbling over how to basically loop through that list of filter values and generate a table for each filter value. I'm not sure if I need to build an actual loop or if there is some way I can iterate through the list and generate the neccessary tables for each?

 

Thanks,

-Robert