Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Equivalent of HAVING in DAX

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))
	)

 

1 REPLY 1
barritown
Super User
Super User

Hi @Anonymous,

 

I'd use such a construction - FILTER ( <YOUR SUMMARIZED TABLE>, [ItemQty] <> 0 ).

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.