Forum Discussion
Calculate % change from previous column
distinct count of users should be calculate for a day or for the whole period before the day?
do not hesitate to give a kudo to useful posts and mark solutions as solution
az38 for each day. And I want to see how many percent of users have dropped. Day Number is just alternate name of attribute. There are too many attribute in chatbot. But I only need some attribute and I have to change the name with another column
- az386 years ago
Community Champion
and how do you calculate count of users in day-begin point?
do not hesitate to give a kudo to useful posts and mark solutions as solution
- zawlh6 years ago
Helper I
az38 I used Day Number is X-axis and DISTINCTCOUNT of messenger_id in value(so not difficult). What makes me difficult is the percent change in each day
The above graph is the example
- az386 years ago
Community Champion
try a measure like this
Measure = var _currentContextDay = DATE(YEAR(SELECTEDVALUE('Table'[timestamp]));MONTH(SELECTEDVALUE('Table'[timestamp]));DAY(SELECTEDVALUE('Table'[timestamp]))) var _countCurDay = CALCULATE(DISTINCTCOUNT('Table'[messenger_id]);FILTER(ALL('Table');'Table'[timestamp].[Date]=_currentContextDay)) var _countLastDay = CALCULATE(DISTINCTCOUNT('Table'[messenger_id]);FILTER(ALL('Table');_currentContextDay=DATEADD('Table'[timestamp].[Date];1;DAY))) return 1-DIVIDE(_countLastDay;_countCurDay)do not hesitate to give a kudo to useful posts and mark solutions as solution