Calculations Not Working

Comments

9 comments

  • Rainer Grabowski (FVM)

    Hi Alan,

    what doesn't work? Do you get an error notification in the preview under the calculation field?

    Both calculations work for me - see screenshots:
    The result of your first calculation: http://goo.gl/pJPmDn
    is: http://goo.gl/KTLa1E

    The result of your second calculation: http://goo.gl/DvNZwH

    is: http://goo.gl/1hRpWW

    What shall the first calculation show?
    var blank = @somevariable;
    'Booking Details\n===\n---\n'

    Are in the second calculation "@Amount Invoiced" and "@Amount Paid" number fields?

    The @-symbol is shown in the blue marked field token for some weeks now, Podio changed it some weeks ago. Before that, the @-symbol hasn't been shown (therefore it isn't in the tutorial), but that doesn't effect the functionality of the field token in any way.

    Rainer

    0
    Comment actions Permalink
  • Stefan Ukena

    Hi Alan,

    I've published an app to the market that contains a simple calculation like the one you are looking for. Maybe you can try that and see if that works for you? It could be a starting point to get you going with calculations: https://podio.com/market/apps/100519-

    Have a great weekend! Best,
    Stefan

    0
    Comment actions Permalink
  • Alan Jones

    Stefan,

    I downloaded your calculations app and it still does't work for me. I wonder if it has something to do with my account.
    http://screencast.com/t/f49VmTpl45qy

    0
    Comment actions Permalink
  • Alan Jones

    Rainer,

    Thanks for your reply, but no matter how I type a calculation, it won't work in my account. I added a screencast link below that you can see for Stefan's calculation app. I think there is something wrong with my account.

    0
    Comment actions Permalink
  • Stefan Ukena

    Hi Alan,

    Podio can be a little confusing when it comes to calculations, because everything seems to update instantly, but calculations don't. Calculation results don't update immediately after you create a new item.

    Try this: After you created the item, can you try closing and opening it again (or simply reloading the page)? If that doesn't show the correct result, please contact Podio's support and report the issue: https://help.podio.com/hc/en-us/requests/new

    Best,
    Stefan

    0
    Comment actions Permalink
  • Alan Jones

    Stefan,

    Thanks a lot for your help. Reloading the page did the trick. I was expecting the calculations to load as soon as the related fields were updated.

    0
    Comment actions Permalink
  • Alan Jones

    Rainer,

    When I am trying to use the calculation "var blank" I do not have the option for @title; Am I missing something? No matter how many times I try to refresh my page, nothing shows.

    0
    Comment actions Permalink
  • Rainer Grabowski (FVM)

    Hi Alan,

    "title" was the name of the field in my app I used as an example. You have to select one of your fields, whatever field in this case. Podio needs a @field in a calculation, whether you need it or not for what you want to display.
    If you only want to show some text in your calculation field and you only write the formula 'Booking Details\n===\n---\n' Podio will ask for a field . Than you have to outwit Podio. This trick does

    var blank = @whateverField;

    If you declare @whateverField as a variable (var) this field doesn't show up in the calculation, it's "passive" - but for Podio a @field is in the calculation field and Podio is satisfied. Instead of declaring it as a var you can also use
    //@whateverField
    // flags the following text as a "Don't use the text for the calculation"

    A variable you can use later in the calculation if you need it. For example:
    'Booking Details\n===\n---\n' + blank
    will be displayed as

    Booking Details


    Content of whateverField

    another example:

    var amInvoice = @Amount Invoiced;
    var amPaid = @Amount Paid;
    "$ " + (amInvoice - amPaid)

    To use vars is recommended e.g. if your field names are long or if you use one field name several times in a calculation field. With vars your calculation (code) is easier to read. You even can do complete calculations in a var and than use it for a further calculation (in the same calculation field).

    Rainer

    0
    Comment actions Permalink
  • Zakaria Shoobley

    I found the solution to the calculation problem in Podio. 

    What you need to do is start with a parenthesis and end with a parenthesis (). For example, you need to have it in this format (@hourlyrate*@hoursworked) or ((@hourlyrate*@hours) + @overtime).

    It took me a while to figure this out. 

    Let me know if this is helpful.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk