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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
CMajka8
Helper I
Helper I

DAX Measure with multiple conditions

Hello - 

 

I am trying to write a measure that includes multiple conditions. I essentially need it to calculate a sum:

 

Premium = sum all premiums but exclude company ABC where Product = Auto. This should include company ABC where product = Fire. 

 

thank you

1 REPLY 1
vk_pbi
Resolver II
Resolver II

Hi @CMajka8 

I assumed, all are in single table, if not please provide table details or data model

CALCULATE(
	SUM('Table1'[Premium amt]),
	FILTER(
		'Company',
		'Company'[Product] <> "Auto" &&
		'Company'[Product] = "Fire"
	)
)

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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