Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Measure Zero not equal to Zero

Hello,   I have total sales measure which is sum of sales for the selected period. Then I'm calculating another measure on top of it to identify products with non zero sales. Even when total sales ...
  • Ashish_Mathur's avatar
    7 years ago

    Hi,

    Try these measures

    Total Sales = SUM(Sheet1[sales])

    Non Zero Product Sales = CALCULATE(DISTINCTCOUNT(Sheet1[productid]), FILTER(VALUES(Sheet1[productid])),[Total Sales] <>0))

    Hope this helps.