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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Watthell234
Frequent Visitor

Cohort Analysis

Capture2.PNGHey PowerBI world!

 

I am struggling to create a model with same behavior as the one attached to this post.

 

Essentially, I need to create a Cohort Analysis of subscriptions by using their Start Date, End Date and Amount. How can I create a Power BI model in order to create the Table?

 

Please Help! I am in deep need thanks!

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Watthell234

 

In this scenario, you need to expand a list of months from StartDate to EndDate in your source. You can create a custom column like below:

 

List.Distinct(List.Transform({Number.From([StartDate])..Number.From([EndDate])}, each Date.AddDays(Date.EndOfMonth(Date.From(_)),-Date.Day(Date.EndOfMonth(Date.From(_)))+1)))

1.PNG

 

 

Then expand that Custom column:

 

11.PNG

 

Then you can create a matrix like below:

 

7.PNG

 

Regards,

View solution in original post

3 REPLIES 3
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Watthell234

 

In this scenario, you need to expand a list of months from StartDate to EndDate in your source. You can create a custom column like below:

 

List.Distinct(List.Transform({Number.From([StartDate])..Number.From([EndDate])}, each Date.AddDays(Date.EndOfMonth(Date.From(_)),-Date.Day(Date.EndOfMonth(Date.From(_)))+1)))

1.PNG

 

 

Then expand that Custom column:

 

11.PNG

 

Then you can create a matrix like below:

 

7.PNG

 

Regards,

@v-sihou-msft Now that I have this multi-axis chart, how do I create a measure that shows me the Percentage change from the baseline sum?

Amazing response time @v-sihou-msft! Worked like a charm. 

 

Thank you so much for the help!

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.