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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.