Forum Discussion

sitm-matt's avatar
sitm-matt
Frequent Visitor
6 years ago
Solved

Distinct count over time with conditions

Hi, I'm looking for some help with a DAX expression.   I'm trying to create a measure that can count the number of unique Items on hand at any given date in time. My fact table represents an inven...
  • jdbuchanan71's avatar
    jdbuchanan71
    6 years ago

    Hello sitm-matt 

    Give this a try:

    Items With Inventory Balance = 
    COUNTROWS( FILTER ( VALUES ( 'Item'[ItemCode] ), [InventoryBalance] > 0 ) )