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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Row context

I made the following measure:

AVG last 12 Actual months =
VAR End_date = DATE ( YEAR(MAX('End of Month Table'[End of month])) , MONTH (MAX('End of Month Table'[End of month]) )-1 , DAY ( MAX( 'End of Month Table'[End of month])))
VAR Begin_date = DATE ( YEAR(MAX('End of Month Table'[End of month])) , MONTH (MAX('End of Month Table'[End of month]) )-13 , DAY ( MAX( 'End of Month Table'[End of month])))
RETURN
CALCULATE([SumAmount 1000s] ,
'Date','Date'[Date] <= End_date && 'Date'[Date] > Begin_date 
)
End of Month Table is used to select the starting point for the table visual.
The table visual I need the above measure to work in, also has a date field. So e.g. for 31st of March 2021 I want the above measure to show the value for the above 12 months. Instead I get the value just for the date in the table visual (which is blank since there is no actuals for 31st of March 2021. 
I need to ignore the data row context. How to do it? 
 
 
 
 
2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to ignore the oringinal context, you could use ALL() funtion.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

Not sure I got it completely

But this formula should be something like this

CALCULATE([SumAmount 1000s] ,all('Date'[Date]),'Date'[Date] <= End_date && 'Date'[Date] > Begin_date )
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.