SAP Knowledge Base Article - Public

1219078 - Distinct count summary does not export to Excel Function, when exporting a report to MS Excel - Data Only, from Crystal Reports

Symptom

  • Disctinct Count show as a value in Excel.
  • Distinct Count summary not exported to MS Excel formula function.
  • When exporting a report to MS Excel - Data Only (.xls) containg Disctinct Count summary, and selecting the option "Use worksheet functions for summaries", the summary shows the values, instead of the expected Excel function.

Environment

  • SAP Crystal Reports 2011
  • SAP Crystal Reports 2013
  • SAP Crystal Reports 2016
  • SAP Crystal Reports 2020 

Reproducing the Issue

  1. In Crystal Reports, create a report based on any data sources. 
  2. Insert a group on the report.
  3. Add in the Details section the field to summarize.
  4. Add a Distinct Count summary for the group.
  5. Export the report to MS Excel - Data Only (xls), and select the option "Use worksheet functions for summaries"
  6. Notice the summaries does not use the MS Excel formula function to summarize the values, it only display the Distinct Count total, like: 123

Cause

  • MS Excel does not have a Distinct Count functions. This is why it cannot be translated into an Excel Function, and it has to display the actual distinct count value in the exported MS Excel spreadsheet.

Keywords

CR, EXPORTING XLS MS EXCEL WORKSHEET FUNCTIONS XI Crystal Reports Exporting Excel Distinct Count Summary , c2017760 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem

Product

SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports 2020