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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Need help Filtering Out Data

Hey Guys,

I've got this formula:

ORC = CALCULATE([Opens]/(SUM('Spotler Data'[recipient])-SUM('Spotler Data'[hardbounce])-SUM('Spotler Data'[softbounce])))

You can guess it's about E-mail Campaigns. I need to filter out the following E-mail campaigns though:

pF5LMWsAvQkXH7g
VKbNK8BFytiIGZR
BRpM7by7WkMLSva
iuu2izjYXFqyAZN
LgkBuvgCy2i3rqc


So I need help with making the following DAX formula correct:

ORC = CALCULATE([Opens]/(SUM('Spotler Data'[recipient])-SUM('Spotler Data'[hardbounce])-SUM('Spotler Data'[softbounce])),
FILTER('Spotler Data', 'Spotler Data'[mailing_id] not in {"pF5LMWsAvQkXH7g", "VKbNK8BFytiIGZR", "BRpM7by7WkMLSva", "iuu2izjYXFqyAZN", "LgkBuvgCy2i3rqc"} ))


NOT IN is not correct here. So what should I do to fix this?

With kind regards,

Lazzanova


1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Try to put not before column, like this:

 
ORC = CALCULATE([Opens]/(SUM('Spotler Data'[recipient])-SUM('Spotler Data'[hardbounce])-SUM('Spotler Data'[softbounce])),
FILTER('Spotler Data',Not ('Spotler Data'[mailing_id]  in {"pF5LMWsAvQkXH7g""VKbNK8BFytiIGZR""BRpM7by7WkMLSva""iuu2izjYXFqyAZN""LgkBuvgCy2i3rqc"} ))
 
Can it work?
 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Try to put not before column, like this:

 
ORC = CALCULATE([Opens]/(SUM('Spotler Data'[recipient])-SUM('Spotler Data'[hardbounce])-SUM('Spotler Data'[softbounce])),
FILTER('Spotler Data',Not ('Spotler Data'[mailing_id]  in {"pF5LMWsAvQkXH7g""VKbNK8BFytiIGZR""BRpM7by7WkMLSva""iuu2izjYXFqyAZN""LgkBuvgCy2i3rqc"} ))
 
Can it work?
 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.