countryfan_nt
Well-known Member
- Joined
- May 19, 2004
- Messages
- 765
Hello! please help me fix the below DAX formula,
=IF(COUNTROWS(FILTER('PATIENT COUNT - RAW DATA - per Dr',[PatientID]=EARLIER('PATIENT COUNT - RAW DATA - per Dr'[PatientID])&&[Name of Branch]=EARLIER([Name of Branch])&&[InvoiceDate]>EARLIER([InvoiceDate]))),1,0)
I wish to capture ifs:
1. If clinic = ER and for the Earlier Clinic <> ER
2. And for invoice Date is equal or less than Earlier in other clinics (not ER)
Thank you so much in advance
=IF(COUNTROWS(FILTER('PATIENT COUNT - RAW DATA - per Dr',[PatientID]=EARLIER('PATIENT COUNT - RAW DATA - per Dr'[PatientID])&&[Name of Branch]=EARLIER([Name of Branch])&&[InvoiceDate]>EARLIER([InvoiceDate]))),1,0)
I wish to capture ifs:
1. If clinic = ER and for the Earlier Clinic <> ER
2. And for invoice Date is equal or less than Earlier in other clinics (not ER)
Thank you so much in advance