Shopify-based customer segment filters

We would like to be able to segment our database according to our customers’ spending every 18 months. Example: all customers who have spent between 200 and 500 euros in the last 18 months.