Filter formula in PowerPivot

successken

New Member
Joined
Oct 3, 2011
Messages
27
I have a Database that contains either an email address or typically the words declined, dc, na, none, etc... I was operating within my table =IF(Email="*@*",Email,"") In essence if the email contained @ then transfer the email address over otherwise leave it blank. Is there a filter DAX formula that can accomplish the same result? Thank you in advance.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You can even use the same formula in a new Calculated Column in your model and use the new column in your pivot table if that makes sense.

HTH
 
Upvote 0
NickyvV - Thank you for the reply. I believe that is what I am trying to do with no avail.

I am having difficulty finding the right calculated formula that would net me the same result. Currently I have the following formula in an excel table:

=IF(COUNTIF([@emailname],"*@*")>0,[@emailname],"")

Which in turn is updated into a PowerPivot table. I have tried to replicate the formula with a CALCULATE:

=if(CALCULATE(COUNTA (Table_MVE_Multi_Summary_Query[emailname]),Table_MVE_Multi_Summary_Query[emailname]="*@*")>0,Table_MVE_Multi_Summary_Query[emailname],"")

With it only returning blanks.
 
Upvote 0
Hi,

I managed to solve the problem with the following formula:

Code:
=IF(ISERROR(SEARCH("@"; Table1[emailname])); BLANK(); Table1[emailname])

SEARCH is case-insensitive, you could use FIND if you need case-sensitivity.
Below an example of the Calculated Column:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TH]name[/TH]
[TH]emailname[/TH]
[TH]NewColumn[/TH]
[/TR]
[TR]
[TD]pete[/TD]
[TD]pete.com[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]peter[/TD]
[TD]peter@doe.com[/TD]
[TD]peter@doe.com[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,933
Messages
6,175,476
Members
452,646
Latest member
tudou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top