Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Boopep
Helper I
Helper I

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. 

Boopep_0-1756298512932.png

 

1 ACCEPTED SOLUTION
MasonMA
Community Champion
Community Champion

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] )
    )
)

 

View solution in original post

6 REPLIES 6
Boopep
Helper I
Helper I

Thank you on this

MasonMA
Community Champion
Community Champion

Happy to see it works:) 

MasonMA
Community Champion
Community Champion

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] )
    )
)

 

Thank you.... i tested it it correct.... how about if i want to display only the total CLAIMSAMOUNT of those "LatestDate" in a Card. What would be the DAX measure

MasonMA
Community Champion
Community Champion

This isnt as intuitive as your original request. I'd suggest opening another post with your data pasted in your message in a right format (not images) so that other users can test in their pbi desktop and give your a correct solution:) 

rohit1991
Super User
Super User

Hi @Boopep 

Could you please try this measure:

Count Latest ClaimSeries =
VAR LatestRows =
    FILTER (
        ALLSELECTED ( 'Claims' ),
        NOT ISBLANK ( 'Claims'[DateReceived] ) &&
        'Claims'[DateReceived] =
            CALCULATE (
                MAX ( 'Claims'[DateReceived] ),
                ALLEXCEPT ( 'Claims', 'Claims'[ClaimSeriesNumber] )
            )
    )
RETURN
COUNTROWS ( SUMMARIZE ( LatestRows, 'Claims'[ClaimSeriesNumber] ) )

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.