Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I wan to see the distinct count of emails which have a total login >= 16 times
Can someone please help 😞
Solved! Go to Solution.
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,
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,
Hi @dgdgdg122db ,
Try the following measure:
Count Emails =
COUNTROWS (
FILTER (
SUMMARIZE (
ALLSELECTED ( 'Table'[email]; 'Table'[Month] );
'Table'[email];
"@LoginCount"; SUM ( 'Table'[Logins] )
);
[@LoginCount] >= 16
)
)
I have used the allselected so if you want to add a slicer by e-mail or month it will return the calcution.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
132 | |
76 | |
53 | |
38 | |
37 |
User | Count |
---|---|
204 | |
81 | |
71 | |
56 | |
48 |