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

Find Earliest Transaction Date of a User

Edited..

 

Hi,

We have two tables, User_Table and Transaction_Table User_Table. We need to populate the earliest transaction date of a user to understand after how many days did a user made their first transaction after they were ceated. Note, there are users who did not make any transactions.

 

Transaction Table looks as bellow:

 

UserID Date Amount

01730311476 01 jan 2018 10

01730311476 05 jan 2018 20

01730311476 7 jan 2018 10

01730311476 13 jan 2018 10

01612123456 03 jan 2018 10

01612123456 09 jan 2018 10

01612123456 11 jan 2018 10

 

User Table looks as bellow with desired result in the Date column:

 

User_ID-Name-User_Creation_Date-First_Transaction_Date

01730311476-Sami-01_Dec_2018-?

01612123456-Rumana-01_Dec_2018 ?

01512789654-Tanim-01_Jan_2018 ?

 

How can we attain this?

 

Thanks,

Sami

1 ACCEPTED SOLUTION

Got the solution by ourselves 😄

 

First Payment Date = CALCULATE(FIRSTDATE(Payment[Transaction Date].[Date]),FILTER(Payment,User[Mobile]=Payment[Mobile]))

View solution in original post

10 REPLIES 10

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.