Forum Discussion

Pklu's avatar
Pklu
Frequent Visitor
2 years ago
Solved

Change the quarter months

I would ike to know how to change the quaters months to differnt months. I have a table call start date (renamed to Event Dates) with the following quaters:                         ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Pklu,

    You can add a new column to raw table to get the new quarter value. Then you can use date field year level, new quarter, date field month level to create a hierarchy slicer to achieve your requirement.

    Fiscal Quarter =
    VAR offset = 3
    VAR newQuarter =
        QUARTER (
            DATE ( YEAR ( Table1[StartDate] ), MONTH ( Table1[StartDate] ) + offset, DAY ( Table1[StartDate] ) )
        )
    RETURN
        "Q" & newQuarter


    Regards,

    Xiaoxin Sheng