Hello Everyone,
I am hoping that I can find some help here for the problem that I am having with a report that I am trying to create.
So what I am trying to create is a report where I get a census count of members based upon their date of admission to a hospital and their discharge dates.
I have gotten that part down to where I have the following where Days in (Month) is a measure that I have created that calcuates the number of days a member stays in a hospital based upon their admission and discharge dates:
Member|Admission|Discharge|Days in January|Days in Feburary|Days in March|Days in April
0000000|01-01-12 |02-02-12 |30 |1 |0 |0
0000001|02-02-12 |03-04-12 |0 |26 |3 |0
0000002|03-20-12 |04-04-12 |0 |0 |11 |3
I now am trying to create a crosstab report where it would sum the number of days by quarter and year.
The problem that I am having is that when I have a member that is outside of the quarter.
Here is an example of what I am seeing in Business Objects:
2012-Q1|2012-Q2|
Total Days|71 |0 |
Which is not right because I know there are days in Q2 that need to be counted.
I have tried using =Sum(Days in January+Days in Februrary+Days in March+Days in April.... In ([Qtr];[Year])
=Sum(Days in January+Days in Februrary+Days in March+Days in April ForEach ([Qtr];[Year])
Nothing seems to work. I am wondering if I could use a running sum,but I am not sure how to create a formula based around that.
I am not sure if there is a way that I can get this into a format that BO will understand or if I should just give up and throw this into an Excel pivot table.
Could someone take a look at this and let me know how I can approach this problem in a different way so I can get these totals correct?
Thanks!!
↧
Need help with a crosstab summation
↧