Joined: 16 Aug 2017
Location: United States
Online Status: Offline
Posts: 1
Topic: week by week as rows and last 2 years as columns Posted: 03 Sep 2017 at 5:47am
I'm trying to create a report that shows sales by week (date part of ship date) as rows and using if thens to create the totals by year (also date part as ship date) as columns. But I'm getting multiple rows so my report looks like this:
I think it's a group by problem but I don't know how to do this, create a subgroup or running total to get this right? Does anyone have an example they could show me?
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 13 Sep 2017 at 3:45am
Try using a crosstab. Based on your example, your row groups would be week and product, your column group would be year of the week, and your summary field would be a sum of the amount.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum