Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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?
@PBIDEVELOP , try like
minx(summarize(table, table[date],"_1",[stock balance]),[_1])
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |