choochoowinn2009
Technical User
Hi,
Would someone help me write the codes for this? I am not sure how to do the row count as it looks at each row. Would I need to do a sub-report? Any suggestions would help me a lot.
Here's my data:
ID Assistance
5 Medicaid
5 Medicare
5 Food Stamps
24 Medicaid
49 Food Stamps
119 Medicare
151 Food Stamps
151 Medicare
If an ID has both Medicaid and Food Stamps, then it should be combined as Food Stamps/Medicaid, otherwise, it will only show what it has. So the results should look like this:
ID Assistance
5 Medicare
5 Food Stamps/Medicaid
24 Medicaid
49 Food Stamps
119 Medicare
151 Food Stamps
151 Medicare
Other notes, rules for output:
1) If ID has Medicare by itself, then it will say Medicare
2) If ID has Medicaid by itself, then it will say Medicaid
3) If ID has Food Stamps by itself, then it will say Food Stamps
4) If ID has Medicaid and Food Stamps both, then it will say Food Stamps/Medicaid
Output should only combined Medicaid and Food Stamps together only if ID has both. Any other scenarios, it will remain as it is.
Thank you
Would someone help me write the codes for this? I am not sure how to do the row count as it looks at each row. Would I need to do a sub-report? Any suggestions would help me a lot.
Here's my data:
ID Assistance
5 Medicaid
5 Medicare
5 Food Stamps
24 Medicaid
49 Food Stamps
119 Medicare
151 Food Stamps
151 Medicare
If an ID has both Medicaid and Food Stamps, then it should be combined as Food Stamps/Medicaid, otherwise, it will only show what it has. So the results should look like this:
ID Assistance
5 Medicare
5 Food Stamps/Medicaid
24 Medicaid
49 Food Stamps
119 Medicare
151 Food Stamps
151 Medicare
Other notes, rules for output:
1) If ID has Medicare by itself, then it will say Medicare
2) If ID has Medicaid by itself, then it will say Medicaid
3) If ID has Food Stamps by itself, then it will say Food Stamps
4) If ID has Medicaid and Food Stamps both, then it will say Food Stamps/Medicaid
Output should only combined Medicaid and Food Stamps together only if ID has both. Any other scenarios, it will remain as it is.
Thank you