Forum Discussion

crjackson's avatar
crjackson
Icon for Helper I rankHelper I
2 years ago
Solved

Max Value per Quarter

I am working on effort certification which happens once a quarter. I am comparing what they certify vs the hours they actualy work per fiscal quarter/year. Our FY starts in September so they would ce...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi crjackson ,

    I create a table as you mentioned.

    Then I create a calculated column and here is the DAX code.

    Quarterly Effort % =
    VAR QuarterStart =
        DATE ( YEAR ( 'Table'[Date] ), MONTH ( 'Table'[Date] ), 1 )
    VAR QuarterEnd =
        EOMONTH ( QuarterStart, 2 )
    RETURN
        CALCULATE (
            AVERAGE ( 'Table'[EffortPercentage] ),
            FILTER ( 'Table', 'Table'[Date] >= QuarterStart && 'Table'[Date] <= QuarterEnd )
        )

     

     

     

    Best Regards

    Yilong Zhou

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.