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.
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.
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 |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |