Forum Discussion

icos's avatar
icos
Frequent Visitor
3 years ago
Solved

Headcount 12 Rolling Month

Hi all, I've been trying to do this calculation and also see on previous posts, but couldn't find a solution that fits my needs. I have already successfuly calculated the Headcount by month, bu...
  • Jihwan_Kim's avatar
    Jihwan_Kim
    3 years ago

    Hi,

    Thank you for your message, and please check the below suits your requirement.

    The file is also attached.

     

    Expected result measure: = 
    SUMX (
        SUMMARIZE (
            FILTER (
                ALLSELECTED ( 'Date' ),
                'Date'[Date] > EOMONTH ( MAX ( 'Date'[Date] ), -12 )
                    && 'Date'[Date] <= EOMONTH ( MAX ( 'Date'[Date] ), 0 )
            ),
            'Date'[MonthYearId], 'Date'[Year], 'Date'[Month], 'Date'[Month (#)]
        ),
        [# Employees]
    )