Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
uie07923
Frequent Visitor

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

uie07923_2-1666110132739.png

 

 

Thanks in advance!

1 ACCEPTED SOLUTION

Maybe try this:

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@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])

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:

 

uie07923_0-1666113795222.png

 

Maybe try this:

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

Hi @uie07923 

Is this what you want to see

aj1973_1-1666116453156.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.