Calculated Column to Return a Value if that Value appears in any row of another column for a group of rows.

ellilock

New Member
Joined
Apr 27, 2016
Messages
3
I know this is simple but it's eluding me, today. :( I have a data model with the following Columns in PowerPivot 2013:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Client ID[/TD]
[TD]EntryID[/TD]
[TD]Disabled?[/TD]
[TD]Disability Present[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]001020420140800000[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]001080320150800000[/TD]
[TD]No[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I need to return in the Disability Present column "Yes" when any answer for a Client is Yes in the Disabled? column. EntryID is a concatenation of the Client ID and the Start Date(not shown). It is used many times in this data model to build column about the clients with the Earlier Function.

I tried to count Disabled? = Yes answers in a calculated Field of:

Count Disabs:=COUNTAX(FILTER(fRawData,[Disabled?]="Yes"), [Disabled?])

and then use an eariler function with it to get a total number of Yes answers to Disability with this formula:

=[Count Disabs](FILTER(fRawData,fRawData[Client Id]=EARLIER(fRawData[Client Id])),fRawData[EntryID])

I planned to take any number over 0 and make it "Yes" in my Disability Present column.

I'm not married to my mathmatical solution of yes>0 if I'm making it complicated. Any help would be appreciated, because clearly I am not on the right track!

:)

E
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,166
Messages
6,176,849
Members
452,748
Latest member
harob1223001

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