Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

New Users measure

Hi,  I have a table where I have all the logins for each user, one line is one login. I have a calculated column retrieving the registration date from another table via LOOKUPVALUE. I made this mea...
  • v-yanjiang-msft's avatar
    v-yanjiang-msft
    3 years ago

    Hi Anonymous ,

    Sorry for late back. Yes, for multiple lines in different month it also works. If in the same month there're multiple lines and you want to count all the lines, change the formula to:

    Measure =
    CALCULATE (
        DISTINCTCOUNT ( Table_Visitors[Visitor ID] ),
        FILTER (
            'Table_Visitors',
            COUNTROWS (
                FILTER ( 'Table_Visitors', 'Table_Visitors'[Month] = MAX ( 'calendar'[Month] ) )
            ) > 0
                && COUNTROWS (
                    FILTER (
                        'Table_Visitors',
                        'Table_Visitors'[Month]
                            = MAX ( 'calendar'[Month] ) - 1
                    )
                ) = 0
        )
    )

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.