rodwhiteley
New Member
- Joined
- Jan 15, 2012
- Messages
- 37
Another newbie question here, sorry, but I am just getting my head around this stuff, and I have a deadline to meet:
Background: In our workplace, therapists have appointments booked of different types, and patients occasionally cancel their appointments with no notice. We're trying to make a productivity measure to look at our guys accounting for this behaviour of the patients.
Briefly, the FactAppointments table format is as follows:
Appointment Date | Therapist Name | Appointment Time | Appointment Type | Patient Name | ...
<3 million rows>
In a different FactCancellations table I have cancellations that have been made of these appointments:
Appointment Date | Therapist Name | Appointment Time | Appointment Type | Patient Name |Cancellation Date|...
<250k rows>
I have made a dimension lookup table for the |Appointment Type| column so that these 47 fields are collapsed to 4 categories, and made the relationships with the Fact tables.
These Fact tables are linked by a dimension Calendar table spanning the time we've been open and into the future.
Question: I need to count up the appointments of a particular type added to the cancellations so that I can then figure how many appointments each therapist has had per day adjusted for the cancellations - ie appointments + cancellations on a given day (week, month, year) to then display in a Pivot table.
This must be simpler than I am making it, but I keep getting lost in a many-to-many relationship, and haven't figured out how to do this linking by the calendar which is the one side of the 2 fact tables.
If this is covered in any of the following books, please just point me to the appropriate sections - I'm working my way through these at different rates:
PowerPivot PowerBI 2nd Ed Collie & Singh
Learn to write DAX Rob Allington
Definitive Guide to DAX Russo & Ferrari
M is for Monkey Puls & Escobar
Background: In our workplace, therapists have appointments booked of different types, and patients occasionally cancel their appointments with no notice. We're trying to make a productivity measure to look at our guys accounting for this behaviour of the patients.
Briefly, the FactAppointments table format is as follows:
Appointment Date | Therapist Name | Appointment Time | Appointment Type | Patient Name | ...
<3 million rows>
In a different FactCancellations table I have cancellations that have been made of these appointments:
Appointment Date | Therapist Name | Appointment Time | Appointment Type | Patient Name |Cancellation Date|...
<250k rows>
I have made a dimension lookup table for the |Appointment Type| column so that these 47 fields are collapsed to 4 categories, and made the relationships with the Fact tables.
These Fact tables are linked by a dimension Calendar table spanning the time we've been open and into the future.
Question: I need to count up the appointments of a particular type added to the cancellations so that I can then figure how many appointments each therapist has had per day adjusted for the cancellations - ie appointments + cancellations on a given day (week, month, year) to then display in a Pivot table.
This must be simpler than I am making it, but I keep getting lost in a many-to-many relationship, and haven't figured out how to do this linking by the calendar which is the one side of the 2 fact tables.
If this is covered in any of the following books, please just point me to the appropriate sections - I'm working my way through these at different rates:
PowerPivot PowerBI 2nd Ed Collie & Singh
Learn to write DAX Rob Allington
Definitive Guide to DAX Russo & Ferrari
M is for Monkey Puls & Escobar