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.
Hello,
I am attempting use the following data to get the last date job from the unit id and return that reservation ID. For example find the last Date Job for Unit ID and return the reservation id for the last job date. Any help is apperciate.
Solved! Go to Solution.
hi, @chadb
If you could use this formula to add a column as below:
Column = var lastdatejob=CALCULATE(MAX('Table'[date_job]),FILTER('Table','Table'[unit_id]=EARLIER('Table'[unit_id]))) return CALCULATE(MAX('Table'[reservation_ID]),FILTER('Table','Table'[unit_id]=EARLIER('Table'[unit_id])&&'Table'[date_job]=lastdatejob))
Result:
If not your case, please share your expected output with the sample data.
Best Regards,
Lin
hi, @chadb
If you could use this formula to add a column as below:
Column = var lastdatejob=CALCULATE(MAX('Table'[date_job]),FILTER('Table','Table'[unit_id]=EARLIER('Table'[unit_id]))) return CALCULATE(MAX('Table'[reservation_ID]),FILTER('Table','Table'[unit_id]=EARLIER('Table'[unit_id])&&'Table'[date_job]=lastdatejob))
Result:
If not your case, please share your expected output with the sample data.
Best Regards,
Lin
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |