Forum Discussion
Ignoring an active relationship
- 5 years ago
Hi Anonymous ,
>>So basically i need to find how to change the measure so that it ignore only the active date relationship.
You can use REMOVEFILTERS function in your formula to clear filters from the specified tables or columns. You can refer to https://docs.microsoft.com/en-us/dax/removefilters-function-dax
You can try something like:
The measure = VAR days = MAX ( days[days] ) VAR amount = CALCULATE ( SUM ( 'Table'[amount] ), FILTER ( ALLSELECTED ( Table ), 'Table'[first_date] + days <= MAX ( '_T Date'[Date] ) && 'Table'[first_date] + days >= MIN ( '_T Date'[Date] ) ), REMOVEFILTERS () ) RETURN amountIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Anonymous ,
>>So basically i need to find how to change the measure so that it ignore only the active date relationship.
You can use REMOVEFILTERS function in your formula to clear filters from the specified tables or columns. You can refer to https://docs.microsoft.com/en-us/dax/removefilters-function-dax
You can try something like:
The measure =
VAR days =
MAX ( days[days] )
VAR amount =
CALCULATE (
SUM ( 'Table'[amount] ),
FILTER (
ALLSELECTED ( Table ),
'Table'[first_date] + days
<= MAX ( '_T Date'[Date] )
&& 'Table'[first_date] + days
>= MIN ( '_T Date'[Date] )
),
REMOVEFILTERS ()
)
RETURN
amount
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
- vstoppPCM3 years agoFrequent Visitor
Thank you so much! This helped me get the correct numbers for a visual that was limited by a join.
Valerie