Forum Discussion

uie07923's avatar
uie07923
Frequent Visitor
3 years ago
Solved

Cumulative - % Monthly Rate

Hello all,

 

I'm struggling to reach the cumulative fluctuation rate.

Every month end, we extract a headcount total.

During that month there are employee exits. The rate between Exits / Total Headcount is the fluctuation rate for that month.

I need to calculate the result for each month and add to the previous one to reach the Cumulative Fluctuation.

 

In the attached excel is the example and in the pbix, the databases.

https://1drv.ms/u/s!AqxrG8wgr5EolClOUAAwrlrWmfya?e=BQ424a

 

Monthy Headcount db:

MONTHEMPLOYEE ID
jan-221
jan-222
jan-223
jan-224
jan-225
jan-226
jan-227
jan-228
jan-229
jan-2210
fev-221
fev-222
fev-223
fev-224
fev-225
fev-226
fev-227
fev-228
fev-229
fev-2210
mar-221
mar-222
mar-223
mar-224
mar-225
mar-226
mar-227
mar-229
mar-2210

Exits db:

Exit DateEmp. ID
15/mar8
02/abr4
25/abr5
jul-2210
dez-221

 

Calculation

 

 

Thanks in advance!

  • Maybe try this:

    fluctuation rate Cumm = 
        SUMX(
            FILTER(
                ALL( dCalendar[YearMonth] ),
                dCalendar[YearMonth] <= MAX( 'dCalendar'[YearMonth] )
            ),
            [fluctuation]
        )

4 Replies

  • uie07923 , Assuming you have common date table with month year and measure fluctuation rate

     

    Try a new measure

     

    fluctuation rate Cumm= sumx(Values(Date[Month Year]), [fluctuation rate])

    • uie07923's avatar
      uie07923
      Frequent Visitor

      Are you considering the creation of an additional table with only the results of the fluctuation rate?

      I tried the measure, but it didn't work: