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
Anonymous
Not applicable

DAX to show count of max ID in Matrix

I'm not sure if my subject makes sense. So here is my question:

 

I have a table (just an example)

LeadIDStatusCreatedDate
ALead6/1/2020
AContact6/14/2020
ASuccess6/16/2020
BLead6/2/2020
BSuccess6/6/2020
 

 

I am currently using this measure:

Count of ID = CALCULATE(COUNT(Table[LeadID]))

 

Then I made a matrix that looks like this:

Row Group: Status

Column Group: Day (from my date table)

Values: Count of ID

 DayDayDayDayDay
Status1261416
Lead11   
Contact   1 
Success  1 1

 

Date Slicer: 2020-06-01 to 2020-06-16

 

However, this is not my intended outcome. My intended outcome is to only show the count of the latest status based on the date slicer. below are some examples of my what I want:

 

Example 1 -

Date Slicer: 2020-06-01 to 2020-06-16

 DayDay
Status616
Success11

 

 

Example 2 -

Date Slicer: 2020-06-01 to 2020-06-14

 DayDay
Status614
Contact 1
Success1 

 

Example 3 -

Date Slicer: 2020-06-01 to 2020-06-01

 Day
Status1
Lead1
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors