Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Count zero but not blank

Hi everyone,

I have created a measure where I count all sales that have been sold with 0 discount. But my problem is that it also counts all the blank fields in the specific column. Below is my measure:

Measure = CALCULATE([Total Sales], Sales[Discount] = 0)

When I write 0 then it takes 0 AND blank. How can I count all the 0 from the column "Discount" but not include blank fields?

3 Replies