+ Reply to Thread
Results 1 to 11 of 11

Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

  1. #1
    Registered User
    Join Date
    11-17-2019
    Location
    Pittsburgh, PA
    MS-Off Ver
    2016
    Posts
    5

    Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Hello I have a spreadsheet of patient appointments and would like to figure out a way to see the frequency of how often different categories of patients are being seen.
    I would like to see if they are coming in monthly, bi- weekly, every six months etc....

    I know I can use the frequency function to see how many appointments are happening, but I'd more like to see on average how often they are coming in terms of time periods.

    Any help in starting this would be awesome.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Welcome to the forum.

    We need to start with a sample workbook - please see instructions in the yellow banner up top.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-17-2019
    Location
    Pittsburgh, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Hello,
    Here is an example spreadsheet.
    With a much bigger spread of dates (like 200,000 with a lot of different clinics), I would like to know for each clinic on average how often the different types of patients are coming in based on their diagnosis and their appt date.
    Attached Files Attached Files
    Last edited by shoeGirl38; 11-17-2019 at 09:19 AM. Reason: attachment

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    OK - so what we need is for you to mock up (manually) the outcomes you wish to see for that sample dataset. Please do that and attach the updated workbook.

  5. #5
    Registered User
    Join Date
    11-17-2019
    Location
    Pittsburgh, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Attached is an example of the outcome.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    No, sorry - we need both source data and expected outcomes in one workbook.

  7. #7
    Registered User
    Join Date
    11-17-2019
    Location
    Pittsburgh, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Both source data and expected outcome are in one workbook with Sheet names designated as such.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Oh, dear!

    In the outcomes you have diagnoses A and B - in the source data there is only diagnosis X.

    What we need is sample data that shows what you wish to achieve. We can't see this if the sample source data has none of the summary data in it!

    I am afraid I have run out of time for today - hopefully someone else will be able to take this further for you.

  9. #9
    Registered User
    Join Date
    11-17-2019
    Location
    Pittsburgh, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    I'm so sorry! I apologize! I didn't know it had to be exactly.
    I have updated the expected outcome sheet to reflect the source data
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    I apologize! I didn't know it had to be exactly.
    That's what "realistic & representative sample data" means in the banner up top.

    It's taken three hours, but finally we have something meaningful from you - thank you.

    I'm in the UK - I have to go now and start preparing for our Sunday dinner! I am sure someone else will have some ideas for you.

  11. #11
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Getting frequency of Appointments over time as Montly, Weekly, Yearly etc

    Here's one approach, using PowerPivot.

    First, I'd add a table to define your frequency categories - something like:

    Capture.PNG

    Format your Visits source data as a table.

    Load both tables to the Data Model - I use Power Query (Get & Transform Data) for this.

    Now create several DAX Measures in your data model:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Now you can create a pivot table from the data model, using Visits[Clinic] and Visits[Diagnosis] in rows, Categories[Category] in Columns, and [Patients Per Category] in Values.

    Capture1.PNG

    You can simply refresh all data, to update when your source data changes, or when you make changes to your Frequency Categories.

    See attached workbook for worked example - I added a few additional rows to your source data, to demonstrate the calculations.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculating time (daily, weekly, monthly, yearly)
    By rayted in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2017, 01:22 PM
  2. Combine different Yearly Plannings into a Weekly Overview
    By Fre_K in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2017, 09:49 AM
  3. Replies: 1
    Last Post: 02-19-2015, 09:42 AM
  4. [SOLVED] Daily, Weekly, Monthly, Yearly Calculation
    By Doodledo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-20-2013, 07:20 AM
  5. Converting weekly data with dates to montly averages
    By KorreSporre in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 08:57 AM
  6. [SOLVED] how can list data weekly,monthly yearly etc in ms excell
    By Abdul Gaphoor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2006, 01:40 PM
  7. [SOLVED] sales data how i can list weekly,monthly yearly etc..etc...
    By Abdul Gaphoor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-01-2006, 07:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1