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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.