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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rogerdea
Helper IV
Helper IV

Frequency Measure

I'm trying to calculate the frequency of date/times in a table and struggling to figure it out (even reading similar posts).  

 

I am wanting a measure which is the average amount of time (in minutes) between date/times.  So for example the measure would tell me an event occurs every X minutes on average.  I have a data table named "data" and date table attached to it.

 

Can anyone show me how this would be done from this data below, unfortunately i cannot upload the pbx or link to a cloud drive.

 

rogerdea_0-1660214876874.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rogerdea , You need to create a new column and take diff

 

Create a new column =

datediff(Maxx(filter(Table, [Datetime] < earlier([date time]) ), [date time]) , [Date time], second)

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

View solution in original post

2 REPLIES 2
rogerdea
Helper IV
Helper IV

amazing, thanks so much 

amitchandak
Super User
Super User

@rogerdea , You need to create a new column and take diff

 

Create a new column =

datediff(Maxx(filter(Table, [Datetime] < earlier([date time]) ), [date time]) , [Date time], second)

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.