Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
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"
)
)
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |