Forum Discussion
Linger
6 years agoFrequent Visitor
Distinctcount active customers based on Sales 12M
Hi Power BI Community, I have a requirement that I just can't get my head around. As an example I have used a calendar table and a simple data table with the columns: Customer ID, Date and Sales...
- Anonymous6 years ago
[# Active Cust] = var __activeCusts = FILTER( Customers, // must be a dimension [Sales 12M] > 0 ) return COUNTROWS( __activeCusts )Best
D
Anonymous
6 years agoNot applicable
[# Active Cust] =
var __activeCusts =
FILTER(
Customers, // must be a dimension
[Sales 12M] > 0
)
return
COUNTROWS( __activeCusts )
Best
D
Linger
6 years agoFrequent Visitor
Hi darlove,
Thank you so much. I haven't really worked with variables so far, guess I should learn more about those!
I created a separate table with unique Customer IDs and used that as the table for Filter which worked out great 😀