Counts

Comments

3 comments

  • Rainer Grabowski (FVM)

    Hi James,

    add a calculation field in App 2, call it e.g. COUNT with code:
    //for every absence item with a name in @who count
    1

    Then a calculation field in App 1:
    sum of @count x sum of @count x sum of @number of days

    Hope it helps.

    0
    Comment actions Permalink
  • James Lawler

    Rainer that is awesome and I am definitely closer.

    I now have:

    'Sum of COUNT * Sum of COUNT * Sum of Number of Days'

    What I need is:

    Sum of COUNT (Where 'Who' in App2 is same as 'Name' in App1) * Sum of COUNT (Where 'Who' in App2 is same as 'Name' in App1) * Sum of Number of Days

    Is that possible?

    0
    Comment actions Permalink
  • Rainer Grabowski (FVM)

    When I got you right, the field "Who" in App 2 is referenced from App 1.
    So when someone creates his absence card, he clicks into the field "Who" and selects his name. So his absence card is connected to his Staff Member entry in App 1.

    The calculation field in App 1 (Staff members) with the code

    Sum of COUNT * Sum of COUNT * Sum of Number of Days

    sums up the occurances of "1" and the sum of "Number of days" ONLY from the connected absences cards (App2).

    The staff item of "James L." counts only the absence items of "James L.", cause only those are connected to the staff item of James L. via the Who-field in App 2.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk