Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have the expression - Count({<ADMIT_MNTH = {"$(=Max(ADMIT_MNTH))"}>}[Patient]) which gives me the max month but i know need the same expression but the previous month so MINUS 1
Thanks
Kev
use addmonths function with -1
Count({<ADMIT_MNTH = {"$(=AddMonths(Max(ADMIT_MNTH),-1))"}>}[Patient])
check output of this expression in a text object and check
AddMonths(Max(ADMIT_MNTH),-1)
try below
assuming ADMIT_MNTH format is MMM YYYY. In below set you can try giving actual format
Count({<ADMIT_MNTH = {"$(=date(addmonths(Max(ADMIT_MNTH),-1),'MMM YYYY'))"}>}[Patient])
@kev6brown wrap it with date and try