Results 1 to 6 of 6

Thread: Reporting: weighted amount or query modification?

  1. #1
    tvandesande is offline Member
    Join Date
    Jun 2008
    Posts
    16

    Default Reporting: weighted amount or query modification?

    Hi,

    i need Your help again Guys!

    basically what i need to have in the report is a weighted amount of an opportunity (so amount * probability, so an opportunity with amount of 100, and 5% probability would have a weighted value of 5).
    my reporting has to be based on a weighted value.
    so i was wondering if either:
    -its possible to create a custom report with custom calculations
    -its possible to modify a query that report is driven by - i added a calculated field in the opportunities table that is automatically calculating weighted amount - so changing a reference to a column would be just enough here

    i appreciate all help
    thanks
    peter

    ps. using zucker reports for us at the moment is out of question. this will be implemented next year, and reports are needed asap

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Reporting: weighted amount or query modification?

    The quickest way to do something like this is to write a quick SQL statement that'll do the weight calculation you need. I don't know of another way in CE to accomplish this without a third party reporting tool or code customization.

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Reporting: weighted amount or query modification?

    You would create a new custom field float into Opportunities module to store the weighted amount.
    Then you may create a logic_hook before_save to save into this field the probability * amount.
    You may create a simple php script to update the existing opportunities adding the correct value for this field.
    This way you can view this new field into DetailView/EditView/ListView.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Reporting: weighted amount or query modification?

    I highly suggest this method if you want to get your elbows a bit dirty. We do exactly this for Leads so that we can sort on the weight and target those that are the best fit for us.

  5. #5
    tvandesande is offline Member
    Join Date
    Jun 2008
    Posts
    16

    Default Re: Reporting: weighted amount or query modification?

    The quickest way to do something like this is to write a quick SQL statement that'll do the weight calculation you need
    where would be the place to edit it? i understand You're talking about modifying the sql statement in a report?

    Then you may create a logic_hook before_save to save into this field the probability * amount.
    is there any tutorial about using/creating logic hooks? (preferably before_save)?

    greetings
    peter

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Reporting: weighted amount or query modification?

    Hi Peter

    Take a look at this thread: http://www.sugarcrm.com/forums/showt...culated+fields
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Enabling JSON
    By kageeslin in forum Developer Help
    Replies: 11
    Last Post: 2009-01-24, 01:57 PM
  2. Upgrade from Open Source to Professional
    By Sohonet in forum General Discussion
    Replies: 1
    Last Post: 2006-06-12, 09:23 PM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •