jizzycrystal
IS-IT--Management
Hi
I have a consolidated report that consolidates based on a master nominal code and pulls all records from various databases based on parameters defined. (Sage) It works great except for one nominal account. For this nominal it is duplicating all the records from all databases.
I have tried the following:
1. In my view I have added the distinct command:
SELECT DISTINCT unique_no ,nlyear, posting_code, trans_period, journal_number, journal_desc, journal_date, journal_amount, analysis_code1, analysis_code2, analysis_code3, element3, element5, unique_no
FROM scheme.nltranm
WHERE (nlyear = '12') AND (journal_amount <> 0)
2. In my report I have added this formula:
IF PREVIOUS({nltran12_all.unique.no})= { nltran12_all.unique.no } THEN
TRUE
ELSE
FALSE
3.I formated the "unique no" record field to suppress duplicates (right click on it)& added a formula such as the above but still no joy.
4.I clicked on Database menu in Crystal and click “Select Distinct records" but still pulled in duplicate records
In the nlmastm table this nominal looks no diiferent to any other nominal.
Any idea's?
Thanks
I have a consolidated report that consolidates based on a master nominal code and pulls all records from various databases based on parameters defined. (Sage) It works great except for one nominal account. For this nominal it is duplicating all the records from all databases.
I have tried the following:
1. In my view I have added the distinct command:
SELECT DISTINCT unique_no ,nlyear, posting_code, trans_period, journal_number, journal_desc, journal_date, journal_amount, analysis_code1, analysis_code2, analysis_code3, element3, element5, unique_no
FROM scheme.nltranm
WHERE (nlyear = '12') AND (journal_amount <> 0)
2. In my report I have added this formula:
IF PREVIOUS({nltran12_all.unique.no})= { nltran12_all.unique.no } THEN
TRUE
ELSE
FALSE
3.I formated the "unique no" record field to suppress duplicates (right click on it)& added a formula such as the above but still no joy.
4.I clicked on Database menu in Crystal and click “Select Distinct records" but still pulled in duplicate records
In the nlmastm table this nominal looks no diiferent to any other nominal.
Any idea's?
Thanks