Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

How do I calculate Average Daily Census on this data?

Here is a subset of the data table.  I need to be able to calculate the Average Daily Census for each program, based on the rows in this table.  I am not a programmer at all so I have no idea how to ...
  • Cmcmahan's avatar
    7 years ago

    Luckily, you don't need any prgramming knowledge to get this.  If you right click the table Globa28DailyCensusMA, and select the New Quick Measure option, you'll launch a helpful wizard.  You want an average by category, with that category being the date.  The base value would be a count of any column from the table.  

    That will create the measure for you! Mine looked like this:

     

    Average Daily Census = 
    AVERAGEX(
    	KEEPFILTERS(VALUES('Table'[visit_start_date])),
    	CALCULATE(COUNTA('Table'[Visit Type]))
    )

     

     

    I put that in some table visuals, filtering them by the age of the person, and came up with this from your example data. Try it with your data, and see if you come up with what you're looking for!