Excel 2010 V1
Hi All,
I hope you can help me with this. I have the following formula with works fine; however, I wish to add two more values to my "OR" statment in this formula. Of course DAX only allows 2 arguments in a OR operation. How could I write this statement to include all 4 values: of XFRHOSPICE, XFROTH, XFRPSY and XFRSNF.
Currently I can only get these two included in the "OR" statement, XFRHOSPICE, XFROTH. Is there a way to nest an IF, OR or AND statement or maybe a completely different way to write this that I am missing?
=CALCULATE([Cases], 'EPSI SOAR MNDOG'[DISCHARGE - FISCAL YEAR]=2014, 'EPSI SOAR MNDOG'[ED FLAG]="NON ED", 'EPSI SOAR MNDOG'[TRAUMA LOG]="", or('EPSI SOAR MNDOG'[ADMISSION SOURCE]="XFRHOSPICE", 'EPSI SOAR MNDOG'[ADMISSION SOURCE]="XFROTH"))
Thanks for any help you can offer.
Terry
Hi All,
I hope you can help me with this. I have the following formula with works fine; however, I wish to add two more values to my "OR" statment in this formula. Of course DAX only allows 2 arguments in a OR operation. How could I write this statement to include all 4 values: of XFRHOSPICE, XFROTH, XFRPSY and XFRSNF.
Currently I can only get these two included in the "OR" statement, XFRHOSPICE, XFROTH. Is there a way to nest an IF, OR or AND statement or maybe a completely different way to write this that I am missing?
=CALCULATE([Cases], 'EPSI SOAR MNDOG'[DISCHARGE - FISCAL YEAR]=2014, 'EPSI SOAR MNDOG'[ED FLAG]="NON ED", 'EPSI SOAR MNDOG'[TRAUMA LOG]="", or('EPSI SOAR MNDOG'[ADMISSION SOURCE]="XFRHOSPICE", 'EPSI SOAR MNDOG'[ADMISSION SOURCE]="XFROTH"))
Thanks for any help you can offer.
Terry