Forum Discussion

Boopep's avatar
Boopep
Icon for Helper I rankHelper I
1 year ago
Solved

Counting Specific ClaimSeriesNumber if there is multiple entry

Asking for a DAX command to count only the ClaimSeriesNumber that is if there is a duplicate  ClaimSeriesNumber count only the one with the latest DateReceived.   
  • MasonMA's avatar
    1 year ago

    Hello Boopep 

     

    If you only want a count of distinct ClaimSeriesNum considering their latest DateReceived (no need to see other columns) and if duplicates with the same latest date don’t matter, 

    COUNTROWS (
        SUMMARIZE (
            table,
            table[ClaimSeriesNum],
            "LatestDate", MAX ( table[DateReceived] )
        )
    )