Try Shopify’s Analytics > Reports > **Exploration
**
I’ve found the AI bot gets pretty close when you ask it to find the data you’re looking for or update queries.
FROM sales SHOW quantity_returned, returns GROUP BY day, product_variant_sku, order_name, pos_location_name WITH TOTALS HAVING returns > 0 ORDER BY day ASC VISUALIZE quantity_returned
@NCLTD, Hi, You can genreate this report using Items returned by product premade report. Just paste the below SQL query in the report to see the data your are looking for. Find the screenshot for your reference.
Query
FROM sales
SHOW returns, total_returns
WHERE product_title IS NOT NULL
GROUP BY day, product_variant_sku, order_name, shipping_city WITH GROUP_TOTALS,
TOTALS
SINCE startOfDay(-365d) UNTIL today
ORDER BY day ASC, product_variant_sku ASC, order_name ASC, shipping_city ASC
LIMIT 1000
VISUALIZE returns TYPE bar
Hi, you can easily create this export with DataChamp. You can either use the refunded template, which you can customize to your requirements, or build the report from scratch to include the specific fields you need. If you have any questions, feel free to reach out!