Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |