• Resolved Nitrat

    (@nitrat)


    Hello!
    I have shortcodes with the amount of three months.
    [gravitywp_count formid=7 number_field=88 start_date=”08/01/2017″ end_date=”08/31/2017″]
    [gravitywp_count formid=7 number_field=88 start_date=”09/01/2017″ end_date=”09/30/2017″]
    [gravitywp_count formid=7 number_field=88 start_date=”10/01/2017″ end_date=”10/31/2017″]
    Everywhere accurate data – 460,450.00 + 727,150.00 + 659,750.00 = 1 847 350
    But if I try to withdraw the amount for three months, the result is less = 1,011,950.00:
    [gravitywp_count formid=7 number_field=88 start_date=”08/01/2017″ end_date=”12/31/2017″]

    Why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author GravityWP

    (@gravitywp)

    Hi Nitrat,

    Can it be that you have negative numbers in entries in between 10/31/2017 and 12/31/2017? And can you try setting the end date of the 4th shortcode to 10/31/2017 (does it give the same result)?

    Thread Starter Nitrat

    (@nitrat)

    No negative numbers
    I try setting the end date of the 4th shortcode to 10/31/2017 – no changes.

    Plugin Author GravityWP

    (@gravitywp)

    Than I have no idea. The difference is 835,400 and this should come from somewhere. The plugin uses the standard filter options from Gravity Forms $search_criteria
    See official GF documentation
    $search_criteria[‘start_date’] = $start_date;
    $search_criteria[‘end_date’] = $end_date;

    You could ask a developer at Codeable to have a look what’s going wrong (they have excellent Gravity Forms experts) or use GFChart, which has basically the calculation function you want: GFChart.

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange sum’ is closed to new replies.