Avoid duplicates in Summation with Details report

Hi All

To synchronize my MailChimp with SugarCRM leads, I'm using the plugin SugarChimp which works quite well.

One key functionality that I wanted to use is the creation of performance reports about opens and clicks within the SugarCRM report module.

For that reason, I set up a "Summation with Details" report with grouping based on "Activity Type" which is "Open", "Click" and "Send" and display columns are "Name" and "Account". The data runs smoothly into the rows and columns, however, I have a big issue:

The report displays each interaction of "Open" or "Click" as a dedicated entry which means if a lead opens our newsletters 3 times, I get him reported in 3 separated rows.

Is there any way to force the report to only show every entry once? I already contacted SugarChimp support but they can't help since it's a limitation coming from the reports module of SugarCRM.

Best

Nicolas

Parents
  • Hi Nicolas A,

    There is not a SELECT DISTINCT option in the reporting tool, so the target record result appears repeated for each related record returned by the database query, just as you have observed.

     The way to avoid the duplicates is not to reference the related module, and one way to avoid this is to pull the data into a reportable field in the target module. This field does not need to be exposes in the record's layout, but does need to be reportable to work for these purposes.

    Since you have reports, I assume you also have calculated fields. If you are using Sugar version 7.8 or newer, calculated fields has a countConditional() function that might help in this goal without requiring any code-level development.

    What version of Sugar are you using?

  • Hi Patrick

    I'm using Sugar 7.11.1.0 which brings these possibilities.

    However, just to be clear: You would recommend changing the "MailChimp Activity" field which is currently storing the number of opens as a calculated field - correct?

    Best

    Nicolas

Reply Children