Forum Discussion
Anonymous
7 years agoNot applicable
Creating Dummy Date Field?
I have this table: It shows over time when someone owned an account. I was provided an entry date only, so I had to come up with a date field to represent their exit date which is simply ...
- 7 years ago
Anonymous Please try this...
ExitDate = VAR _ExitDate = CALCULATE(MIN(Test66Lkp[EntryDate]),FILTER(ALL(Test66Lkp),Test66Lkp[Code]=EARLIER(Test66Lkp[Code]) && Test66Lkp[Name] <> EARLIER(Test66Lkp[Name]) && Test66Lkp[EntryDate] > EARLIER(Test66Lkp[EntryDate]))) RETURN IF(_ExitDate=BLANK(),DATE(2100,12,31),_ExitDate)
PattemManohar
7 years agoCommunity Champion
Anonymous Please try this...
ExitDate = VAR _ExitDate = CALCULATE(MIN(Test66Lkp[EntryDate]),FILTER(ALL(Test66Lkp),Test66Lkp[Code]=EARLIER(Test66Lkp[Code]) && Test66Lkp[Name] <> EARLIER(Test66Lkp[Name]) && Test66Lkp[EntryDate] > EARLIER(Test66Lkp[EntryDate]))) RETURN IF(_ExitDate=BLANK(),DATE(2100,12,31),_ExitDate)
Anonymous
7 years agoNot applicable
PattemManohar Thanks! One question I do have. So let's say Latricia no longer becomes the owner and there is another person after her. Would Latricia's eixt date change to whatever date that was, and would the new person then be assigned 12/31/2100?
- PattemManohar7 years agoCommunity ChampionAnonymous Yes it will do. Please change the data by adding another owner and test the same. It should work dynamically.