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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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