cancel
Showing results for
Did you mean:
Highlighted
Helper I

## Average a sum over specific date range

Hello,

I've got a measure which sums up three columns. If I'm looking at a single month then for example it brings back a value of 4000.

What I want to do is if the user selects a date range of more than one month then show the average of that time period as well as being able to show the single month value if a single month is selected.

EG March = 3000

Feb = 2000

Jan = 4000

Currently when I select last 3 calendar months it'll show 9,000 however I want it to show 3,000 which is the average over 3 months but then revert back to showing 4,000 if just January is selected.

Can this be done in a single column or will I have to have it on a seperate one. Sorry it's not a very good explaination!

Thanks,

Mark

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV

## Re: Average a sum over specific date range

@mjohnsonvertu , Simple avg should do?

Average(Table[Value])

In case data need to aggregate before
AverageX(Summarize(Table,Table[Month],"_1",sum(Table[Value])),[_1])

My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

2 REPLIES 2
Highlighted
Super User IV

## Re: Average a sum over specific date range

@mjohnsonvertu , Simple avg should do?

Average(Table[Value])

In case data need to aggregate before
AverageX(Summarize(Table,Table[Month],"_1",sum(Table[Value])),[_1])

My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support

## Re: Average a sum over specific date range

you might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive for business and share the link to the file. Please do not forget to describe the expected results based on this sample data.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

#### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

#### Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Top Solution Authors
Top Kudoed Authors