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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Could you please help me with formula. Unfortunately I couldn't find solution.
I need to find MIN stock between all dates in the range of data - Country&Product group&Sku name. The problem is that I want to calculate it on another Measure basis (Calculated stock). I managed to find min stock, but it it finds min stock in all data, not separatly by every country, product group and SKU.
Please see the example below.
Thank you!!!
Solved! Go to Solution.
@okiselova , Assume your measure is calculated Stock
the over all min
calculate(minx(summarize(Table, Table[Country], Table[Product code], Table[SKU], Table[Year]),[calculated Stock]), allselected(Table))
Country level min
calculate(minx(summarize(Table, Table[Country], Table[Product code], Table[SKU], Table[Year]),[calculated Stock]), filter(allselected(Table), Table[Country] = max(Table[Country])) )
@okiselova , Assume your measure is calculated Stock
the over all min
calculate(minx(summarize(Table, Table[Country], Table[Product code], Table[SKU], Table[Year]),[calculated Stock]), allselected(Table))
Country level min
calculate(minx(summarize(Table, Table[Country], Table[Product code], Table[SKU], Table[Year]),[calculated Stock]), filter(allselected(Table), Table[Country] = max(Table[Country])) )