"difference to date" in an indicator widget

Good day all,

I've been experimenting with the Diff Past Month functionality in a widget to track our On Account funds. But rather than a "rolling month" (or "a month from today" which I think is what i get with this formula), I'm looking for a difference from a fixed date, so for example 8/31/21.

Is that possible?

Thanks!

Lesley 

  • Hey Lesley,
     
    I was curious if you ever figured this out – looking to do the same thing and I’m getting stumped.
     
    Anh Le   (she/her/hers)
    Director of Marketing & PR
    Opera Theatre of Saint Louis | ExperienceOpera.org
    ale@opera-stl.org | (314) 963-4294
    .
     
     
  • I vaguely remember there is a way to tell Analytics 'get today's date', but I can't remember how to do that. I'll see if I can dig that up. I'm not sure how to proceed beyond that point, but it might be helpful!

    Paging - any assistance to provide?

  • Hi Anh,

    Are you intending that this show the difference as an indicator widget, or is this in the context of some other visualization? For an indicator the formula could be constructed as the grand total minus the total prior to your specific date. E.g.

    [Total Whatever] - ( [Total Whatever] , [Days in Date w/Calendar type filter From Earliest Date To 8/31/21] )

  • Hi Chris,
     
    The desired use is actually to give my general director a daily dashboard that shows how much in sales we need to do every day between “today” and the end of our season to reach our ticket goal.
     
    I’ll give this a shot and see if it works – thank you!
     
    Anh Le   (she/her/hers)
    Director of Marketing & PR
    Opera Theatre of Saint Louis | ExperienceOpera.org
    ale@opera-stl.org | (314) 963-4294
    .
     
     
  • Hi Chris,
     
    I’ve played around with this idea below, but I can’t get anything to work.  Here’s the non-Analytics formula of what I’m trying to do:
     
    [Revenue Goal – Revenue to Date) / (Number of days left in sales campaign)
     
    Is there any formula you can recommend to calculate the number of days between “today” and a future date that would work in this context?
     
    Anh Le   (she/her/hers)
    Director of Marketing & PR
    Opera Theatre of Saint Louis | ExperienceOpera.org
    ale@opera-stl.org | (314) 963-4294
    .
     
     
  • Hi Anh!

    I'm not sure if this might be close to what you're after, but I'm using the below formula to work out that rolling daily sales target you're referring to and display it in an indicator widget

    ((sum( [Performance ID], MAX ([Budget  Amount]) )) - [Total Ticket Paid Amount]) 

    /

    (MIN(DDiff([Days in Production Season Closing Date],NOW([Days in Production Season Closing Date]))))

    I'm pretty sure this gives me Budget Amount - Total Ticket Paid Amount / Days Until Closing Date of Production. You could obviously replace the Budget Amount with just a fixed figure if you don't use that field!

    I did some manual calculations against the figure this gives me and it seems to be accurate, so hopefully it might be of use to you Slight smile

    Cheers,

    Anastasia

    Data and CRM Specialist

    RISING Melbourne

  • Hi Anastasia,
     
    This is so close – thank you for giving me such a good lead!
     
    My situation might be complicated because my season is done in rotating rep…the formula you mentioned below is almost perfect, except it gives me a total of 56 days between now and my closing night of June 26, when in fact that is 61 days away. I think it is choosing a different production closing date than the latest-closing show of the season.
     
    I know I can tweak the widget by setting a production season filter, but then it also limits my ticket revenue to just what that one show has brought in – making the daily “goal” amount much higher than it should be.
     
    Any other thoughts or ideas are much appreciated!
     
    Anh Le   (she/her/hers)
    Director of Marketing & PR
    Opera Theatre of Saint Louis | ExperienceOpera.org
    ale@opera-stl.org | (314) 963-4294
    .
     
     
  • Try using MAX instead of MIN against the DDIFF. In the context of more than one production, it's returning the one that ends first within the season rather than the last.

  • Thank you, Chris! That plus Anastasia’s formula has done the trick! I’m really grateful.
     
    Anh Le   (she/her/hers)
    Director of Marketing & PR
    Opera Theatre of Saint Louis | ExperienceOpera.org
    ale@opera-stl.org | (314) 963-4294
    .
     
     
  • I saw your note above about telling Analytics to "get today's date", were you able to dig that up? I'm trying to set up a function that will update some hardcoded benchmark goals on the first of the month in a contributions (i.e. if current month = 7, then return 6000, if current month = 8, then return 7000) and right now I only seem to be able to use date fields that are linked to contributions (which is not ideal, since with the overnight load and our gift processing timelines, the "current month" of the most recent contribution may be behind by a couple days). Appreciate any insight you might have!