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.
I have two tables, _SalesTable (all sales transactions) and _AppointmentsTable (all appointments) and a separate date table. Their is a unique identifier for patients ( Patient ID) that exists as a column in both tables. In the appointments table there is a column called "Duration" which is the number of minutes for each appointment.
I am trying to create a measure that would calculate the sum of "_AppointmentsTable[Duration]" of all appointments for any given patient within 30 days prior to the sale date and 30 days after. The end goal is to be able to calculate the revenue/profit generated per clinical hour. We need to know how much time was spent with each patient to generate the sale in order to do this.
Here are the columns for the tables mentioned above:
_SalesTable
Sales Date | Patient ID | Item | Revenue | Qty |
_ApptTable
Appt Date | Patient ID | Completed | Duration |
Any help would be greatly appreciated.
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 |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |