Forum Discussion
Anonymous
6 years agoNot applicable
Average Spacing
[ Spoiler ] Hello, I am having problems calculating the average spacing between dates
- 6 years ago
Hi,
Please take following steps:
1)Add an index column to the original table in Query Editor.
2)Try this column to combine date and time columns:
Date-Time = 'Table'[Date]+'Table'[Time]3)Try this calcluated column:
Column = DATEDIFF ( CALCULATE ( MAX ( 'Table'[Date-Time] ), FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) - 1 ) ), 'Table'[Date-Time], SECOND )4)The result shows:
See my attached pbix file.
Best Regards,
Giotto
parry2k
Super User
6 years agoAnonymous not fully clear what you are trying to do here. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490