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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (27)