Search Unity

Averaging behavior for events with missing parameters

Discussion in 'Unity Analytics' started by 5argon, Sep 30, 2021.

  1. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    Hello. I see that number type parameter could : count, average, and sum. What would happen if some prior events are missing that number parameter (not 0, but completely missing)?

    Example :

    Event 1 : A = 20
    Event 2 : A = 20
    Event 3 : A = 20, B = 20
    Event 4 : A = 20, B = 20

    In the case of querying average of B, what would it returns?
    • (20+20)/2 = 20
    • (20+20+0+0)/4 = 10
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    @5argon Once you send events, you generally do not want to change the parameter list. What values are you seeing? If you are seeing unexpected results, you would want to send a new event name, and ensure to not change the parameter list or types. Typically null + 20 = null, but I'm not sure how we would handle missing values, you would want to test. I would expect the results to be consistent.