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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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.