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
shanipowerbi
Helper III
Helper III

How to calculate change in % in Cohort Analysis

Hi Power Bi Family

 

Hope you all are fine and health. This is my second post about same question. Actually I am trying to calculate Percentage of change in my cohort Analysis table.

 

I have period 1 to 12  and Conversion coversion month. like blow image. (Below table shows you the % of change in customer bucket).

Capture.PNG

I have correct manage to calcuate this table but unable to calculate this Red %, which is change as compare to last period.

 

Will you guys please help me to get this %.

 

Regards

 

Zeeshan

 

 

3 REPLIES 3
jstorm
Resolver III
Resolver III

From what I understand, you need to divide the number in the current column by the preceding column.  Your columns appear to be months. Based on these assumptions, you can try the following:

 

DIVIDE( [Activity Count],
    CALCULATE( [Activity Count], DATEADD( 'Date Table'[Dates] ), -1, MONTH) )
)

 

This divides the numerator [activity count] by the denominator [activity count] last month.  If your periods are not months, just change the MONTH part of DATEADD().

Thanks for the repy, for period I have use this formula

Period = DATEDIFF('Invoice Data'[User with Conversion Data.ConversionDate],'Invoice Data'[InvoiceDate],MONTH)

, If I can get previous perid number it wil be easy for me. 

I see, then you should be able to use

DIVIDE( [Activity Count],
    CALCULATE( [Activity Count], [Period] - 1 )
)

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.