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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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
User | Count |
---|---|
10 | |
9 | |
7 | |
4 | |
4 |