I have one variable 'dur' showing the duration of treatments and another variable 'date' showing the end date of the treatment. I need to sum up the duration of treatments which have end dates between 1/1/2018 and 31/12/2018. How do I do this? I tried:
...and:
...without success.
Code:
sum dur if date ==21185/21549
Code:
sum dur if 21185<date<21549
Comment