Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Solved! Go to Solution.
Hi @jonnychenoweth ,
I am so glad that you can find the solution by yourself. According to your statement, I think you may want to calcualte the running average age. I suggest you to create a dimdate table with continuous date by CALENDAR() or CALENDARAUTO().
DimDate code:
DimDate =
ADDCOLUMNS( CALENDARAUTO() ,"Year",YEAR([Date]),"Month",MONTH([Date]),"MonthName",FORMAT([Date],"MMMM"))
Create a relationship between DimDate[Date] and Fact[Date].
Measure:
Measure =
CALCULATE(AVERAGE('Table'[Age]),FILTER(ALL(DimDate),DimDate[Date]<=MAX(DimDate[Date])))
Best Regards.
Figured it out finally, key was I needed to have a Date table with all dates, months, years as 3 columns in said table that was unrelated to my data but would allow it to know what todays date was so it had something to compare it to I assume. Took a while but searching other threads and realizing a few things helped. That was my missing piece for sure. Leaving this here even though no one responded in case someone else is working on averages and finds this thread....once I added a table with dates by each date unrelated to my actual data I was able to do it fully. I also verified the data was accurate to what was in Jira average Age reports etc.
Hi @jonnychenoweth ,
I am so glad that you can find the solution by yourself. According to your statement, I think you may want to calcualte the running average age. I suggest you to create a dimdate table with continuous date by CALENDAR() or CALENDARAUTO().
DimDate code:
DimDate =
ADDCOLUMNS( CALENDARAUTO() ,"Year",YEAR([Date]),"Month",MONTH([Date]),"MonthName",FORMAT([Date],"MMMM"))
Create a relationship between DimDate[Date] and Fact[Date].
Measure:
Measure =
CALCULATE(AVERAGE('Table'[Age]),FILTER(ALL(DimDate),DimDate[Date]<=MAX(DimDate[Date])))
Best Regards.
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
User | Count |
---|---|
94 | |
92 | |
84 | |
83 | |
49 |
User | Count |
---|---|
145 | |
142 | |
111 | |
71 | |
55 |