Forum Discussion
Anonymous
8 years agoNot applicable
Average of users
I want to make average of users per month. Count of users are distinct each month. But I want my average should look like: for the first two months (173+308)/2 or for three months (173+308+382...
- 8 years ago
Anonymous
What about this one? :smileytongue:
Average User Count by month = IF ( HASONEVALUE ( 'Talend_GA sessions'[Month] ), AVERAGEX ( FILTER ( ALLSELECTED ( 'Talend_GA sessions'[Month] ), 'Talend_GA sessions'[Month] <= SELECTEDVALUE ( 'Talend_GA sessions'[Month] ) ), CALCULATE ( DISTINCTCOUNT ( 'public accounts_usersession'[user_id] ) ) ), DIVIDE ( AVERAGEX ( ALL ( 'Talend_GA sessions'[Month] ), CALCULATE ( DISTINCTCOUNT ( 'public accounts_usersession'[user_id] ) ) ), DISTINCTCOUNT ( 'Talend_GA sessions'[Month] ) ) )
Zubair_Muhammad
Community Champion
8 years agoAnonymous
What about this one? :smileytongue:
Average User Count by month =
IF (
HASONEVALUE ( 'Talend_GA sessions'[Month] ),
AVERAGEX (
FILTER (
ALLSELECTED ( 'Talend_GA sessions'[Month] ),
'Talend_GA sessions'[Month] <= SELECTEDVALUE ( 'Talend_GA sessions'[Month] )
),
CALCULATE ( DISTINCTCOUNT ( 'public accounts_usersession'[user_id] ) )
),
DIVIDE (
AVERAGEX (
ALL ( 'Talend_GA sessions'[Month] ),
CALCULATE ( DISTINCTCOUNT ( 'public accounts_usersession'[user_id] ) )
),
DISTINCTCOUNT ( 'Talend_GA sessions'[Month] )
)
)Anonymous
8 years agoNot applicable
Now, It's still something strange. But no worries I can live with that. Thanks a lot for your help.