Forum Discussion

sthandiwe's avatar
sthandiwe
Frequent Visitor
4 years ago

Calculate Filter not working

Hi All

I have a 5 day rolling set of numbers determined by a selected date (SelectedDate BW) and a lag date (BW LAGDATE) which is 5 working days before the selected date.  

I then have this measure so that I can display 5 days between the lag date and the selected date. But it is only giving me for the selected date.

FI act BW = CALCULATE(
SUM(BW[accountantExpFI]),
FILTER(BW, BW[TRANSDATE]>=[BW LAGDATE] && BW[TRANSDATE]<=[SelectedDate BW]))


So essentially I have this:


When I need it to be looking like this:

Note: For the second screenshot I used lagdate= selected date-10, but that was not working well to accommodate weekends and public holidays.

 

1 Reply