Skip to main content
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Not applicable

Calculate averag load time per month and create a trendline for 2021 and 2022

Now my issue is I try to calculate Average Load Time - I need to measures one for 2021 and one for 2022 as I want to use them in the 2 line trendline. But I get exactly the same result...why?
What I want i to build a trendline month by month similar to this one:



Avg Completion Time 2021 = CALCULATE(
AVERAGE('Daily Issues'[LoadTime]),'Date Table'[Year]=MAX('Date Table'[Year])-1)
Avg Completion Time 2022 = CALCULATE(
AVERAGE('Daily Issues'[LoadTime]),'Date Table'[Year]=MAX('Date Table'[Year]))
My table is linked to Date Table but I also have Year in my original parent table:


I also tried this but not ok...


AverageMonthLoad = AVERAGE('Daily Issues'[LoadTime])/DISTINCTCOUNT('Date Table'[Month Sort])
my date table looks like this:


Community Support
Community Support

Hi @Anonymous ,


Could you please provide more details about your Daily Issues table to help us clarify your scenario?

Like the columns fields, the relationship between Daily Issues table and Date table and your expected average values.

Or if possible, please share me with your pbix file after removing sensitive data.

Refer to:

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community



Best Regards,
Eyelyn Qin

Not applicable

ot working....the result still shows a generic average and not per month as you see, and also not separated by year...I need to filter 2022 or 2021 to see the actual result, but anyway I need to see average per month





Super User
Super User

@Anonymous , try like


AverageX (values('Date Table'[Month Sort]), calculate(AVERAGE('Daily Issues'[LoadTime]),'Date Table'[Year]=MAX('Date Table'[Year])-1))





calculate(AverageX (values('Date Table'[Month Sort]), calculate(AVERAGE('Daily Issues'[LoadTime])),'Date Table'[Year]=MAX('Date Table'[Year])-1))

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.