Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
|
@ren_steffen Seems like you need to add YEAR filter into your calculation, otherwise you will get weeks in previous years.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
3 | |
2 | |
1 | |
1 |
User | Count |
---|---|
27 | |
3 | |
2 | |
2 | |
2 |