Forum Discussion
sqldev2017
7 years agoMicrosoft Employee
Get Count based on condition or filter
I have a calculared measure - say "Revenue". I have a dimension called Accounts, which contains Unique AccountID. The "Revenue" measure relates to the Accounts - Revenue for an account / Qua...
- 7 years ago
Thank you for your replies.
I think I found the solution in a different POWERBI thread -
CALCULATE(DISTINCTCOUNT(Sales[Sales_ID]),FILTER(VALUES(Sales[Sales_ID]),[YTDSales]>3000))
LivioLanzo
7 years agoSolution Sage
sqldev2017
7 years agoMicrosoft Employee
Thank you for your replies.
I think I found the solution in a different POWERBI thread -
CALCULATE(DISTINCTCOUNT(Sales[Sales_ID]),FILTER(VALUES(Sales[Sales_ID]),[YTDSales]>3000))