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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rangeet1
Frequent Visitor

cohort

I am new in  this community. I am trying to make a cohort analysis. In which there two column dates in different tables , Enrollment date as first purchase date and sale dates as continious sales dates. Enrollemnt date takes place only once for each customer. These both dates are uniquely related by customer ID.With  * to 1 relationship.

 

I can make cohort when there is one date column. but with two dates that are both in squence im struggling. 

 

Can comeone pease help to explain the process in such a case. 

 

Thank you 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @rangeet1,

Any update for these? if your table includes multiple date fields that are hard to map relationships, you can also try to unpivot the date fields to attribute and value.

After these steps, you can simply link these unpivoted data values to a calendar and use a filter with attributes to choose filter date types.

Unpivot columns (Power Query) (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @rangeet1,

Any update for these? if your table includes multiple date fields that are hard to map relationships, you can also try to unpivot the date fields to attribute and value.

After these steps, you can simply link these unpivoted data values to a calendar and use a filter with attributes to choose filter date types.

Unpivot columns (Power Query) (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

Hi @rangeet1,

It seems like you did not share the data structure or other related information. Can you please share a pbix or some dummy data that keep raw data structure with expected results? They will help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Jihwan_Kim
Super User
Super User

Hi,

I hope the below video helps.

Or, please share your sample pbix file or sample data and expected result.

Thank you.

 

https://www.youtube.com/watch?v=vbg4Je1tuis

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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