Join our Community in its new Home - The Datorama Trailblazer Community Group!

It's been an amazing 3 years coming together in this forum to collaborate, innovate, support, and inspire each other about our shared usage of Datorama. While this is not quite a goodbye, we are excited to announce that we are getting a fresh start in our new home within the Salesforce Trailblazer Community. We have a ton of fun new content planned and you may even see the revival of some of our most popular posts from the past few years.

We’ll be keeping this group around for a bit for you to peruse, but as of November 15, we will no longer be allowing new posts or comments. Be sure to join our new group at https://www.salesforce.com/success-datorama to keep the conversation going.

We can’t wait to see you there!

Measurement for what % of the month we are through

Comments

  • MarissbcMarissbc New YorkSYS_ADMIN IMG42
    edited September 2020
    Hi @alex14

    I would try the DAYSBETWEEN(StartDate, endDate) function, which gives the days between the start date and end date as a number.  You may need to experiment with the following syntax in a calculated dimension, but something like:

    //To get your  numerator:
    var firstDay = DAYSBETWEEN((TODAY()), END_OF_MONTH(TODAY()));

    //To get your denominator:
    var lastDay = END_OF_MONTH(TODAY());

    var result = IFERROR(firstDay/lastDay,0); 

    return result 

    I hope this approach helps!
    Marissa

Sign In or Register to comment.