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
ericsara
Helper I
Helper I

Get Max count when grouped by day

So I  have a set of data like this:

Ticket NumberDate
11/1/23
23/3/23
33/3/23
43/3/23
55/523
65/523

 

I want to count the instances of each date and get this.

DataCount
1/1/23   1
3/3/23   3
5/5/23   2

 

I now want to get the Max count.  The answer being 3.

Not sure how to do this. 

Thanks for any help you can give. 

Cheers

1 ACCEPTED SOLUTION
RaocoSolutions
Regular Visitor

Summarize your second table and take max out of it, 
you have to create a measure for that which uses MAXX 

maxRowCountInDay = MAXX(SUMMARIZE(Sheet1,Sheet1[Date],"CountColumn",DISTINCTCOUNT(Sheet1[Ticket Number])),[CountColumn])

RaocoSolutions_0-1678251352479.png

 

View solution in original post

1 REPLY 1
RaocoSolutions
Regular Visitor

Summarize your second table and take max out of it, 
you have to create a measure for that which uses MAXX 

maxRowCountInDay = MAXX(SUMMARIZE(Sheet1,Sheet1[Date],"CountColumn",DISTINCTCOUNT(Sheet1[Ticket Number])),[CountColumn])

RaocoSolutions_0-1678251352479.png

 

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.