countryfan_nt
Well-known Member
- Joined
- May 19, 2004
- Messages
- 765
Hello friends, Hope all is well!
please help me fix the following DAX formula. I want to distinct count the Invoice Numbers, provided that the
the invoice dates, name of branches, and patient ID match.
the formula below is not working; I am getting the following error:
Thank you very much in advance!
please help me fix the following DAX formula. I want to distinct count the Invoice Numbers, provided that the
the invoice dates, name of branches, and patient ID match.
the formula below is not working; I am getting the following error:
Thank you very much in advance!
VBA Code:
=CALCULATE (
DISTINCTCOUNT( 'TRT RAW DATA'[Invoice Number] ),
'TRT RAW DATA'[Invoice Date] = VALUES ( 'TRT RAW DATA'[Invoice Date] ) &&
'TRT RAW DATA'[Name of Branch] = VALUES ( 'TRT RAW DATA'[Name of Branch] ) &&
'TRT RAW DATA'[PatientID] = VALUES ( 'TRT RAW DATA'[PatientID] )
)