Yep that worked, though i found another solution:
If(
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Minutes
) < 60,
Concatenate(
Text(
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Minutes
)
),
" mins ago"
),
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Hours
) <= 24,
Concatenate(
Text(
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Hours
)
),
" hours ago"
),
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Days
) <= 31,
Concatenate(
Text(
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Days
)
),
" days ago"
),
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Months
) <= 12,
Concatenate(
Text(
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Months
)
),
" months ago"
),
Concatenate(
Text(
DateDiff(
(ThisItem.Created),
Now(),
TimeUnit.Years
)
),
" years ago"
)
)
Thanks for the answer!