Forum Discussion
Countx returns unexpected result
Hi ,
I want to count No. of customers who occurred once and more than 1 once.
First I have a calculated column :
Hi dgdgdg122db ,
try DISTINCTCOUNT
https://docs.microsoft.com/en-us/dax/distinctcount-function-dax
use it in a measure.
Yours sincerely,
Brigi
Hi dgdgdg122db ,
As brigittagemes 's suggestion, you may create the [Order occurrence] using measure instead of calculated column like DAX below.
Order occurrence=DISTINCTCOUNT('Unique Order customer'[Customer No.])
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- brigittagemesHelper I
Hi dgdgdg122db ,
try DISTINCTCOUNT
https://docs.microsoft.com/en-us/dax/distinctcount-function-dax
use it in a measure.
Yours sincerely,
Brigi
- v-xicaiCommunity Support
Hi dgdgdg122db ,
As brigittagemes 's suggestion, you may create the [Order occurrence] using measure instead of calculated column like DAX below.
Order occurrence=DISTINCTCOUNT('Unique Order customer'[Customer No.])
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.