Forum Discussion

Clint's avatar
Clint
Helper V
7 years ago
Solved

Creating dynamic groupings based on dates

Hello,   I have a report that pulls data from Project Server On-line. I have created a custom field in Project Server called "FeatureTargetComoplete".  One of the measures we report is a quarterly ...
  • v-juanli-msft's avatar
    v-juanli-msft
    7 years ago

    Hi Clint 

    I would suggest you to create calcuated columns.

    First go to Edit queries->Add column->add year, quarter, day

    Then close&apply, create a calcuated column, then add this column as the Axis value instead.

    Column =
    VAR NEW_QUARTER =
        SWITCH ( [Quarter], 1, "2.MQ", 2, "3.JQ", 3, "4.SQ", 4, "1.DQ" )
    VAR YEAR =
        RIGHT ( [Year], 2 )
    RETURN
        CONCATENATE ( NEW_QUARTER, YEAR )
    

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.