Hi All,
Despite a lot of googling and looking through this forum, I can’t work the following out:
I have a bar graph which displays the number of patients admitted to the stroke unit per month (pic 1).
@jotg - It seems you need to create a calculated field by dividing the 438Treatedinastrokeunit field by the admission field. Something like below and format that as percent
sum(treatedinstrokeunit) / sum(admitted)
Then project that field against the Date Dimension in Line chart. Hope this helps!
Hi @sagmukhe On reviewing what I did here, I realise this is still not correct. I actually need to know the percentage of patients who presented with a stroke that were then admitted to the stroke unit.
The stroke unit field has the following response options- Yes (1), No (2), Unknown (9), and some will be blank. I only want to count those where the response is 1 and then get a percentage of those compared to the total.
I tried this script (not that each patient record has an id number, and that’s why I’m using a count of those as my denominator):
But I’m getting an error.
I also tried a couple of different scripts using the %oftotal function:
@jotg - The syntax of countIf seems to be wrong in the example screenshot that you shared. Please go through the below link and that should perhaps help you to see the correct implementation.