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 the change in % in cohort analysis

Hi Power Bi Family

I hope everyone's in good and healthy. This is my second post about the same question. I'm actually trying to calculate Percentage change in my cohort analysis table.

I have the period 1 to 12 and the month of the conversion coversion. as a blowing image. (The following table shows the % change in the client bucket).

Capture.PNG

I have the correct ability to trace this table, but I can't calculate this red %, which is the change compared to the last period.

Please help me get this %.

Best regards

Zeeshan

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi  @shanipowerbi  ,

 

Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Hi

 

Your Formula is not worked for me

 

Thanks for the effort, Issue not yet resolve

 

v-xicai
Community Support
Community Support

Hi @shanipowerbi ,

 

You may create measure like DAX below.

 

% Change=

Var LastPeriod=  CALCULATE(SUM('Invoice Data'[UserID Count]),FILTER(ALLSELECTED('Invoice Data'),'Invoice Data'[Year]=MAX('Invoice Data'[Year]) &&'Invoice Data'[My]=MAX('Invoice Data'[My])&&'Invoice Data'[Period]=MAX('Invoice Data'[Period])-1))

Var CurrentPeriod=  CALCULATE(SUM('Invoice Data'[UserID Count]),FILTER(ALLSELECTED('Invoice Data'),'Invoice Data'[Year]=MAX('Invoice Data'[Year]) &&'Invoice Data'[My]=MAX('Invoice Data'[My])&&'Invoice Data'[Period]=MAX('Invoice Data'[Period])))

Return

IF(LastPeriod <> BLANK(), DIVIDE(CurrentPeriod, LastPeriod )-1, 0)

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

shebr
Resolver III
Resolver III

Hi @shanipowerbi 

 

How have you imported the data into Power BI? Meaning what tranformations have you applied? Can you share an extract of your data as this will help.

 

Thanks

 

Shebr

I've already heated this board and during the period I used

Period: DATEDIFF('Invoice Data'[User with Conversion Data. ConversionDate],'Invoice Data'[InvoiceDate],MONTH)
Now I need a change
My column will look like this
YearMyUserID CountPeriod
2019January11550
2019January11101
2019January10522
2019January10013
2019January9584
2019January9195
2019January8836
2019January8577
2019January8388
2019January8239
2019January80710
2019January79411
2019January77712
2019January75713
2019January74414
2019January72915
2019February12400
2019February11961
2019February11132
2019February10703
2019February10324
2019February9945
2019February9696
2019February9447
2019February9218
2019February8969
2019February87910
2019February85211
2019February84212
2019February82313
2019February81114

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.