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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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