i try to filter posting_date field 2 times in the script report but there is no date just one period
case when si.posting_date >= {date_from}  and si.posting_date <= {date_to}  then sum(sii.qty) else 0 end as qty,
 case when si.posting_date >= {date_from}  and si.posting_date <= {date_to}   then sum(sii.base_net_amount) else 0 end as amount,
 case when si.posting_date >= {date_from2}  and si.posting_date <= {date_to2}  then sum(sii.qty) else 0 end as qty2,
 case when si.posting_date >= {date_from2}  and si.posting_date <= {date_to2}  then sum(sii.base_net_amount) else 0 end as amount2