Forum Discussion
Exclude current week
- Anonymous5 years ago
Hi brinky ,
According to the description, you may try this:
Measure = CALCULATE ( [QTY_Sales], FILTER ( 'SalesData', DATEDIFF ( 'SalesData'[Date], TODAY (), WEEK ) < 8 && DATEDIFF ( 'SalesData'[Date], TODAY (), WEEK ) >= 1 ) )If it does not make sense, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi brinky ,
According to the description, you may try this:
Measure =
CALCULATE (
[QTY_Sales],
FILTER (
'SalesData',
DATEDIFF ( 'SalesData'[Date], TODAY (), WEEK ) < 8
&& DATEDIFF ( 'SalesData'[Date], TODAY (), WEEK ) >= 1
)
)
If it does not make sense, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Thanks works as required.