Way To Determine if Value in One PP Table Exists in Another PP Table

CSMcVey

New Member
Joined
Oct 30, 2012
Messages
21
I have two data sets (tables) in PowerPivot. One contains sales metrics with an account id column, we'll call this metricstbl. The other table contains all of the account ids in the system and the associated account information (location, phone #, etc.), we'll call this accountinfotbl. They are connected via a relationship.

What I would like to do is add a calculated column to the accountinfotbl that has either a 0 or 1. It would have a value of 0 if that row's accountid is NOT in the metricstbl and would have a value of 1 if that row's accountid IS in the metricstbl.

I'm sure I am just overlooking a simple function, any ideas?

Thanks for your time
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
=RELATED(LookupTable[LookupColumn]) will return values from the lookup table (uhh... accountinfotbl in your case). So, something like...

=IF (ISBLANK(accountinfotbl[accountid]), 0, 1)
 
Upvote 0

Forum statistics

Threads
1,224,034
Messages
6,176,001
Members
452,695
Latest member
Alhassan

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