Forum Discussion
Tob_P
4 years agoHelper V
Relative Date using multiple dates
Hi there - just trying to see if this is possible or if anyone has done something similar. I have a table that shows product sales and you can slice on those salespeople within in. However I want...
- 4 years ago
Try storing the bonus start date in a variable
Product target filtered sales = SUMX ( 'TblTargets(2)', VAR bonusStartDate = 'TblTargets(2)'[Product bonus start date] RETURN CALCULATE ( SUM ( 'Nav_Sales History MASTER'[Amount (LCY)] ), KEEPFILTERS ( 'Nav_Sales History MASTER'[Order date] >= bonusStartDate ) ) )
johnt75
4 years agoSuper User
Try storing the bonus start date in a variable
Product target filtered sales =
SUMX (
'TblTargets(2)',
VAR bonusStartDate = 'TblTargets(2)'[Product bonus start date]
RETURN
CALCULATE (
SUM ( 'Nav_Sales History MASTER'[Amount (LCY)] ),
KEEPFILTERS ( 'Nav_Sales History MASTER'[Order date] >= bonusStartDate )
)
)