Forum Discussion
Anonymous
6 years agoNot applicable
Calculate Day Diff between 2 dates on row level
Hi there, I hope you can help me! I have an issue: I used the table below as an example I am trying to calculate the day difference based on " Change Date " for each Product based on " En...
- Anonymous6 years ago
HI Anonymous
Please check the below code. This gives 1 day as per your need.
CHANGE DATE = DATEDIFF([PHASE],MAXX(FILTER(TABLE,[PRODUCT] = EARLIER(PRODUCT) && [ENTRY] < EARLIER([ENTRY])),[PHASE] ),DAY)
Anonymous
6 years agoNot applicable
HI Anonymous
Please check the below code. This gives 1 day as per your need.
CHANGE DATE = DATEDIFF([PHASE],MAXX(FILTER(TABLE,[PRODUCT] = EARLIER(PRODUCT) && [ENTRY] < EARLIER([ENTRY])),[PHASE] ),DAY)