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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi,
I have a measure, which calculates stock balance for max date. Date is used as a row filter in matrix table, so my measure calculates all stock transactions till the date in a row (see picture below). I need to write a measure which will find me lowest stock value in selected date range (in my example it will be 8616) Any suggestions how to do that?
Thanks. This is exactly what i was looking for.
And if i would like to write a measure to get date having minimum value?
The blog article I referenced had the solution:
MinScoreMeasure = MINX ( SUMMARIZE ( Groups, Groups[Group] , "AVG",[AverageScoreMeasure] ), [AVG])
If you want to lookup the value having that, use this pattern:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434
Or, if you need it as a single line:
MAXX(FILTER(__Table,[__Value] = __Max),[Item])
Where __Max is your min or max
This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149