sum on a dynamic date range
2 TopicsFilter a DAX measure with dynamic date filters / Time Intelligence
I need to filter a calculated table to find the metric for a particular department of goods and a dynamic date range. The Sales Cycle should have a Sold % Quantity which is the total items sold divided by the number of items produced. These two numbers need to match: This DAX is not working: Sold % Qty Clothing = VAR _startSalesCycle = DATE(2024, 02, 04) VAR _endSalesCycle = DATE(2024, 02, 27) CALCULATE( [Sold % Qty], 'Production Units by Week'[DepartmentName] = "Donated Clothing", DATESINPERIOD(Dates[Date], _startSalesCycle, _endSalesCycle, DAY ) ) Eventually, I want the start and end of the Sales Cycle to determine how this table gets filtered on a weekly basis. Which date filters should I use?634Views0likes1CommentSum on a dynamic date range
Hello, I would like to calculate the sum on a dynamic date range, for example: For March 2019, the sum of material consumption must be: = Sum of material consumption (April 2018 to March 2019) Another example : For September 2019, the sum of material consumption must be: = Sum of material consumption (October 2018 to September 2019) Please what is the DAX formula to meet this need? Thank you. Cordially.Solved6.6KViews0likes3Comments