Forum Discussion
Count Distinct Values By Column and by Date
- 6 years ago
Hi,
Please find the below DAX measure solution.
DistinctCountOfCustomer = CALCULATE(DISTINCTCOUNT(DB_Table[CustomerID]),VALUES(Date_Table[Year]))
It is working fine. Please check and advise if it also works as per you.
Thanks,
Rakesh
- 6 years ago
If you need across the used combined column. If you need by DB and By year. Then you can take distinct of customer ID. But if you are using DBname in your visual then the combined one will also work.
Hi,
Please find the below DAX measure solution.
DistinctCountOfCustomer = CALCULATE(DISTINCTCOUNT(DB_Table[CustomerID]),VALUES(Date_Table[Year]))
It is working fine. Please check and advise if it also works as per you.
Thanks,
Rakesh
- EVEAdmin6 years agoPost Patron
RakeshNag thank you.
That returns unique customers by Year. I need unique customers by DBName by year
- amitchandak6 years agoSuper User
If you need across the used combined column. If you need by DB and By year. Then you can take distinct of customer ID. But if you are using DBname in your visual then the combined one will also work.