so I need a report that shows this weeks sales and last week sales. the user enters a parameter from this week ie week 2 in this case.
I have figured out that for ales this week in my report I need a function that says ‘if weekNo = week param then sales else 0’ and I sum this function up.
Now for last weeks sales and this is my question. I cannot just subtract 1 from the week Param to get last week (incase it is year end).
I think I might of solved this. I have created a table with the week numbers and WeekStartDate as 2 seperated columns. I have then linked the tables together on week number so I get: