Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a table on a database which contains a field Validated of varchar.
I need to count the number of records with [Validated] == 'Y', I created a measure with the following formula:
Validated = CALCULATE ( Count (Result[ID]), FILTER ( Result, [Validated] == 'Y') )
I got this error message:
Can anyone tell me what am I missing here and how to fix it?
Thank you very much.
Solved! Go to Solution.
Validated = CALCULATE ( Count (Result[ID]), FILTER ( Result, [Validated] = "Y") )
I changed from creating column to creating measure and it works now, thank you very much. @Greg_Deckler
Validated = CALCULATE ( Count (Result[ID]), FILTER ( Result, [Validated] = "Y") )
Thank you @Greg_Deckler,
I got the following number which doesn't seem to be a count result but rather a sum result:
The count should be something less than 50000
I changed from creating column to creating measure and it works now, thank you very much. @Greg_Deckler
Ah, I was wondering, because you said "measure" in your first post so I was thinking that couldn't be the issue!!