I have a formula in an excel workbook that I update every month to try and get the trended PMPM (Per Member Per Month) based the total number of days in the month and it varies based on the day of the month. For example:
The formula for February is =(28/COUNTA(A3:A25))*C28 where A3-A25 are the days of the month (each day I insert a row for the day before's claims) so 2/1 2/2 2/3 etc. The C28 is the premium which for this example is 660.41. So basically as of yesterdays numbers, the 28 day trended PMPM is 703.54 which is 28/23*660.41. Does anyone know how I can make this a dynamic calculation in power bi? THe part I don't understand is how to automatically calculate the number of days in the month and then how to perform the calculation based on where we are at in days in the month.
Thanks for any help.