This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
I have a data set that is pulling from a sharepoint list. I have succesfuul manage to not only pull in the records but all the version history too, as as individual rows.
What i am trying to achieve is a duration column which shows the length of time between each version for all records.
I have a unique ID column which distinguishes between the sharepoint items, and i have the version column.
So i need something like:
DateDiff(ModifiedDate,Previous versions Modified Date for this specific record) The red bit is the bit i am struggling with.
They wont always be in the nice organised order you see below and there will be a big mix of Unique Record IDs. But they will always increase in increments of 1.
Hope that makes sense.
Any help would be great thanks
Solved! Go to Solution.
Hi @Gillard_2 ,
You could use EARLIER() function.
diff =
var _previous = calculate(max('table'[modified date]),filter('table','table'[recordid] = earlier('table'[recordid])&&'table'[version] = earlier('table'[version])-1))
return
datediff('table'[modified date],_previous,day)
Best regards,
Jay
Hi @Gillard_2 ,
You could use EARLIER() function.
diff =
var _previous = calculate(max('table'[modified date]),filter('table','table'[recordid] = earlier('table'[recordid])&&'table'[version] = earlier('table'[version])-1))
return
datediff('table'[modified date],_previous,day)
Best regards,
Jay
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 43 | |
| 33 | |
| 24 | |
| 23 |