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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.