Minimum values filtered between dates

hayden

Board Regular
Joined
Sep 23, 2005
Messages
188
I'm trying to create a measure to calculate the minimum of a set of values but only for values between two dates. The start and end date are measures. On in my table of data, and one in another table.


Power Query:
=CALCULATE(min(DailyTable[Gross+Ralston]),filter(DailyTable,DailyTable[Date]>=MaxPct[CriticalStartDate] && DailyTable[Date]<=[CriticalEndDate]))

Can anyone help me understand how to do this?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Well, a walk outside and more googling resulted in this:

Power Query:
Measure 1:=VAR startdate=MaxPct[CriticalStartDate] var enddate=[CriticalEndDate] return CALCULATE(min(DailyTable[Gross+Ralston]),DailyTable[Date]>=startdate&&DailyTable[Date]<=enddate)

I guess I need to read up on the FILTER command as its missing from this...
 
Upvote 0
But now I need to find the date that this minimum occurred. Can you pass a filtered list to Lookupvalue?
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,269
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top