I tried This i)
Test2:=CALCULATE(IF(HASONEFILTER(Sheet1[Date]),
CALCULATE(SUM(Sheet1[Sales]),FILTER(RELATEDTABLE(Sheet1),DATESBETWEEN(Sheet1[Date],FIRSTDATE(Sheet1[Date]),LASTDATE(DATE(YEAR(Sheet1[Date]),Month(Sheet1[Date]),DAY(Sheet1[Date])))))),0))
This ii)
Test3:=IF(HASONEFILTER(Sheet1[Date]),SUMX(FILTER(
Sheet1,
Sheet1[Date]>=Sheet1[Date]+7 && Sheet1[Date]<=Sheet1[Date]
),Sheet1[Sales]),0)
And This iii)
Test4:=CALCULATE(
IF(
HASONEFILTER(Sheet1[Date]),
Sumx(
FILTER(
RELATEDTABLE(Sheet1),
DATESBETWEEN(
Sheet1[Date],
FIRSTDATE(Sheet1[Date]),
LASTDATE(DATE(
YEAR(Sheet1[Date]),
Month(Sheet1[Date]),
DAY(Sheet1[Date])
)
)
)
)
,Sheet1[Sales]),
0
)
)
All my Queries giving values with-ought summing Sales quantity, keeping filters in place.
Appreciate any lead or help on the same.