Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello,
I am trying to create a measure which will give me the rolling average fot the past X months, but on a weekly level, not on a daily level. Why am I mentioning this is because I tried the following formula:
So basically every value that you see in the above tabel, should be multiplied by 5 (the usual number of working days in a week).
Any idea how I will be able to get those values ? I know I can maybe add a *5 in the formula but that would not be sustainable for the situations where I have less than 5 working days.
Thank you!
Solved! Go to Solution.
@Bratone , Try like
DA Prod% 1M MA=
calculate( AVERAGEX(values('cCalendar'[Month Year]) , [Total Activities]),DATESINPERIOD('cCalendar'[Date],LASTDATE(RAR[Date]),-3,MONTH) )
@Bratone , Try like
DA Prod% 1M MA=
calculate( AVERAGEX(values('cCalendar'[Month Year]) , [Total Activities]),DATESINPERIOD('cCalendar'[Date],LASTDATE(RAR[Date]),-3,MONTH) )
Thank you so much,
I actually changed the part in formula from (values('cCalendar'[Month Year]) to (values('cCalendar'(Week Year]) and now it displays correctly.
One more question, do you know how can I exclude the values for which I don't have the data available for the past 3 months ? For example, July, and August shouldn't be there because they don't have 3 months old of historical data for which to calculate the measure.
User | Count |
---|---|
79 | |
77 | |
70 | |
69 | |
54 |
User | Count |
---|---|
107 | |
99 | |
88 | |
79 | |
67 |