Hi Everyone,
currently using the below query to generate top sales report, we have drinks and food custom tag. Can anyone help how to split the report top 20 for food and top 20 for drinks>?
[Top 20 Best Sellers Orders:1, 1]
>Item Name|Total
{REPORT SQL DETAILS:
SELECT Top 20 MenuItemName,Sum(Price*Quantity) as Amount FROM ORDERS
Where CreatedDateTime > '{Start}' and CreatedDateTime < '{End}'
Group by MenuItemName
Order by Amount desc:
F.MenuItemName,F.Amount}