DataTypes
AffectedDate: Date & Time
RecDate: Date & Time
I have 2 Data Sources i am pulling my data from.
Above is the Data that is being pulled into this report. The AffectedDate comes from the Data source Elliott_QtyOnHand2 and it controls how many years/months are displayed.
I have this calculated field and the amount that shows up is controlled by the RecDate, which is in the Elliott_IssueQty data source.
Right now the Prev Amount Calculated field changes when i put the RecDate in the Filter area because the RecDate dictates how much data is summed in the Sum(Amount) part of the Prev Amount calculated field.
Right now i can put the RecDate in the filter area to show me the sum(Amount) in the Prev Amount calculated field of everything between a range of dates, but i need this to be done on the fly, as each field will be different.
For example if the Affected Date is Jan, 2017 we want the Sum(Amount) in the Prev Amount Calculated field to only sum from Jan, 2016 to Jan, 2017, which again is calculated off of the RecDate
Feb, 2017 would sum(amount) between Feb, 2016 - Feb, 2017 and so on...