Creating KPI report facing challenges in static columns

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • james salvan
    Junior Member
    • Apr 2025
    • 20

    #1

    Creating KPI report facing challenges in static columns

    I have report advance pack, I have tried creating joint grid report and grid report, for KPI sales, Like I am using the Financial Year : close date + Assigned User as a filter in opportunity to get close date and stage won, Year wise report thats good

    the problem is we need a report like:

    Account Manager | Target | April | May | June | July | ............... | Achieved
    AssignedUserName | 200000 | 20000| .... | 200000
    AssignedUserName2 | 400000 | 20000| .... | 100000

    where Target is currency amount static that is decided in the start of financial year

    is there any way to may this happen ?

    Click image for larger version

Name:	image.png
Views:	87
Size:	48.5 KB
ID:	117174
  • victor
    Active Community Member
    • Aug 2022
    • 903

    #2
    Provided that each record in the Opportunity entity contains an Asigned User, Amount and Monthly plan (a fixed amount for 1 month, which is indicated in each Opportunity), it is possible to display planned and actual indicators within the framework of one Grid Report.

    Click image for larger version

Name:	image.png
Views:	44
Size:	64.1 KB
ID:	117352
    Click image for larger version

Name:	image.png
Views:	34
Size:	101.3 KB
ID:	117353Click image for larger version

Name:	image.png
Views:	30
Size:	75.0 KB
ID:	117354

    Comment

    • james salvan
      Junior Member
      • Apr 2025
      • 20

      #3
      For Understanding, I have created new entity, to store Financial Year wise targets for the Users

      Click image for larger version

Name:	image.png
Views:	35
Size:	38.5 KB
ID:	117536
      Click image for larger version

Name:	image.png
Views:	28
Size:	43.7 KB
ID:	117537

      This are static for whole financial year


      in report by using grid reports or joint grid reports. where I combine opportunity and KPI(custom entity) reports
      To get

      Click image for larger version

Name:	image.png
Views:	24
Size:	13.0 KB
ID:	117538

      is this feasible, formula isn't working if it works in sandbox tried. you are help so valuable. ​

      Comment

      • dreginald
        Senior Member
        • Sep 2018
        • 139

        #4
        Originally posted by james salvan
        I have report advance pack, I have tried creating joint grid report and grid report, for KPI sales, Like I am using the Financial Year : close date + Assigned User as a filter in opportunity to get close date and stage won, Year wise report thats good

        the problem is we need a report like:

        Account Manager | Target | April | May | June | July | ............... | Achieved
        AssignedUserName | 200000 | 20000| .... | 200000
        AssignedUserName2 | 400000 | 20000| .... | 100000

        where Target is currency amount static that is decided in the start of financial year

        is there any way to may this happen ?

        Click image for larger version

Name:	image.png
Views:	87
Size:	48.5 KB
ID:	117174

        I suggest you create a separate entity eg. "Sales Performance" and map the values from Opportunity or Sales Order or Invoice to this entity and create a report.

        I am attaching the screenshot of a report created with Espo Version 6.2 five years ago and is still the key KPI report.


        Click image for larger version

Name:	kpi report.png
Views:	16
Size:	293.4 KB
ID:	117546

        Comment

        • james salvan
          Junior Member
          • Apr 2025
          • 20

          #5
          I've created custom entity named KPI Sales. with targets for FY year and month but I can't figure out how to map opportunities or invoices to it and make report

          Comment

          • victor
            Active Community Member
            • Aug 2022
            • 903

            #6
            james salvan,

            I've created custom entity named KPI Sales. with targets for FY year and month but I can't figure out how to map opportunities or invoices to it and make report
            1. Create similar fields in Opportunity entity (as in KPI Sale) to make it easier for you to create Report.
            2. Create relationship between KPI Sale and Opportunity entity (One-to-Many).
            3. In Administration > Entity Manager > Opportunity > Formula > Before Save Custom Script create formulas for each field from step 1. For example,

            Code:
            kpiJuneTargetConverted = kPISale.juneTargetConverted;
            For new records, the formula will work automatically, and for old ones, use Opportunity List view -> Actions > Recalculate Formula.

            Thus, in the fields from point 1 in all Opportunities (which are interconnected by KPI Sales) there will be correct data (assigned using formulas from KPI Sale to Opportunity).

            You can also use my first simpler option. In that option, instead of the KPI Sale entity, we immediately enter the planned indicators in each of the Opportunities.

            Comment


            • james salvan
              james salvan commented
              Editing a comment
              By Create similar fields in Opportunity entity (as in KPI Sale), that doesn't break the Opportunity entity ? and one more thing can we import and export entity to other espocrm instances.
          • victor
            Active Community Member
            • Aug 2022
            • 903

            #7
            By Create similar fields in Opportunity entity (as in KPI Sale), that doesn't break the Opportunity entity?
            Of course, no.

            can we import and export entity to other espocrm instances
            Of course, yes. There is a special official free extension for this: https://docs.espocrm.com/extensions/...port/overview/.

            Comment

            Working...