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

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.

Reply
Chanleakna123
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
amitchandak
Super User
Super User

@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))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.