how to capture the current quarter using beastmode

Hi Domo Masters -


so, when we want to capture the current date what we do is

we use>>>


Case When 'Date'=Curdate() then 'True' else 'False' end


is there a way we can capture the current quarter?


Thanks!!!

Best Answer

  • RobSomers
    RobSomers Coach
    Answer ✓

    You could do this:

    case when QUARTER('Date')=QUARTER(Curdate()) and YEAR('Date')=YEAR(Curdate()) then 'True' else 'False' end

    **Was this post helpful? Click Agree or Like below**

    **Did this solve your problem? Accept it as a solution!**

Answers

  • RobSomers
    RobSomers Coach
    Answer ✓

    You could do this:

    case when QUARTER('Date')=QUARTER(Curdate()) and YEAR('Date')=YEAR(Curdate()) then 'True' else 'False' end

    **Was this post helpful? Click Agree or Like below**

    **Did this solve your problem? Accept it as a solution!**

  • WorldWarHulk
    WorldWarHulk Member
    edited August 2022

    Hi Rob -


    Thanks for this!!!