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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Users online (3,064)