Hello,
I have 2 status for the same order (1 and 2). each status has its timestamp.
I want to calculate the difference between those two statuses in days:
I did like this
Status 1
ifelse(
{orderinfo_orderstatus_text}=‘1’,
{status_timestamp},
NULL)
Status 2
ifelse(
{orderinfo_orderstatus_text}=‘2’,
{status_timestamp},
NULL)
Then
dateDiff({STATUS1},{STATUS2},‘DD’)
however it does not work. I understand why (the fact that status 1 will be null for 2 and vice versa), but I can not think another way of doing it