Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

How to select current quarter

I have a table with 2 columns for start and end date that have the start and end quarter date

 

Customergoalstart dateend date
123201/01/202401/03/2024
456301/10/202401/12/2024
789201/01/202501/03/2025
456201/01/202501/03/2025

 

is there a way to automatically select the current quarter? 

 

TIA 

  • ryan_mayu's avatar
    ryan_mayu
    1 year ago

    Anonymous 

    you can try this to create a column

    Column = "Q"&QUARTER('Table'[start date])&" " & year('Table'[start date])

3 Replies

  • Anonymous 

    what do you mean by select the current quarter?

    I didn't see any date related to current quarter in your sample data. 

    could you pls elaborate more on this? what's the expected output based on the sample data you provided

    • Anonymous's avatar
      Anonymous
      Not applicable

      yes, so the data is not formally correct but that's how it is, so 

       

      Customergoalstart dateend dateCustomergoalstart dateend dateWHAT IT MEANS 
      123201/01/202401/03/2024123201/01/202401/03/2024Q1 2024
      456301/10/202401/12/2024456301/10/202401/12/2024Q4 2024
      789201/01/202501/03/2025789201/01/202501/03/2025Q1 2025
      456201/01/202501/03/2025456201/01/202501/03/2025Q1 2025

       

      The dates are always in that strange format, but they do point to a specific year/quarter.

       

      I would like either to select the current quarter during import

       

      TIA 

      • ryan_mayu's avatar
        ryan_mayu
        Super User

        Anonymous 

        you can try this to create a column

        Column = "Q"&QUARTER('Table'[start date])&" " & year('Table'[start date])