Hello Experts,
I'll like to take advantage of the known expertise that all of you have on this topic to ask a question regarding data-handling in Crystal Reports.
Currently, I have an Account table, but there is one condition that I need to validate in order to complete the report itself.
Please check the following table as an example.
nbr(*) | Account ID | Group Category | Account Area | Amount |
---|---|---|---|---|
1 | 10001 | General | 7010 | 2300 |
2 | 10002 | Costs | 8090 | 5000 |
3 | 10003 | General | 1100 | |
4 | 10004 | Costs | 7010 | 9000 |
5 | 10001 | Sales | 2300 | |
6 | 10005 | Sales | 8090 | 1050 |
7 | 10001 | Sales | 8090 | 540 |
8 | 10001 | General | 2300 |
*the nbr(*) is just as reference to identify every line.
Based on that table, check the Account ID10001, the idea of the condition is that it validates per row if the Account Area is set, then take the corresponding Account ID and remove or hide the rows where the Account Area is blank (So they won't be valid in grouping or summarizes)
nbr(*) | Account ID | Group Category | Account Area | Amount |
---|---|---|---|---|
1 | 10001 | General | 7010 | 2300 |
2 | 10002 | Costs | 8090 | 5000 |
3 | 10003 | General | 1100 | |
4 | 10004 | Costs | 7010 | 9000 |
5 | 10001 | Sales | 2300 | |
6 | 10005 | Sales | 8090 | 1050 |
7 | 10001 | Sales | 8090 | 540 |
8 | 10001 | General | 2300 |
So the result will be the following:
nbr(*) | Account ID | Group Category | Account Area | Amount |
---|---|---|---|---|
1 | 10001 | General | 7010 | 2300 |
2 | 10002 | Costs | 8090 | 5000 |
3 | 10003 | General | 1100 | |
4 | 10004 | Costs | 7010 | 9000 |
6 | 10005 | Sales | 8090 | 1050 |
7 | 10001 | Sales | 8090 | 540 |
Check that the rows 5 and 8 are no longer in the table, then with that table it's only matter for me to group by Category and make some other validations but that's the one that is getting me crazy.
I'll really appreciate if someone could take a look and give me some advices.
Best regards and thanks in advance,
Melvin