| I'm using BOXI R3.1 | ||||||
| I'm trying to get a count of the max LOC within each Claim#. | ||||||
| The LOC field is calculated based on the Proc Code field. | ||||||
| Here is the sample data. | ||||||
| Region | Member | Claim# | ProcCode | LOC | ||
| Central | A | 101 | 12345 | 0-MSE | ||
| Central | A | 101 | 23456 | 0-MSE | ||
| Central | A | 101 | 34567 | 4-Life | ||
| Central | A | 101 | 45678 | 0-MSE | ||
| Central | A | 102 | 56789 | 0-MSE | ||
| Central | A | 102 | 67890 | 0-MSE | ||
| Central | A | 102 | 78901 | 2-Mid | ||
| Central | B | 201 | 89012 | 0-MSE | ||
| Central | B | 201 | 90123 | 1-Low | ||
| I can identify the Max LOC for each claim number using Max([LOC]) In ([Claim#]) | ||||||
| What I need to do is then get a count of that Max([LOC]) In ([Claim#]) | ||||||
| by Region and Member | ||||||
| Region | Member | 0-MSE | 1-Low | 2-Mid | 3-High | 4-Life |
| Central | A | 0 | 0 | 1 | 0 | 1 |
| Central | B | 0 | 1 | 0 | 0 | 0 |
| But what I keep getting is: | ||||||
| Region | Member | 4-Life | ||||
| Central | A | 2 | ||||
| Central | B | 1 | ||||
↧
Counting a grouped max row value based on another column
↧