Forum Discussion
Anonymous
6 years agoNot applicable
Count new users based on usage logging
How can I create two column charts based on usage logging that shows the growth of users? I have the username and timestamp (among other metrics). I want one chart to show the number of users tha...
- 6 years ago
hi Anonymous
You could try this way as below:
Step1:
Add a YearMonth column for date column
Step2:
Use these two formula to create two measure for your requirement:
new users = CALCULATE(DISTINCTCOUNT('Table'[username]),FILTER('Table','Table'[Date]=CALCULATE(MIN('Table'[Date]),ALLEXCEPT('Table','Table'[username]))))all unique users = CALCULATE(DISTINCTCOUNT('Table'[username]),FILTER(ALL('Table'),'Table'[Date]<=MAX('Table'[Date])))Result:
and here is sample pbix file, please try it.
Regards,
Lin
v-lili6-msft
6 years agoCommunity Support
hi Anonymous
You could try this way as below:
Step1:
Add a YearMonth column for date column
Step2:
Use these two formula to create two measure for your requirement:
new users = CALCULATE(DISTINCTCOUNT('Table'[username]),FILTER('Table','Table'[Date]=CALCULATE(MIN('Table'[Date]),ALLEXCEPT('Table','Table'[username]))))all unique users = CALCULATE(DISTINCTCOUNT('Table'[username]),FILTER(ALL('Table'),'Table'[Date]<=MAX('Table'[Date])))
Result:
and here is sample pbix file, please try it.
Regards,
Lin
- Anonymous6 years agoNot applicable
Thank you so much! Works perfectly.
But your measure formulas needed to be adjusted to use semicolons instead of commas to get it to work. Maybe it's some internationalization setting, but it threw me off for a minute (the attached file helped a lot!).