correct P BI measure: P_ No of Doc. Types (Unidentified) = DISTINCTCOUNT('Cozmos…
- User
correct P BI measure: P_ No of Doc. Types (Unidentified) = DISTINCTCOUNT('Cozmos ETE'[Transaction_ID]) && ('Cozmos ETE'[Document_Type] = "UNIDENTIFIED")
- Assistant
Your DAX measure syntax is incorrect because you are mixing a logical operator (
&&) with a filter condition in a way that DAX does not support directly inside a measure.If you want to count the distinct
Transaction_IDwhere theDocument_Typeis"UNIDENTIFIED", you should use theCALCULATEfunction combined withDISTINCTCOUNTand a filter condition.Here is the corrected measure:
P No of Doc. Types (Unidentified) = CALCULATE( DISTINCTCOUNT('Cozmos ETE'[Transaction_ID]), 'Cozmos ETE'[Document_Type] = "UNIDENTIFIED" )Explanation:
DISTINCTCOUNT('Cozmos ETE'[Transaction_ID])counts distinct transaction IDs.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.