Forum Discussion
datediff calculated dates from segmented filter
Hi Anonymous,
In your sample data,
Code values duedate debit credit
C123 125 01-01-2017 32 2
C231 235 01-01-2017 25 20
If 02-01-2017 is selected in your fiter, which value do you do to show on your report?
Regards,
Charlie Liao
v-caliao-msft, sorry for the delay, this is the closest query for aging report in SAP. In this scenario, if you choose 02-01-2017 I will get the following:
Code values duedate debit credit 0-10 11-20 21-30 31-40 41+
C123 125 01-01-2017 32 2 30 0 0 0 0
C231 235 01-01-2017 25 20 5 0 0 0 0
We do the following calculations, if (01-jan-2017) - (02-jan-2017) = 1 day, so we only have results to the 0-10 column/measure
with the 05-fev-2017 date:
Code values duedate debit credit 0-10 11-20 21-30 31-40 41+
C123 125 01-01-2015 10 2 0 0 0 0 8
C231 235 01-01-2017 25 20 0 0 0 5 0