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 there,
I am looking for a DAX measure that can help me calculate the total number of users that have only logged in once to our platform.
I have a data field called Login and then an email column.
I've started with this measure which gives me the data I am looking to isolate.
I can then filter to login count is less than 1 but I would like to place a summary metric on a card and not show any of the user details.
Any suggestions please?
Solved! Go to Solution.
Try
Users logged in once =
VAR SummaryTable =
ADDCOLUMNS (
DISTINCT ( 'Table'[Email] ),
"@num logins", CALCULATE ( COUNTROWS ( 'Table' ) )
)
VAR NumLoggedInOnce =
COUNTROWS ( FILTER ( SummaryTable, [@num logins] <= 1 ) )
RETURN
NumLoggedInOnce
Try
Users logged in once =
VAR SummaryTable =
ADDCOLUMNS (
DISTINCT ( 'Table'[Email] ),
"@num logins", CALCULATE ( COUNTROWS ( 'Table' ) )
)
VAR NumLoggedInOnce =
COUNTROWS ( FILTER ( SummaryTable, [@num logins] <= 1 ) )
RETURN
NumLoggedInOnce
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |