Комментарии •

  • @superdatabros
    @superdatabros 3 года назад

    Want a dynamic _as_of_date? Vote for this idea on the IBM analytics idea's portal! ibm-data-and-ai.ideas.aha.io/ideas/CA-I-3284

  • @timsaddler6402
    @timsaddler6402 3 года назад +1

    Good video Ryan, thanks for sharing

  • @kiranpassumarthi
    @kiranpassumarthi 3 года назад +2

    Good one. Can we make the _as_of_date parameter value dynamic?

    • @superdatabros
      @superdatabros 3 года назад +1

      As far as I can tell the answer is no. But I'll see what I can dig up.

  • @tc_gpa
    @tc_gpa 3 года назад +2

    Almost all our reports are as-of yesterday. Would it be possible to change the as of date to always be the previous day?

    • @superdatabros
      @superdatabros 3 года назад +1

      As far I can tell this is not possible. You can set values for the as_of_date for a given role, but it only gives you a calendar prompt from which to pick. I'll ask around IBM and see what I can find out.

    • @superdatabros
      @superdatabros 3 года назад +1

      Vote for this: ibm-data-and-ai.ideas.aha.io/ideas/CA-I-3284

    • @tc_gpa
      @tc_gpa 3 года назад +3

      Ok thanks! What I've done on our environment is changed the definitions of MTD, YTD and other "to date" filters from the gregorian calendar to use "_add_days($_as_of_date,-1)" instead of the as of date param. So far it has worked fine 🙂

    • @superdatabros
      @superdatabros 3 года назад +1

      Smart solution!

  • @danielvasile5991
    @danielvasile5991 3 года назад

    Hi Ryan! Nice video on a nice feature! Thank you! Anyway...I've noticed that even if you've set the _as_of_date parameter to October, 29th, the graph shows data for all the months in the year (up to and including December) - see 08:04. Wasn't it supposed to show nothing for November and December?

  • @renandomingues4938
    @renandomingues4938 3 года назад +2

    Your video is really good, but the solution by IBM is restrict. The parameter should be in the relative time function, not for the entire dashboard.

    • @superdatabros
      @superdatabros 3 года назад

      Yep.

    • @andreiistomine9893
      @andreiistomine9893 3 года назад

      It is possible though you would have to change all Relative Dates filters to use prompt() instead of $_as_of_date

    • @andreiistomine9893
      @andreiistomine9893 3 года назад +2

      E.g. in YTD filter replace reference to $_as_of_date with prompt ('CurrentDate','date', $_as_of_date )
      // This is a template expression that is used by the column property 'Lookup reference'.
      // To pass validation, the line below must remain as a comment. Do not remove the forward slashes.
      // validate: 1 = 1
      #$_this.parent.idForExpression# >=
      #queryValue($_this.parent.split.ref + '.dYear',
      $_this.parent.split.ref + '.TheDate = ' + $_as_of_date)#
      AND
      #$_this.parent.idForExpression# =
      #queryValue($_this.parent.split.ref + '.dYear',
      $_this.parent.split.ref + '.TheDate = ' + prompt ('CurrentDate','date', $_as_of_date ) )#
      AND
      #$_this.parent.idForExpression#

    • @superdatabros
      @superdatabros 3 года назад

      @@andreiistomine9893 Can you elaborate on this? Or share an example?

    • @andreiistomine9893
      @andreiistomine9893 3 года назад

      @@superdatabros Ryan, we can modify the Calendar filters. I can't publish a screenshot here. Just open any Calendar Data Module and look at its Data items