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.
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
Solved! Go to Solution.
Got the solution by ourselves 😄
First Payment Date = CALCULATE(FIRSTDATE(Payment[Transaction Date].[Date]),FILTER(Payment,User[Mobile]=Payment[Mobile]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |