Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal reports 2013 - Supressed records leaving a line of delimiters when exporting a file to CSV

Status
Not open for further replies.

NicoleD72

MIS
Jan 30, 2015
1
GB
I have a confusing issue that I can't find any solution to.

I have a report that I have created, there are some duplicate records caused because there is 1 table where it is a 1toN relationship (valuation of an item at two different dates)
In the report we need to only return the most recent dated record.

Within the report it was easy enough to remove the duplicate using Section Expert & the MAXIMUM function.

The only downside is when I export the file as csv (as it has to be loaded to another application) the csv file has a line of delimiters with no data where the supressed record would have been which is causing the receiving system to fail the load

I haven't found anything i can use in select expert to be able to remove the records, I have tried creating it as a command - but the supression of the records doesn't carry through

Any ideas???
 
Unfortunately, this is one of the limitations of the .csv export. Instead of suppressing data, you have a couple of options:

1. Group on whatever it is that you're trying to show the dates for. Then sort by date descending. Put all of the data in the Group Header section(s). Take everything out of details and suppress it.

2. Instead of linking together tables for your report, write a command (SQL Select statement) that will filter out the earlier dates before returning the data to the report. For more info about using commands, see my blog post here:
-Dell

DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top