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