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
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])) )

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

Top Solution Authors