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.
Hi,
I'm pretty sure this must be a trivial question for a seasoned DAX users.
I wan't to filter out all rows for which ItemValue equals zero. If ItemQty <> 0 but ItemValue = 0 such a row should still be filtered out.
In SQL this would by done by a HAVING clause. Not sure how to achieve the same in DAX.
SUMMARIZECOLUMNS(
Transacts[Account],
Transacts[Items],
"ItemQty", SUM(Transacts[Quantity]),
"ItemValue", SUM(Transacts[Amount]),
"ItemAvgPrice", DIVIDE(SUM(Transacts[Amount]),ROUND(SUM(Transacts[Quantity]),4))
)
Hi @Anonymous,
I'd use such a construction - FILTER ( <YOUR SUMMARIZED TABLE>, [ItemQty] <> 0 ).
Best Regards,
Alexander