Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |