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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
topazz11
Helper III
Helper III

Avoid filter to apply measure

The 'rolling avg' is changed when the filter (Ex Date) is applied.

How do I keep the rolling avg value when it was filter to last 12 months or last 9 months.

 

pbix  

 

thank you !

1 REPLY 1
amitchandak
Super User
Super User

@topazz11 , Not very clear, Try like

 

12 Month Avg = CALCULATE(AverageX(Values('Date'[MONTH Year]),calculate(Sum('Table'[Value)))
,DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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