Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi guys,
I have a simply question. i have a table with customers that have created sales in a period of time. My goal is to distinct count how many of customer created a sales transaction in a period. For examole this customer created two sales transaction in 2020. the column measure calculate now:
many thanks
Solved! Go to Solution.
Hi @amitchandak ,
thanks for your quick response... your proposal result in each row a 2 . To return 1 for each row and as Total the solution that i tested is:
CALCULATE(
DISTINCTCOUNT('Sales'[CustomerKey]),
FILTER(ALLSELECTED('Sales'),'Sales'[CustomerKey] = MAX('Sales'[CustomerKey])))
@rsanyoto , Try a measure like
Measure = CALCULATE(
COUNT('Sales'[CustomerKey]),
FILTER(ALLSELECTED('Sales'),'Sales'[CustomerKey] = MAX('Sales'[CustomerKey])))
Hi @amitchandak ,
thanks for your quick response... your proposal result in each row a 2 . To return 1 for each row and as Total the solution that i tested is:
CALCULATE(
DISTINCTCOUNT('Sales'[CustomerKey]),
FILTER(ALLSELECTED('Sales'),'Sales'[CustomerKey] = MAX('Sales'[CustomerKey])))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 48 | |
| 45 |