Sort item sales report by product group

Hi.

I need help modifying the report template for item sales report, so that it groups all products from each product group together instead of jumbling them up.

For example all pizzas are listed together, cocktails are listed together etc.

Thank you

Anders

Simplest way is to add group as a column and sort asc.

Thanks for the reply.

Can you show me the string. I have no idea how to do that

It should show on the preductive popup.
Would be something like M.Groupecode.asc

Solved with thanks. I added O.ItemGroup.desc and that worked. If anyone else is doing this, remember to delete other .asc or .desc to make it sort the way you want.

A follow up question is then. How to choose the sort order of you don’t want it alphabetical. For example:

Starter
Main Course
Pizza
Salad
Desert
etc

I tried O.ItemGroup =Pizza Pizza.ItemGroup just Pizza and a few others without result.

Any ideas?

Add a number in from of groupcode LOL :stuck_out_tongue:
You would need to use an @ declaration with CSV type list and then do a =$1 expression on report which will give you a table per group.

Thanks for the the suggestions on.

I couldn’t get the second option to work, so I went lazy and just added the numbers in front. Works like a charm lol

Will do the job LOL, used that trick on so many different things hehe