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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Syndicate_Admin
Administrator
Administrator

calculate maximum value of an hour of the day

Regards I have the following Challenge, I need to show in a table the maximum time with accesses in a day. My data is given by day, hour and number of accesses, and I only have to show by day which is the day with the hour with the greatest access:Captura de pantalla 2023-01-31 153419.png

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try:

Hour' = CALCULATE(MAX('Table'[Hour]),FILTER('Table',[Access]=MAX('Table'[Access])))

[Access] you can use the maximum aggregation directly:

vjianbolimsft_0-1675216403547.png

Final output:

vjianbolimsft_1-1675216416440.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try:

Hour' = CALCULATE(MAX('Table'[Hour]),FILTER('Table',[Access]=MAX('Table'[Access])))

[Access] you can use the maximum aggregation directly:

vjianbolimsft_0-1675216403547.png

Final output:

vjianbolimsft_1-1675216416440.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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