Amosbroker
New Member
- Joined
- Mar 26, 2018
- Messages
- 32
I am looking to count values if there is data present in other columns. I am creating a cohort trend and only want to count records for which both years have a value. See below, I do not want to count previous or current year category due to current value being unknown for red record. How do incorporate a CountIf that only counts records that have either good, borderline, or too high in each category in each year?
[TABLE="width: 601"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Member ID[/TD]
[TD]Previous Value[/TD]
[TD]Category [/TD]
[TD]Current Value[/TD]
[TD]Category [/TD]
[TD]Risk Movement [/TD]
[/TR]
[TR]
[TD]IDXX[/TD]
[TD]115[/TD]
[TD]Good[/TD]
[TD]115[/TD]
[TD]Good[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]IDxx[/TD]
[TD]178[/TD]
[TD]Too High[/TD]
[TD]178[/TD]
[TD]Too High[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]ID123[/TD]
[TD]143[/TD]
[TD]Borderline[/TD]
[TD]143[/TD]
[TD]Borderline[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]ID1234[/TD]
[TD]108[/TD]
[TD]Good[/TD]
[TD]101[/TD]
[TD]Good[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]ID12345[/TD]
[TD]100[/TD]
[TD]Good[/TD]
[TD][/TD]
[TD]Unknown[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a ton!
[TABLE="width: 601"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Member ID[/TD]
[TD]Previous Value[/TD]
[TD]Category [/TD]
[TD]Current Value[/TD]
[TD]Category [/TD]
[TD]Risk Movement [/TD]
[/TR]
[TR]
[TD]IDXX[/TD]
[TD]115[/TD]
[TD]Good[/TD]
[TD]115[/TD]
[TD]Good[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]IDxx[/TD]
[TD]178[/TD]
[TD]Too High[/TD]
[TD]178[/TD]
[TD]Too High[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]ID123[/TD]
[TD]143[/TD]
[TD]Borderline[/TD]
[TD]143[/TD]
[TD]Borderline[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]ID1234[/TD]
[TD]108[/TD]
[TD]Good[/TD]
[TD]101[/TD]
[TD]Good[/TD]
[TD]No Movement[/TD]
[/TR]
[TR]
[TD]ID12345[/TD]
[TD]100[/TD]
[TD]Good[/TD]
[TD][/TD]
[TD]Unknown[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a ton!