Skip to main content

Hi, I have an array event property with file sizes. So the size of multiple files. I now want to segment on files between a certain size. Given there are multiple possible in the even property, I was wondering how the logic works. This is how I do it just now: 

Are values summed up for comparison, does it match every individual file? Does it matach an event twice if 2 array elements match the criteria?

Hi kornelius, regular filters on arrays match individual elements. See this article for more detail: https://help.amplitude.com/hc/en-us/articles/5606320929179-Array-operators-in-Amplitude (the same logic for `is` operator applies here).

As for the second part of your question, an “Event Totals” chart will count an event multiple times if the condition matches multiple elements of the array.

To get different semantics for different questions that you might have, I would recommend instrumenting “min_file_size”, “max_file_size”, and “num_files” properties along with the array of files sizes.


Thanks Jeffrey! That helps a lot.


Reply