Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi experts,
I have a complex table, but I have summarized it as the following:
SUMMARIZE(Table,Table[Period],"Sales",SUM(Table[Sales_unit]))
So now I have:
| Period | Sales |
| 2023 | 100 |
| 2022 | 100 |
| 2021 | 0 |
I want a measure, that shows me the [Period] when [Sales] = 0 (in the example, the answer is 2021). I was trying with minx
MINX(FILTER(SUMMARIZE(Table,Table[Period],"Sales_unit",SUM(Table[Sales_unit])),[Sales] = 0),[Period])
But this measure shows me a dynamic range that is not the wanted result 😞
Any help is appreciated. Thanks
@Smackcat , You should use sales in the sum,
MINX(FILTER(SUMMARIZE(Table,Table[Period],"Sales_unit",SUM(Table[sales])),[Sales_unit] = 0),[Period])
of you can use all or allselected
MINX(FILTER(SUMMARIZE(all(Table) ,Table[Period],"Sales_unit",SUM(Table[sales])),[Sales_unit] = 0),[Period])
or
MINX(FILTER(SUMMARIZE(allselected(Table) ,Table[Period],"Sales_unit",SUM(Table[sales])),[Sales_unit] = 0),[Period])
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |