Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I've searched everywhere for a solution to this but not having any luck.
I'm trying to write a calculate formula to create a kind of 'Grand Total' on every row for a given date range (ignoring all other filter context).
Effectively, something that says:
Grand Total Orders for Selected Date Range = Calculate(PerformanceTable[Total Orders],ALL(PerformanceTable),***FILTERED BY SELECTED DATE RANGE***)
Please can you help me with this?
Many thanks!
Dom
Solved! Go to Solution.
@Anonymous ,
Try like
Grand Total Orders for Selected Date Range =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
Calculate(PerformanceTable[Total Orders],filter(ALL(PerformanceTable),PerformanceTable[Date]>=_min && PerformanceTable[Date]<=_max))
@Anonymous ,
Try like
Grand Total Orders for Selected Date Range =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
Calculate(PerformanceTable[Total Orders],filter(ALL(PerformanceTable),PerformanceTable[Date]>=_min && PerformanceTable[Date]<=_max))
You can use SELECTEDVALUE to get the value from your dateslicer and use it in a FILTER expression.
Hi @Anonymous ,
Please can you expand on how I would do this? Sorry, I'm fairly new to Power BI. 🙂
@Anonymous
If you could share a sample dataset of your report i could write the measure for you and explain how it works 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!