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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AI14
Helper III
Helper III

Calculate average if date range is more than 1 day

Hi

 

I have a graph showing me arrivals per hour however when i put the date range to the last 7 days i get the 1st graph.

 

i want the graph to calculate the average number of arrivals per hours and display it in the desired layout and if 1 day is selected to also show the same layout.

 

what measure can i used to link data to slicer? 

 

last 7 days                                                 

AI14_0-1676906857185.png

desired layout

AI14_1-1676906884614.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@AI14 , Use a measure like

 

Averagex( Values(Table[Hour]), calculate(Count(Table[column])) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

Thanks for the reply.

 

im still getting the same layout - need the hours to be distinct and the values count averaged.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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