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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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