Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All, I have a column of values (production forecast) and a date table with the column, Week Begining applied to the filters Pane.
I've filtered out any zero values and have Average Forecast = AVERAGE(Budget [Forecast]).
With the Week Begining column applied to the filters pane on the Report page. Would the DAX be calculationg the average daily volume, or weekly volume per the filter applied?
Ideally, I'm looking the average weekly volume.
Thanks All.
Solved! Go to Solution.
You can try these 2 new measures
Total Forecast by Week = CALCULATE(SUM(Budget[Forecast]), ALLEXCEPT(Budget, Date[Week Beginning]))
Average Weekly Volume = AVERAGEX(VALUES(Date[Week Beginning]), [Total Forecast by Week])
Proud to be a Super User!
Hi @1001 ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
You can try these 2 new measures
Total Forecast by Week = CALCULATE(SUM(Budget[Forecast]), ALLEXCEPT(Budget, Date[Week Beginning]))
Average Weekly Volume = AVERAGEX(VALUES(Date[Week Beginning]), [Total Forecast by Week])
Proud to be a Super User!
If your goal is to calculate the overall average across multiple selected weeks, you might need a slightly different approach. One way is to use a measure that sums all the forecast values and then divides by the number of distinct weeks in your filtered context, something like this: (create three measures)
Total Forecast = SUM(Budget[Forecast])
Number of Weeks = DISTINCTCOUNT(Date[Week Beginning])
Average Weekly Volume = DIVIDE(Total Forecast, Number of Weeks)
Proud to be a Super User!
Hi Armustafa, unfortunately that calculation won't give me an accurate average as each week will have different volumes.
I really need to group the Forecast units by Week Beginning, then average those totals for the 52 weeks. For example. the Sum volume for week one is 300 units. Each week, that sum will be different, and those weekly totals need to be averaged. Thanks.
User | Count |
---|---|
53 | |
28 | |
19 | |
18 | |
14 |
User | Count |
---|---|
92 | |
86 | |
39 | |
23 | |
22 |