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'm trying to find a rolling average value of the 'Repair Time' in the last 24 months. For any given date, I need to find the average of all the repair times where both the 'RaisedDateTime' and 'ClosedDateTime' fall in the last 24 months time frame.
For example, on January 01, 2022 ('MonthSummary'), I need to find the average repair time of all entries with both RaisedDateTime and ClosedDateTime from January 01, 2020 - December 31, 2021. The 'MonthSummary' takes the first date of the month that corresponds to the 'ClosedDateTime' whaich is taken as the base date.
I'm new to PowerBi and not familiar with DAX coding. Any help would be much appreciated.
Thanks in advance.
@SIMMI , Are you looking something similar to this
Average of Rolling, Average of Snapshots: https://youtu.be/_pZRdLAJxxA
or join month summary with date table,
3 Month Avg = CALCULATE(AverageX(Values('Date'[MONTH Year]),calculate(Sum('Table'[Repair Time)))
,DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))
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 |
---|---|
107 | |
105 | |
79 | |
69 | |
62 |
User | Count |
---|---|
142 | |
105 | |
103 | |
85 | |
70 |