Forum Discussion
dgdgdg122db
6 years agoHelper II
distinct count if
Hi, I wan to see the distinct count of emails which have a total login >= 16 times Can someone please help 😞
- 6 years ago
Hi dgdgdg122db ,
We can also use the following measure to meet your requirement:
Measure = CALCULATE ( DISTINCTCOUNT ( 'Table'[Email] ), FILTER ( ALLSELECTED ( 'Table' ), CALCULATE ( SUM ( 'Table'[logins] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Email] = EARLIER ( 'Table'[Email] ) ) ) >= 16 ) )
Best regards,
v-lid-msft
6 years agoCommunity Support
Hi dgdgdg122db ,
We can also use the following measure to meet your requirement:
Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Email] ),
FILTER (
ALLSELECTED ( 'Table' ),
CALCULATE (
SUM ( 'Table'[logins] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Email] = EARLIER ( 'Table'[Email] ) )
) >= 16
)
)
Best regards,