cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Avg Rolling 60 days Turn Wrong when filter

Hi, 

 

i have using Average Rolling back for 60 days based on Date Slicer. 

but when i filter something else CENTRAL  the number turn wrong.  it means when Filter on Central , There would be Customer Name  compiled together with the Sum of Average Rolling 60 days . but it show only 493 which is not right data , can you help to acheive this ? 

7.PNG

 

***Avg Rolling 60 days =
CALCULATE (
AVERAGEX ( '60 Days', '60 Days'[Value]),
DATESINPERIOD (
'60 Days'[Date],
LASTDATE ( '60 Days'[Date] ),
-60,
DAY
)
)
1 REPLY 1
Highlighted
Super User IV
Super User IV

Re: Avg Rolling 60 days Turn Wrong when filter

@Chanleakna123 , formula seems correct but prefer using a date table try like these examples

Rolling 60 = CALCULATE(AVERAGE(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],max(Sales[Sales Date]),-60,DAY))

Rolling 60 = CALCULATE(AVERAGE(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-60,DAY))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors