Forum Discussion

LS1700's avatar
LS1700
Icon for Resolver I rankResolver I
9 years ago
Solved

Summarize with filters

Hello,   I have this table, and I want to create a measure that can tells me how many customers have bought at least one unit, in a specific point in time. Basically, I want to have a filters on m...
  • LS1700's avatar
    LS1700
    9 years ago

    Well, I think I found the solution:

     

     

    # of dealers = CALCULATE(DISTINCTCOUNT([Customer]),filter(ALLEXCEPT(Sheet1,Sheet4[country]),Sheet1[sales]>0),FILTER(ALLEXCEPT(Sheet1,Sheet4[country]),Sheet1[Date]=Max(Sheet1[Date])))

    regards