Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi,
Measure =
CALCULATE (
SUM ( costofsales[Cost of Sales Expense] ),
costofsales[Cost of Sales Item]
IN {
"Wages - Trainers Training Delivery (Contract)",
"Training - Venue Hire",
"Training - Resources & Printing",
"Training - Accommodation"
},
costofsales[Date] > DATE ( 2021, 5, 31 )
)Regards
Hi,
Measure =
CALCULATE (
SUM ( costofsales[Cost of Sales Expense] ),
costofsales[Cost of Sales Item]
IN {
"Wages - Trainers Training Delivery (Contract)",
"Training - Venue Hire",
"Training - Resources & Printing",
"Training - Accommodation"
},
costofsales[Date] > DATE ( 2021, 5, 31 )
)Regards
Hi Jos Thank you. I knew it would be something simple.
Appreciate your prompt reply. 😀
Sure! You're very welcome!
Cheers
Hi Jos
IRT my query above, how do I do "does not contain" those fields? Instead of the IN is there another function I use? I have been looking and trying different things but I haven't got it. Are you able to help me out?
Have you tried combining NOT with IN?
Regards
Thank you @Jos_Woolley Tried that and it worked like a charm. Appreciate your guidance with that one.
Cheers
Karen
Great stuff, glad to know! Cheers, Karen.
Jos
Yes, but I think I put them in the wrong place/order. I will have another go at that and see how I go. Thank you for the push in the right direction.
Cheers
Karen
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 12 | |
| 11 |