Forum Discussion
Watthell234
9 years agoFrequent Visitor
Cohort Analysis
Hey 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 S...
- 9 years ago
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)))Then expand that Custom column:
Then you can create a matrix like below:
Regards,
v-sihou-msft
9 years agoMicrosoft Employee
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)))
Then expand that Custom column:
Then you can create a matrix like below:
Regards,
- Watthell2349 years agoFrequent Visitor
- Watthell2349 years agoFrequent Visitor
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?