Forum Discussion

mahawkins3's avatar
mahawkins3
Icon for Helper I rankHelper I
9 years ago
Solved

Count previous rows in table with same user ID

Hi, I'm looking for a way to filter my datasource based on whether a customer is appearing in the table for the first time. A simplified version of the table would look something like this: ...
  • Sean's avatar
    9 years ago

    mahawkins3

    You can create a Column like this

    New Column =
    IF (
        'Table'[Date]
            = CALCULATE (
                FIRSTDATE ( 'Table'[Date] ),
                ALLEXCEPT ( 'Table', 'Table'[User_ID] )
            ),
        1,
        0
    )

    Hope this helps! :smileyhappy: