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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Ignore all filters in measure (excluding selected date range)

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
 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@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))
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
Anonymous
Not applicable

You can use SELECTEDVALUE to get the value from your dateslicer and use it in a FILTER expression. 

Anonymous
Not applicable

Hi @Anonymous ,

Please can you expand on how I would do this?  Sorry, I'm fairly new to Power BI.  🙂

Anonymous
Not applicable

@Anonymous 

If you could share a sample dataset of your report i could write the measure for you and explain how it works 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors