For Fact Tables - How would you include data that ...
# ask-questions
n
For Fact Tables - How would you include data that are included in the events as an array in this way: It would be nice to use the attributes and values as filters
f
interesting
let me ask the team on this
there are some hackish ways to make it work with string concatenation - but there should be a better way
f
I assume this is BigQuery? If it's just an array of string values, looks like the IN operator and UNNEST can be used in a filter. https://cloud.google.com/bigquery/docs/arrays#scanning_for_specific_values If it's an array of structs or more complicated values, you might have to do a join in your fact table SQL definition to UNNEST them as dedicated columns. Then, reference those in your filters. That same page I linked has examples for this further up.
n
Yes, its BigQuery. I am not sql strong. Isn't the google docs only describing looking for specific values and attribute? So for a fact table to work I should call out all possible attribute names to be pulled in. And then the filters in Growthbook would allow me to choose specific ones for specific metrics?