Hi all,
Last August I created a report using Crystal Reports XI. The report is one that displays the payers for each client. A client can have multiple payers. What I am trying to do is select all clients with payer #5000 and clients that have both #5000 and #1000 payer. The report has a date range. In the selction criteria I treied and payer Id # in ["5000", "1000"], but this give me cliients with just #1000 which I do not want. typical client records are like:
client Smith
payer 5000
payer 1000
payer 9999
Client Jones
payer 5000
payer 1500
pmax9999 provided me with a solution that work very well. See (thread767-1716506)
This is a little different to how I understood it from your first post, so the {@Player_Test} formula needs to change as follows:
CODE --> {@Player_Test}
If {Table.PayerID} = '5000'
Then 'A'
Else
If {Table.PayerID} = '1000'
Then 'B'
Else 'C'
The Group Selection Code should look like this:
CODE --> GroupSelection
Minimum({@Payer_Test},{Table.Client}) = 'A' and
Maximum({@Payer_Test},{Table.Client}) in ['A', 'B']
Now the report has evolved to where I need to add the services provide to each client with these payers. For example i want services for payer 5000 and 1000 or just payer 5000 or just payer 1000. My problem is that when a client has services for 1000 they are not appearing in the report if there are no services for payer 1000. I hopethis makes sense. thanks
talib
Last August I created a report using Crystal Reports XI. The report is one that displays the payers for each client. A client can have multiple payers. What I am trying to do is select all clients with payer #5000 and clients that have both #5000 and #1000 payer. The report has a date range. In the selction criteria I treied and payer Id # in ["5000", "1000"], but this give me cliients with just #1000 which I do not want. typical client records are like:
client Smith
payer 5000
payer 1000
payer 9999
Client Jones
payer 5000
payer 1500
pmax9999 provided me with a solution that work very well. See (thread767-1716506)
This is a little different to how I understood it from your first post, so the {@Player_Test} formula needs to change as follows:
CODE --> {@Player_Test}
If {Table.PayerID} = '5000'
Then 'A'
Else
If {Table.PayerID} = '1000'
Then 'B'
Else 'C'
The Group Selection Code should look like this:
CODE --> GroupSelection
Minimum({@Payer_Test},{Table.Client}) = 'A' and
Maximum({@Payer_Test},{Table.Client}) in ['A', 'B']
Now the report has evolved to where I need to add the services provide to each client with these payers. For example i want services for payer 5000 and 1000 or just payer 5000 or just payer 1000. My problem is that when a client has services for 1000 they are not appearing in the report if there are no services for payer 1000. I hopethis makes sense. thanks
talib