Forum Discussion
distinct Customer this month
- 5 years ago
Hi PP_DP ,
Base on the table you provide,you could try the following steps:
Mon
Mon = RIGHT('Table'[DAY],3)Day
Day1 = LEFT('Table'[DAY],LEN('Table'[DAY])-4)Count:
COUNT = DISTINCTCOUNT('Table'[Cus name])Final create visualization:
Wish it is helpful for you!
Best Regards
Lucien
PP_DP you need to add date dimension in your model and set relationship with you table. You can add one by following my blog post here Create a basic Date table in your data model for Time Intelligence calculations | PeryTUS IT Solutions
Once it is done, add the following measure:
Distinct Customer count = DISTCINTCOUNT ( YourTable[CustomerId] )
On matrix visual, use day number from date dimension on rows, month name on columns and above measure on values and that will do it.
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡