Forum Discussion
LP280388
Resolver II
4 years agoVariable in Calculated column not taking a value from nonrelated table
Hi Team, I have the below Measure which results in Yes/No based on the condtions given. Due to some reason I need to change this measure to a Calculated column so that it can be used in other m...
- Anonymous4 years ago
Hi LP280388
Try adding a filter() to the formula.
VAR FirstDay =
CALCULATE (
MIN ( 'From Date'[Date] ),
FILTER ( ALLSELECTED ( 'From Date'[Date] ), 1 = 1 )
)
VAR LastDay =
CALCULATE (
MAX ( 'To Date'[Date] ),
FILTER ( ALLSELECTED ( 'From Date'[Date] ), 1 = 1 )
)Best Regards,
Jay
Anonymous
4 years agoNot applicable
Hi LP280388
Try adding a filter() to the formula.
VAR FirstDay =
CALCULATE (
MIN ( 'From Date'[Date] ),
FILTER ( ALLSELECTED ( 'From Date'[Date] ), 1 = 1 )
)
VAR LastDay =
CALCULATE (
MAX ( 'To Date'[Date] ),
FILTER ( ALLSELECTED ( 'From Date'[Date] ), 1 = 1 )
)
Best Regards,
Jay
- LP2803884 years ago
Resolver II
Thank you very much.