Forum Discussion
YTD sales per week by Reseller using ISO Week Number
I am trying to calculate YTD sales per week for each reseller based on ISO WeekNumber. I have tried various measures and calculated columns such as
YTDTest1 = CALCULATE( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Is this possible get YTD updated for each WeekNumber per Reseller? I chose not to use a date field because based on week number. Would consider creating a Date Dimension if that will make this easier. My data looks like this
|
2 Replies
- Greg_DecklerCommunity Champion
ren_steffen Seems like you need to add YEAR filter into your calculation, otherwise you will get weeks in previous years.
- ren_steffenFrequent Visitor
With the current CALCULATE and FILTER there is no data returning. Same with adding a YEAR to the filter, and also adding a filter for store. If I filter to a SELECTEDVALUE( WeekNumber Field), with YEAR, it sums the same number for all years all records.