Beast Mode

Beast Mode

Current date and before end of the month

I'm looking to work out the number of remaining installations left in the current month. I have two columns which have date values (KPI Completed, Completed Awaiting Power).

How would I show data that is greater than or equal to the current date and less than or equal to the end of the current month?

Cheers

Best Answer

  • Answer ✓

    You can create a beast mode that looks like this:

    1. CASE when `datefield` >= CURRENT_DATE() AND `datefield` <= LAST_DAY(CURRENT_DATE()) THEN 'Yes'
    2. ELSE 'No'
    3. END

    This should work for you.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.

Answers

  • Answer ✓

    You can create a beast mode that looks like this:

    1. CASE when `datefield` >= CURRENT_DATE() AND `datefield` <= LAST_DAY(CURRENT_DATE()) THEN 'Yes'
    2. ELSE 'No'
    3. END

    This should work for you.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • @louiswatson Here is the general logic for a beast mode filter you described using one date field:

    1. case
    2. when year(`Date`) = year(CURRENT_DATE()) and month(`Date`) = month(CURRENT_DATE()) and `Date` >= CURRENT_DATE() then 'Include'
    3. else 'Exclude'
    4. end

    We would need to understand the definitions of your two date fields to apply this to your specific use case

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In