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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.