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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.