Forum Discussion
sitm-matt
6 years agoFrequent Visitor
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...
- 6 years ago
Hello sitm-matt
Give this a try:
Items With Inventory Balance = COUNTROWS( FILTER ( VALUES ( 'Item'[ItemCode] ), [InventoryBalance] > 0 ) )
jdbuchanan71
Super User
6 years agoHello sitm-matt
Give this a try:
Items With Inventory Balance = COUNTROWS( FILTER ( VALUES ( 'Item'[ItemCode] ), [InventoryBalance] > 0 ) )
sitm-matt
6 years agoFrequent Visitor
jdbuchanan71 Thank you very much! I was definitely over complicating it in my mind. Your measure works flawlessly! Performance is good over a large dataset too.