Ecom website - segmenting users based on orders from different merchant and their time

I have an ecommerce website and I want to use mautic with it.
My use case is

I want to segment users based on the merchants they have purchased from and that too in time frames as in merchants ordered from in the past 1 month.

is it possible?
is any date filter at all possible like number of orders in last 5 days?