Forum Discussion
Memory issue - IF using calculated measure
- 9 years ago
You might consider approaching it in the data model as follows:
* make a duplicate table T2
* in T2 make a calculated column that is (date less 1): PriorDate
Now join your Table to T2 using T1 date field and T2 PriorDate; or possibly even consider a merged table of the two - - kind of thinking out loud here....
* to avoid confusion in field names of T1 and T2 together you might change column name of T2 Stock to PriorStock
via Related method (or possibly the merged table) now you have Stock and Prior Stock in the same record and getting the difference is at your finger tips
You might consider approaching it in the data model as follows:
* make a duplicate table T2
* in T2 make a calculated column that is (date less 1): PriorDate
Now join your Table to T2 using T1 date field and T2 PriorDate; or possibly even consider a merged table of the two - - kind of thinking out loud here....
* to avoid confusion in field names of T1 and T2 together you might change column name of T2 Stock to PriorStock
via Related method (or possibly the merged table) now you have Stock and Prior Stock in the same record and getting the difference is at your finger tips